homepage Welcome to WebmasterWorld Guest from 107.20.25.215
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
footer will not stay centered
Lassar




msg:4015401
 4:38 am on Oct 29, 2009 (gmt 0)

I have a webpage that the footer will not stay centered if you zoom on the webpage.

I have a webpage that is 1008 pixels wide.

The header is 1008 pixels wide.

The footer is 790 pixels wide.


#footer {
display: block;
margin-right: auto;
margin-left: auto;
width: 790px;
height: 50px;
background: url(http://example.com/pictures/footer.png) no-repeat;
}

There is no problem on a webpage where the footer is the same size as the webpage.

[edited by: swa66 at 1:12 pm (utc) on Oct. 29, 2009]
[edit reason] No URLs, please ee ToS and Forum Charter [/edit]

 

D_Blackwell




msg:4015416
 5:46 am on Oct 29, 2009 (gmt 0)

The personal link in the CSS will be removed.

IE has known zoom issues related to centered content. Until someone comes along with the hack that you need, search - ie zoom centering - You will find references to zoom hacks, hasLayout, needed conditional comments.....

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved