![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| ||||
| ||||
|
|
I have my whole page in a <table> just to center it. Now I changed it and used a div instead: |
|
#wrapper { width:900px; margin:0 auto 0 auto; border-left:1px solid; border-right:1px solid; background-color:#fff; } |
|
Ommiting div's height makes div having a height of one line thus not wrapping the whole page. |
|
PS: my html structure is: |
#3
| |||
| |||
|
|
Scripsit Harris Kosmidhs: I have my whole page in a <table> just to center it. Now I changed it and used a div instead: Why? It's the idea that matters, not the implementation. What do you plan to achieve by changing the implementation? |
|
The idea of 900 pixels wide page is wrong. It's fairly irrelevant how you try to implement it. |
|
You should have posted a URL, not a snippet of code. You should also explain what you really want. "Wrapping" is vague word, especially since the problem _seems_ to be that you want the element _height_ set to something else than its natural height (dictated by its content). |
#4
| |||
| |||
|
|
I have my whole page in a <table> just to center it. Now I changed it and used a div instead: #wrapper { width:900px; margin:0 auto 0 auto; border-left:1px solid; border-right:1px solid; background-color:#fff; } |
#5
| |||
| |||
|
|
Harris Kosmidhs schrieb: [wrapper having 'no' height] PS: my html structure is: body div id="wrapper"> My site </div /body Floated blocks don't add to the calculation of the wrapper div's height. |
#6
| |||
| |||
|
|
Johannes Koch wrote: Harris Kosmidhs schrieb: [wrapper having 'no' height] PS: my html structure is: body div id="wrapper"> My site </div /body Floated blocks don't add to the calculation of the wrapper div's height. Thanks for reminding me this. I knew that I forget something. But how can you overcome this problem? |
|
If i have a div id="#wrapper" div and here floated divs.. /div /div will it work? Thanks |
#7
| |||
| |||
|
|
div id="#wrapper" |
#8
| |||
| |||
|
|
Johannes Koch wrote: Harris Kosmidhs schrieb: [wrapper having 'no' height] PS: my html structure is: body div id="wrapper"> My site </div /body Floated blocks don't add to the calculation of the wrapper div's height. Thanks for reminding me this. I knew that I forget something. But how can you overcome this problem? If i have a div id="#wrapper" div and here floated divs.. /div /div will it work? Thanks |
![]() |
| Thread Tools | |
| Display Modes | |
| |