User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Site Layout and Usability section within the Web Development category of DaniWeb, a massive community of 423,421 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 4,623 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 Site Layout and Usability advertiser: Programming Forums

AP Divs and Centered a Layouts

Join Date: May 2008
Posts: 14
Reputation: jhaycutexp is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 3
jhaycutexp jhaycutexp is offline Offline
Newbie Poster

Re: AP Divs and Centered a Layouts

  #3  
May 17th, 2008
ok.. thats just pretty easy ..

first wrap you're apDiv1 and your table in new apDIV.. let's just say..

#container{}

so your markup should look like this
<div id="container">
    <div id ="apDiv1"></div>
    <div>
             <table>
             </table>
    </div>
</div><!--endofcontainer-->

then add the styles

#container{text-align:center;<---this is for ie centering bug...
width:x <----set the width of your design... for example 800px;
margin:auto; <--this is centering for your apDIV
}

finally just add this to your css..

body{margin:0;
padding;0;
}

this should center you layout..

is this your first time?? your layout can be in all divs.. why use tables inside a div??

anyways, your site not mine.. just helpin out through your problem... ^__^

hope this solve your problem...
Reply With Quote  
All times are GMT -4. The time now is 1:55 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC