Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 01-14-2008, 11:30 AM Content Trouble
Junior Talker

Posts: 1
Name: Valentine
Trades: 0
I've been having a major problem, and I know this may be a newbie question but here it goes...


The page that I'm working on has 2 navigational bars. One on the left, and one on the right (float left, float right) and the main content layer is in the middle.

The banner's width is set to 100% (optimized for any resolution, the way that I would like to keep the ENTIRE site)
However, I can't seem to set the width of my content layer so that it'll resize itself in accordance with the users resolution.

#container {
max-width: 100%;
max-height: 100%;
}
#title {
background: #000000 url(../images/title_bg.jpg) no-repeat;;
width: 100%;
height: 130px;
float: left;
}
#news {
color: #00FF00;
background: #000000;
width: 100%;
height: 20px;
border-top: #000000 medium solid;
border-bottom: #000000 medium solid;
float: left;
}
#leftNav {
background: #000000;
width: 145px;
height: 1000px;
padding-left: 5px;
float: left;
}
#leftNav a:link {display: block;}
#leftNav a:hover {color: #FFFF00; background-color: #444444; display: block;}
#content {
text-indent: 20px;
text-align: justify;
width: 70%; <--- I don't know what to do with this....
padding-left: .5em;
float: left;
}
#rightColumn {
background: #000000;
text-align: center;
width: 145px;
height: 1000px;
padding: 5px;
float: right;

}

Last edited by Valentine; 01-14-2008 at 12:13 PM..
Valentine is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-14-2008, 02:46 PM Re: Content Trouble
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Lets see ALL the code or a URL.

Is your banner an IMAGE that has dimensions wider than #content ? If so, then the container is going to stay as wide as it's widest element.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-15-2008, 11:55 AM Re: Content Trouble
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
if this is as I suspect, and the two floated elements are within the #container div, setting overflow: auto on #container should be enough to make it contain the two floats. If this doesn't work in ie6, however, try setting the height to 1% also.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 01-15-2008, 12:00 PM Re: Content Trouble
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
I'm sorry, I misunderstood what you are trying to accomplish. I will drink some more coffee now. Can we see the rest of your code as well?
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to Content Trouble
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.67331 seconds with 12 queries