![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I would be grateful for recommendations for a CSS layout (header, 2 cols, footer) that can accomodate dynamically added elements. I am not having any luck so far getting this to work in Mozilla/Firefox. Success so far only with IE. In Mozilla/Firefox, the layout does not adjust when nodes are inserted into the document dynamically. Layout: H E A D E R COL1 COL2 F O O T E R |
#3
| |||
| |||
|
|
Xavier Onassis wrote: I would be grateful for recommendations for a CSS layout (header, 2 cols, footer) that can accomodate dynamically added elements. I am not having any luck so far getting this to work in Mozilla/Firefox. Success so far only with IE. In Mozilla/Firefox, the layout does not adjust when nodes are inserted into the document dynamically. Layout: H E A D E R COL1 COL2 F O O T E R [snip long story without relevant information] A url would actually show the problem, while this story doesn't tell us anything. It doesn't even say what your HTML looks like, or if you used CSS to position any part of that page. The only thing I can deduct is that you didn't give the footer position:absolute. However, your problem seems pretty common, and the answer will most likely contain the words "add an element with 'clear:both'". Depending on your code and the look of your page, this could possibly be followed by the words "before the end of COL2" or "right before the footer". Or these two groups of words could be replaced by "add clear:both to the styles for the footer". And still, this might not be the right answer at all. Or it may seem like the right answer when you check one of these options in Firefox, until you have a look in an older Mozilla or Netscape browser. No way to tell without a url. -- Els http://locusmeus.com/ Sonhos vem. Sonhos vão. O resto é imperfeito. - Renato Russo - Now playing: Nazareth - This Flight Tonight |
#4
| |||
| |||
|
|
Sorry, I cannot provide a URL at this point. The problem is on an internal page of our company webserver and involves a database. I understand that lack of a URL makes it very difficult to help and am grateful that you took a crack at solving the problem anyway. For anyone else who may have seen this problem, I will try to make a long story short. My column2 contains a treeview. When the page first displays, everything is OK. Header, Col1, Col2, and Footer are all in the right place. When a treenode is clicked for the first time, its children nodes are fetched from a database and corresponding HTML elements (DIVs) are inserted into the document as children of the clicked node (also a DIV): DIV class='treenode'></DIV DIV class = 'treenode'> <!--this node has been expanded by the user and so contains child elements-- DIV class='fetchedtreenode'> </DIV DIV class='fetchedtreenode'> </DIV DIV class='fetchedtreenode'> </DIV ET CETERA... /DIV Thus, col2's contents "grow" dynamically at runtime. This is where the problem enters. In Mozilla/Firefox, the fetched nodes display where they should, but the footer is behaving as though it has been given a POSITION:ABSOLUTE style, but it hasn't: #ftr {clear: both; height : 25px; position: relative; background : #c0c0c0; color : #333333; border : medium solid black; border-width : 1px 0 0; margin : 0;} The footer is staying put even as col2 expands, and the effect is that some of the fetchedtreenodes display below the footer. Regards Xavier "Els" <els.aNOSPAM (AT) tiscali (DOT) nl> wrote in message news:Xns9619AD855323FEls (AT) 130 (DOT) 133.1.4... Xavier Onassis wrote: I would be grateful for recommendations for a CSS layout (header, 2 cols, footer) that can accomodate dynamically added elements. I am not having any luck so far getting this to work in Mozilla/Firefox. Success so far only with IE. In Mozilla/Firefox, the layout does not adjust when nodes are inserted into the document dynamically. Layout: H E A D E R COL1 COL2 F O O T E R [snip long story without relevant information] A url would actually show the problem, while this story doesn't tell us anything. It doesn't even say what your HTML looks like, or if you used CSS to position any part of that page. The only thing I can deduct is that you didn't give the footer position:absolute. However, your problem seems pretty common, and the answer will most likely contain the words "add an element with 'clear:both'". Depending on your code and the look of your page, this could possibly be followed by the words "before the end of COL2" or "right before the footer". Or these two groups of words could be replaced by "add clear:both to the styles for the footer". And still, this might not be the right answer at all. Or it may seem like the right answer when you check one of these options in Firefox, until you have a look in an older Mozilla or Netscape browser. No way to tell without a url. -- Els http://locusmeus.com/ Sonhos vem. Sonhos vão. O resto é imperfeito. - Renato Russo - Now playing: Nazareth - This Flight Tonight |
#5
| ||||
| ||||
|
|
Xavier Onassis wrote: "Els" <els.aNOSPAM (AT) tiscali (DOT) nl> wrote in message news:Xns9619AD855323FEls (AT) 130 (DOT) 133.1.4... Xavier Onassis wrote: (topposting sucks but inconsistancy sucks even harder) |
|
I would be grateful for recommendations for a CSS layout (header, 2 cols, footer) that can accomodate dynamically added elements. I am not having any luck so far getting this to work in Mozilla/Firefox. Success so far only with IE. In Mozilla/Firefox, the layout does not adjust when nodes are inserted into the document dynamically. Layout: H E A D E R COL1 COL2 F O O T E R [snip long story without relevant information] A url would actually show the problem Sorry, I cannot provide a URL at this point. The problem is on an internal page of our company webserver and involves a database. I understand that lack of a URL makes it very difficult to help and am grateful that you took a crack at solving the problem anyway. For anyone else who may have seen this problem, I will try to make a long story short. My column2 contains a treeview. |
|
When the page first displays, everything is OK. Header, Col1, Col2, and Footer are all in the right place. When a treenode is clicked for the first time, its children nodes are fetched from a database and corresponding HTML elements (DIVs) are inserted into the document as children of the clicked node (also a DIV): DIV class='treenode'></DIV DIV class = 'treenode'> <!--this node has been expanded by the user and so contains child elements-- DIV class='fetchedtreenode'> </DIV DIV class='fetchedtreenode'> </DIV DIV class='fetchedtreenode'> </DIV ET CETERA... /DIV Thus, col2's contents "grow" dynamically at runtime. This is where the problem enters. In Mozilla/Firefox, the fetched nodes display where they should, but the footer is behaving as though it has been given a POSITION:ABSOLUTE style, but it hasn't: #ftr {clear: both; height : 25px; position: relative; background : #c0c0c0; color : #333333; border : medium solid black; border-width : 1px 0 0; margin : 0;} The footer is staying put even as col2 expands, and the effect is that some of the fetchedtreenodes display below the footer. |
|
it is indeed difficult to make a complete picture of your problem this way. it would indeed be a lot better if you would at least show a layout example or 2 (with/without problem) (even preferable when you leave the company content out). |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Does a dynamically inserted element inherit the styles of its parent element if it has no styles of its own? |
#8
| |||
| |||
|
|
"Xavier Onassis" <xavieronassis (AT) nospam4me (DOT) com> wrote: Does a dynamically inserted element inherit the styles of its parent element if it has no styles of its own? If those styles are inheritable, yes. Steve -- "My theories appal you, my heresies outrage you, I never answer letters and you don't like my tie." - The Doctor Steve Pugh <steve (AT) pugh (DOT) net> <http://steve.pugh.net/ |
![]() |
| Thread Tools | |
| Display Modes | |
| |