PDA

View Full Version : Did the tutorial on css centering, now need help from experts


carolinawebdesign
10-08-2007, 01:44 AM
Can someone look here and tell me what is wrong with my "centering" try...

www.familyfirstcommunity.com/aboutus.html (http://www.familyfirstcommunity.com/aboutus.html) That is the first page I tried to do... As you can see, I was unsuccessful at following the directions on changing my aboutus.html and the css file...

Any help is appreciated!!! :grin:

Cary
10-08-2007, 08:28 AM
div.wrapper also needs a width

domedia
10-08-2007, 03:23 PM
Cary is right, and I think the tutorial might need an update on that issue :)
div.wrapper {
margin-left:auto;
margin-right:auto;
text-align:left;
width:861px;
}

carolinawebdesign
10-08-2007, 03:52 PM
Thanks Cary and domedia,

Do I replace:
<div class="wrapper">

with:
div.wrapper {
margin-left:auto;
margin-right:auto;
text-align:left;
width:861px;
}

Thanks so much,

domedia
10-08-2007, 04:22 PM
No you keep both, one is HTML the other one is CSS.
You should know this :)

All you need to do is add one line to your CSS rule:
width:861px;

carolinawebdesign
10-08-2007, 04:51 PM
Ha ha, well I guess I didn't know that, time to get out my "dreamweaver for dummies" book again!!!