|
|
Killersites.com Forum » List all forums » » Forum: CSS - Styling your pages with Cascading Style Sheets. » » » Thread: Prevent Floating Text |
|
| Print at May 21, 2013 3:50:40 PM | |
| Posted by valegooner at Jun 28, 2004 6:04:34 PM |
|
Prevent Floating Text I have a simple site which i am trying to construct using <divs> in CSS rather than tables etc. I have a navigation bar on the left positioned absolutely and 120 pixels wide by 100% high. Next to that is the content section which is 100% high - but how to set its width is causing me a serious headache. Basically, I want the content to be centered on the page - so I set the content div to 100% width but when the page is compressed (i.e. the browser window becomes small) the text floats over the navigation bar to maintain its central position, and it is this which I am trying to prevent, but can't for the life of me see how! Thanks, Alex |
| Posted by davidmead at Jun 28, 2004 8:16:36 PM |
|
Re: Prevent Floating Text Give you rdiv with the content a padding-left value of 120px and that should stop the top going over your navigation that is 120px wide. Hope this helps, Dave ---------------------------------------- Building quality, affordable web sites worldwide - DMWebsites.com |
|
|
Current timezone is GMT May 21, 2013 3:50:40 PM |