Forum Moderators: not2easy
I am tweaking a WordPress template to fit a blog for a roleplaying game. The template is a three-column, fixed-width one. It looks fine on my tiny 17" monitor at work, but at home on my 22", the blog is very small and sits in the center of the page. (The content section is just 904px wide.)
Is there a way to tweak the style.css file in order to give the columns percentage widths instead of absolute pixel widths, so that the center "content" area will resize properly according to the reader's resolution/monitor size/window size? (I'm asking if it's possible to change it from fixed-width to variable/fluid-width, basically.)
I have some experience with CSS and I'm usually pretty good at tweaking pre-existing CSS to fit my needs, but this is something that's a bit beyond me.
Here's a snippet of the code (The code tag doesn't seem to be working, so I've truncated the code.)
#container{
margin: 0 auto;
width: 904px;
padding: 10px 0 0;
}#header{
margin: 0 0 10px;
float: left;
width: 904px;
height: 250px;
background: url(images/bg_header.gif) no-repeat left bottom;
color: #333;
}
#menu ul{
margin: 0;
padding: 0 0 0 175px;
list-style: none;
}
#menu ul li{
float: left;
margin: 0 5px 0 0;
font-size: 14px;
font-weight: bold;
background: url(images/bg_tab_right.gif) no-repeat right top;
color: #ffffff;
}
#menu ul li a{
display: block;
padding: 14px 20px 10px;
text-decoration: none;
background: url(images/bg_tab_left.gif) no-repeat left top;
color: #ffffff;
}
#menu ul li a:hover{
text-decoration: underline;
}
#pagetitle{
clear: both;
width: 904px;
height: 250px;
}
}
#pagetitle h1 a{
text-decoration: none;
color: #fff;
}
.pagewrapper{
margin: 0 0 10px;
float: left;
width: 904px;
background: #fff url(images/bg_page_bottom.gif) no-repeat left bottom;
color: #333;
}
.page{
float: left;
padding: 0 5px 5px;
background: url(images/bg_page_top.gif) no-repeat;
}
.wrapper{ /* This wrapper class appears only on Page and Single Post pages. */
float: left;
width: 500px;
}
.narrowcolumnwrapper{
margin: 5px 0 0;
float: left;
width: 500px;
background: #fff url(images/bg_narrowcol.gif) repeat-y;
}
.narrowcolumn{
float: left;
width: 500px;
background: url(images/bg_narrowcol_bottom.gif) no-repeat left bottom;
}
.content{
float: left;
width: 500px;
background: url(images/bg_narrowcol_top.gif) no-repeat left top;
}
<snip> is the blog's URL - this is the basic template I'm using, not the edited one with my current content.
I've tried to change the px widths to %s, but this causes my right-hand sidebar to get "pushed" to the bottom of the page.
Any advice/tips are appreciated.
Thank you!
[edited by: LakotaWolf at 10:39 pm (utc) on May 18, 2009]
[edited by: swa66 at 1:06 am (utc) on May 19, 2009]
[edit reason] No blog URLs please see ToS and forum charter [/edit]