Forum Moderators: not2easy
I really have looked nearly everywhere for an answer to this.
I am trying to creat a two column page using CSS. Everything works fine, then I add a a dynamic nav menu (CSS unordered list based but javascript for pop-up submenus to one level) in the left hand column (which is green). When I resize the font, the nav menu expands horizontaly but not the actual column. Resulting page is thus:
NNNNNNNNN CCCCCCCCCCCCCCCCCCCCCCCCCCCC
NNNNNNNNN CCCCCCCCCCCCCCCCCCCCCCCCCCCC
NNNNNNNNN CCCCCCCCCCCCCCCCCCCCCCCCCCCC
NNNNNNNNN CCCCCCCCCCCCCCCCCCCCCCCCCCCC
GGGG CCCCCCCCCCCCCCCCCCCCCCCCCCCC
GGGG CCCCCCCCCCCCCCCCCCCCCCCCCCCC
GGGG CCCCCCCCCCCCCCCCCCCCCCCCCCCC
GGGG CCCCCCCCCCCCCCCCCCCCCCCCCCCC
GGGG CCCCCCCCCCCCCCCCCCCCCCCCCCCC
GGGG CCCCCCCCCCCCCCCCCCCCCCCCCCCC
N=Nav Menu text, G=Greem left column, C=Content
How can I avoid this? I really want the left hand column to expand with the nav menu which is contained within it.
The end goal is to have a two column site which allows the user to resize without upsetting the look (it has to be level 2 accesibiliy compliant).
Any help would be great
Thanks, Shaun.
Here is the CSS for the G. C and N containers:
#navpanel { /* G Container */
width: 150px;
float: left;
margin-left: -1px;
padding: 10px;
background-color: #336666;
height: 100%;
}
div#navbar { /* N container */
width: 11em;
height: auto;
position: relative;
left: .2em;
top: 0em;
text-align: left;
}
#content { /* C container */
padding: 10px;
margin-left: 170px;
border-left: 1px solid #006;
}
I would provide the Java Script but its quite large so here is the URL:
<snip>
Thanks for both of your replies, I'll let you know how I get on with using the same container.
Cheers, Shaun.
[edited by: DrDoc at 3:54 pm (utc) on April 28, 2004]
[edit reason] No URLs, thanks. See TOS [webmasterworld.com] [/edit]
After that i'll be starting on the braille version...PHEW!
Anyway, thanks and good intro to this forum.
Cheers, Shaun.