Doctor_Varney
08-27-2010, 02:51 AM
Hi, I'm having real trouble with the idea someone might increase their text size whilst browsing my page. Fine at medium/default, but when I alter text size (or magnification in Firefox), the layout is destroyed because text pops out the bottom.
What I'm looking for is advice on a method of design that can be used to make sure the whole wrapper and all the columns can somehow scale, to accomodate.
I hear people saying CSS is flexible, but I've never found this to be so. I find it rather rigid and confusing to be honest.
Sorry, I can't show you any examples at present because I don't have anywhere to upload to but I can post my code here.
Firstly, I have a lovely little menu that scales beautifully with text-increase. It goes like this:
#column_3 img {
margin-left:40px
}
#column_3 p {
font-size:10pt;
text-decoration:none;
width:325px;
text-align:justify;
margin:0 auto;
margin-top:10px;
}
#column_4 {
width:192px;
float:left;
background:url(menu-middle_back.gif) repeat-y
}
#menu-top {
width:100%;
height:123px;
background:url(menu-top_back.gif) no-repeat
}
#menu-middle {
width:100%;
background:#000 url(menu-middle_back.gif) repeat-y
}
#menu-bottom {
width:100%;
height:43px;
background:url(menu-bottom_back.gif) no-repeat
}
And the corresponding markup, thus:
<div id="column_4">
<div id="menu-top">
</div>
<div id="menu-middle">
<ul>
<li>
Option
</li>
<li>
Option
</li>
<li>
Option
</li>
<li>
Option
</li>
<li>
Option
</li>
<li>
Option
</li>
<li>
Option
</li>
<li>
Option
</li>
<li>
Option
</li>
<li>
Option
</li>
<li>
Option
</li>
</ul>
</div>
<div id="menu-bottom">
</div>
</div>
But this... well, I don't know what to do with it. The text falls out the bottom when the text is increased.
#column_3 { /*Main content area*/
width:432px;
height:auto;
float:left
}
#col-3_upper {
width:100%;
height:20px;
background:url(col-3_upper-back.gif) repeat-x
}
#col-3_middle { /*Where the text goes*/
width:100%;
height:auto;
background:#fff
}
#col-3_bottom { /*a way of making a footer which spans column_3 only*/
width:100%;
height:100px;
background:#fff
}
Perhaps I should add that these columns are floated, there being a total of four in the line.
What I'm stuck on is, I don't quite know how to make a proper wrapper for my page. So far, my wrapper looks like this:
#wrapper {
width:762px;
height:800px;
margin:0 auto;
background:url(wrapper_back.gif) right bottom repeat-y;
}
Any help and advice will be appreciated.
Many thanks
Dr. V
What I'm looking for is advice on a method of design that can be used to make sure the whole wrapper and all the columns can somehow scale, to accomodate.
I hear people saying CSS is flexible, but I've never found this to be so. I find it rather rigid and confusing to be honest.
Sorry, I can't show you any examples at present because I don't have anywhere to upload to but I can post my code here.
Firstly, I have a lovely little menu that scales beautifully with text-increase. It goes like this:
#column_3 img {
margin-left:40px
}
#column_3 p {
font-size:10pt;
text-decoration:none;
width:325px;
text-align:justify;
margin:0 auto;
margin-top:10px;
}
#column_4 {
width:192px;
float:left;
background:url(menu-middle_back.gif) repeat-y
}
#menu-top {
width:100%;
height:123px;
background:url(menu-top_back.gif) no-repeat
}
#menu-middle {
width:100%;
background:#000 url(menu-middle_back.gif) repeat-y
}
#menu-bottom {
width:100%;
height:43px;
background:url(menu-bottom_back.gif) no-repeat
}
And the corresponding markup, thus:
<div id="column_4">
<div id="menu-top">
</div>
<div id="menu-middle">
<ul>
<li>
Option
</li>
<li>
Option
</li>
<li>
Option
</li>
<li>
Option
</li>
<li>
Option
</li>
<li>
Option
</li>
<li>
Option
</li>
<li>
Option
</li>
<li>
Option
</li>
<li>
Option
</li>
<li>
Option
</li>
</ul>
</div>
<div id="menu-bottom">
</div>
</div>
But this... well, I don't know what to do with it. The text falls out the bottom when the text is increased.
#column_3 { /*Main content area*/
width:432px;
height:auto;
float:left
}
#col-3_upper {
width:100%;
height:20px;
background:url(col-3_upper-back.gif) repeat-x
}
#col-3_middle { /*Where the text goes*/
width:100%;
height:auto;
background:#fff
}
#col-3_bottom { /*a way of making a footer which spans column_3 only*/
width:100%;
height:100px;
background:#fff
}
Perhaps I should add that these columns are floated, there being a total of four in the line.
What I'm stuck on is, I don't quite know how to make a proper wrapper for my page. So far, my wrapper looks like this:
#wrapper {
width:762px;
height:800px;
margin:0 auto;
background:url(wrapper_back.gif) right bottom repeat-y;
}
Any help and advice will be appreciated.
Many thanks
Dr. V