|
| |
|
|
BeTheBall
Posts: 6493 Joined: 6/21/2002 From: West Point Utah USA Status: offline
|
Forcing Right Div to fill space - 1/2/2008 12:45:21
Happy New Year CSS gurus. I am having a little trouble with a fairly simple two-column layout. I want a fixed width for my left column and then want the right column to fill in the rest of the space. I have the two columns nested within another div set to 99% width. Problem is, when my content in the right div is narrow, the page does not fill in the entire remaining width. Here is the CSS: .main_content {
margin: 0 auto;
width: 99%;
}
.sd_left {
float:left;
color: #000;
margin: 0;
padding: 0px 0px 0px 0px;
width: 180px;
font: 1.3em arial, helvetica, verdana, sans-serif;
}
.sd_right {
background: #fff url(../images/back_white.jpg) repeat;
clear: both;
float: right;
color: #000;
margin: 0px;
padding: 10px 0px 10px 10px;
font: 1.2em arial, helvetica, verdana, sans-serif;
}
Here is a screen capture of what I am getting on narrow pages.
Attachment (1)
_____________________________
Duane Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.
|
|
|
|
BeTheBall
Posts: 6493 Joined: 6/21/2002 From: West Point Utah USA Status: offline
|
RE: Forcing Right Div to fill space - 1/2/2008 16:01:34
Thanks Helena. I'll have a look at the example you sent. I found a work around, but it has me a bit uneasy. All I did was give my <h2> element a width of 100% and that seemed to fix my problem, however, like I said, not sure how comfortable I am with that "fix".
_____________________________
Duane Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|