User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 360,995 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,460 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting

How to have the div layer center on any browser?

Join Date: Oct 2006
Location: Utrecht, The Netherlands
Posts: 9
Reputation: BudBrocken is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
BudBrocken BudBrocken is offline Offline
Newbie Poster

Re: How to have the div layer center on any browser?

  #6  
Nov 2nd, 2006
use
margin: auto auto;
don't use
margin-right: auto;
margin-right: auto;
and don't forget
body {
    text-align: center;
}
Last edited by BudBrocken : Nov 2nd, 2006 at 10:37 am.
www.rozengain.com - Web Development Blog
Reply With Quote  
All times are GMT -4. The time now is 6:39 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC