Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 10:26 PM
HolyCow
Guest
 
Posts: n/a
Default position

I've laid out a web page, and it looks exactly how I like it. But I want it
to behave well should the user decide to increment the size of the text.
The layout is basically a solid colored bar down the left margin, a logo
across the top of the page, a box that contains a table of text on the left
side of the page, a box containing text on the right side of the page, and
then a footer containing links.

When I increment the text size enough, the columns will grow passed the
footer. I would prefer the footer to just be pushed further down the page.
How can I accomplish this? I've toyed with the 'position' values and can't
seem to come up with a solution. Thanks for your help!!! Here's my
stylesheet:

/* a solid color bar down the left side */
div.leftbar {
position: absolute;
top: 0px;
left: 9px;
width: 51px;
height: 700px;
background-color: #005BBF;
}
/* a big company logo at the top */
div.onepieceheader{
position: absolute;
top: 0px;
left: 60px;
height:147px;
max-width:600px;
background-color: #FFFF00;
}

/* box holding a table with text */
div.leftside {
position: absolute;
/* margin-top: 20px;*/
top: 147px;
left: 70px;
height: 513px;
width: 290px;
background-color: #FF00FF;
}

/* box containing text */
div.rightside {
position: absolute;
top: 147px;
left: 360px;
height: 513px;
width: 240px;
background-color: #00FFFF;
}
/* footer containing links */
div.footer {
position: fixed;
top: 650px;
left: 60px;
height: 50px;
background-color: #FFFFFF;
width: 600px;
}


  #2  
Old July 20th, 2005, 10:26 PM
Eric Bohlman
Guest
 
Posts: n/a
Default Re: position

"HolyCow" <nobody@nowhere.com> wrote in
news:4010b1e1_3@news1.prserv.net:
[color=blue]
> I've laid out a web page, and it looks exactly how I like it. But I
> want it to behave well should the user decide to increment the size of
> the text. The layout is basically a solid colored bar down the left
> margin, a logo across the top of the page, a box that contains a
> table of text on the left side of the page, a box containing text on
> the right side of the page, and then a footer containing links.
>
> When I increment the text size enough, the columns will grow passed
> the footer. I would prefer the footer to just be pushed further down
> the page. How can I accomplish this? I've toyed with the 'position'
> values and can't seem to come up with a solution. Thanks for your
> help!!! Here's my stylesheet:[/color]

[snip stylesheet]

The problem is that you're specifying the dimensions of all your page
elements in absolute units (pixels). This means that your layout won't
adjust properly to different window sizes (it will force horizontal
scrolling) as well as font-size changes. You need to specify your
dimensions in relative units (percentages or ems) and then things should
adjust properly.
 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles