• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

CSS question

I'm trying to make a Joomla template work the way I want.

My issue comes down to this.

I have a menu that uses contentcol1 (see below) as its style. Next to this I want my main content using contentcol2. This works fine for the most part. The problem is that I simply want contentcol2 to always sit to the right of contentcol1 and to resize to whatever size is needed. For instance I'd like to have contentcol2 stretch the width of the screen if need OR stretch to the size of any large images. I'm not sure how to specify a width for contentcol2 that will do that.

#contentcol1 {
float:left;
text-align:left;
background: transparent;
width:155px;
font-size: .75em;
padding-right: 3px;
border-right: 1px solid #ccc;
}

#contentcol2 {
float:right;
text-align:left;
background: transparent;
width:600;
font-size: .55em;
padding-left: 3px;
}


Ideas?

Thanks!

 
Because it's too wide. Adjust your padding to use per centages rather than fixed values. If your padding was, say, 2% and you had it on both side, that'd give you 4%. So, your width would be 96% or less. Mind you, I'm just gussing.
 
That would give me a 157px left column the length of the page, right? Otherwise, if I achieve the float thing, contentcol2 would wrap around it when done, right? I could live with that. Thanks for your help!
 
Back
Top