4 replies [Last post]
pingu
pingu's picture
Offline
Enthusiast
UK
Last seen: 5 years 30 weeks ago
UK
Timezone: GMT+1
Joined: 2006-07-24
Posts: 63
Points: 5

Hi, i have a site constructed the same way as http://www.ashwebstudio.com/, and they both have the same problem.

If the browser width is made sufficiently small (so horizontal scroll bars appear) and then you then scroll the page to the right, the strips that should extend the width of the viewport get cut off, and the page breaks down. Can this be fixed please?

Thanks very much

DanA
DanA's picture
Offline
Elder
Last seen: 9 years 47 weeks ago
Timezone: GMT+2
Joined: 2004-08-14
Posts: 1087
Points: 2

Set min-width for Standard

Set min-width for Standards Compliant browsers and look for a solution for the others here :
http://www.google.com/search?hl=en&q=min-width+internet+explorer+6

pingu
pingu's picture
Offline
Enthusiast
UK
Last seen: 5 years 30 weeks ago
UK
Timezone: GMT+1
Joined: 2006-07-24
Posts: 63
Points: 5

Great! thanks very much

Great! thanks very much

Chris..S
Chris..S's picture
Offline
Moderator
Last seen: 7 years 27 weeks ago
Timezone: GMT+1
Joined: 2005-02-22
Posts: 6078
Points: 173

To explain what happened

To explain what happened ...

Block elements by default take on a width+padding+borders+margins of 100%. That is 100% of their parent, which in the case of the body element will be the browser width. So as soon as you have to scroll horizontally your page is greater than the browser width, ie. > 100%.

pingu
pingu's picture
Offline
Enthusiast
UK
Last seen: 5 years 30 weeks ago
UK
Timezone: GMT+1
Joined: 2006-07-24
Posts: 63
Points: 5

thanks

Thanks for the explanation - its all clear now.