Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

Website on mobile

Not entirely visible

12:00 pm on Sep 7, 2011 (gmt 0)

New User

5+ Year Member

joined:Sept 7, 2011
posts: 1
votes: 0

My website is cut-off on the sides when viewing on a mobile. Here is my css setup for the container that contains the rest of the website:

#base {
background-color: #FFFFFF;
border: 2px solid #FFCC99;
height: 556px;
left: 50%;
margin-left: -440px;
margin-top: -288px;
position: absolute;
top: 50%;
width: 880px;

Is there any change I should make here to make the entire content visible?

When viewing the site on a mac in Safari, when pushing the green "+" shrinks to the viewport you see on a mobile.
1:15 pm on Sept 11, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:Aug 9, 2008
posts: 961
votes: 0

Hi mevanderkuur, and welcome to WebmasterWorld.

I expect the problem will be caused by the absolute positioning. There are a number of ways to deal with that, such as using @media, for example. However, as it is the containing div, I would suggest that rather than trying to "fix" the problem created by positioning, a better approach would be to ask whether positioning is required - and if not, remove it.

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members