Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Top Right Side Layout Broke on iPad and Screen smaller than 1000px

Status
Not open for further replies.

explorer1979

IS-IT--Management
May 16, 2011
9
Hi all,

attachment.php


Above web site URL there.

I am wonder why it is broke if using iPad or A PC Browser which force it small to 1000px;

Anyone know what is wrong on my CSS Layout?

Thank you.
 
You have certain elements that have a width of 1000px set for them, but not others.

What happens is the elements that don't have a specific width can reduce to less than 1000px but the ones with the specific width can't.

So you have elements that stick out of the smaller elements.

Such is the case with your header div, your top_head div, and your main_width divs.

Main_width has a width of 1000px; so that's as wide or as narrow as it will ever be.

Reducing the browser or loading the page in smaller screens means there's less than 1000px in width.

What happens is elements without a width reduce further to accommodate the screen size since that's default behavior, but elements with a specified width do not. So the larger elements start to stick out of the now shorter ones.

Code:
-
 -------------------------
|                         |
|   -------------------------------
|  |                               |
|  |_______________________________|        
|_________________________|
Since the shorter one (top-head) have the background, the extra space doesn't get covered by it.

Either you specify a width for everything, or you don't specify a width at all. Then everything reduces to fit the screen.



----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top