![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
prevent the <li>'s from wrapping if the viewport is sized smaller than their combined width. |
|
so that my floated "comments" div will remain right-aligned in the header browser. |
#2
| |||
| |||
|
|
I dont follow this. The wrapper <div> is 100% so it doesnt need forcing open? |

|
Osgood wrote: In addition, I need this nav to force the wrapper div open, so that my floated "comments" div will remain right-aligned in the header browser. I dont follow this. The wrapper <div> is 100% so it doesnt need forcing open? The comment <div> looks to me as though it is right aligned already? |
#3
| |||
| |||
|
|
The wrapper is set to 100%, and the body min-width is set to 760px..so ideally, the body should not collapse to anything smaller than 760px. Obviously this doesn't work in IE since it doesn't interpret the min-width property correctly (if at all). |
#4
| |||
| |||
|
|
On another note, did you see any issues with the CSS I posted? Is there a more efficient way or perhaps a "better practices" way of doing this? |
#5
| |||
| |||
|
|
Of course you'll get a scroll bar should a user narrow the browser viewport to below the set min-width but that unavoidable. |
|
Min-width on a wrapper <div> will work in IE if you use PVii's extention. |
|
David wrote: The wrapper is set to 100%, and the body min-width is set to 760px..so ideally, the body should not collapse to anything smaller than 760px. Obviously this doesn't work in IE since it doesn't interpret the min-width property correctly (if at all). Dont set the minimum-width on the body set it on the wrapper <div>. Min-width on a wrapper <div> will work in IE if you use PVii's extention. That will stop the <li> from wrapping to the next line and you wont have to worry about keeping the wrapper open. Of course you'll get a scroll bar should a user narrow the browser viewport to below the set min-width but that unavoidable. |
#6
| |||
| |||
|
|
David wrote: Is the PVii extension free? Yup, its free. On another note, did you see any issues with the CSS I posted? Is there a more efficient way or perhaps a "better practices" way of doing this? To be honest I didnt really look at it that closely. It worked ok in the browsers that I tested so efficient or not the main thing is it worked. |
#7
| |||
| |||
|
|
You didn't happen to look at it in Safari or Mac IE did you? |
![]() |
| Thread Tools | |
| Display Modes | |
| |