Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 01-06-2009, 11:22 AM Layout Problem
Junior Talker

Posts: 1
Trades: 0
Minor issue but it is really bugging me and happens in both ie7 and firefox 3.

http://simoncpage.co.uk.

If you resize the browser window to say 400px wide and then use the bottom scrollbar to view the contents to the right for some reason it isn't refreshed and there is a bar on the right along the side and the screen isn't refreshed?

Can anyone help me out with this?

Thanks
Simon

Last edited by simoncpage; 01-06-2009 at 11:53 AM..
simoncpage is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-11-2009, 06:55 AM Re: Layout Problem
LBD
Novice Talker

Posts: 10
Trades: 0
Your problem is very common, despite this, only few designers knows how to solve it.

The problem is that your topbar doesn't fill the entire canvas, it would seam that elements which are children of body, calculates their width from the browsers viewpoint, rather then the parent element. That's very impractical. You can however solve this by applying the same min-width to the header, as to your content.

There are also methods to apply a min-width in IE6, i would simply leave it out and ask my users to upgrade their browser. While users stuck on Win9x can shift to Opera.

You don't need to define the min-width for each element separately, instead you could take use of classes, for styles that are shared between elements. I.e.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
  <head>
    <title>Min-width Example</title>
    <style type="text/css">
* { margin: 0;padding: 0; }
.c1 { /* min-width of page */
  min-width: 700px;
}
#header {
  background: silver;
  width:100%;
  height: 150px;
}
#content {
  width: 75%;
}
 /* Text and Links */
p {margin: 0 0 1em;}
    </style>
  </head>
  <body>
    <div id="header" class="c1">
     <p>100% wide header, min-width is 700px.</p>
    </div>
    <div id="content" class="c1">
     <p>75% wide content division, min-width is 700px.</p>
    </div>
  </body>
</html>
Another solution would be to apply the background on the body rather then in a seperate division.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by LBD; 01-11-2009 at 07:36 AM..
LBD is offline
Reply With Quote
View Public Profile Visit LBD's homepage!
 
Reply     « Reply to Layout Problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.86525 seconds with 12 queries