> -----Original Message-----
> From: css-d-boun...@lists.css-discuss.org [mailto:css-d-
> boun...@lists.css-discuss.org] On Behalf Of Michael Beaudoin
> Sent: 30 January 2009 19:45
> To: css-d@lists.css-discuss.org
> Subject: [css-d] Simple centering help...
> 
> Hi all,
> 
> I'm working through a simple site utilizing some <div>'s within a
> container <div> and I'm missing something simple to get the complete
> thing to center. For some reason, when I go to center the container
> <div> it's only centering the Flash piece. I know it's a vague
> description, so see the link below...
> 
> You can go here: http://www.ba-doyn.com/junk/ and view.
> 
> I'm sure it's something so simple but I'm just drawing a blank.
> 
> Thanks,
> Michael

Okay dokay, Michael.

First things, first.
You have no doctype specified and probably best to start with
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";> at the top of your page.
Then go validate it at
http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.ba-doyn.com%2Fj
unk%2F

Now, I am not sure whether you want the whole portal to be centred and if
that is the case you will need some extra code in your CSS,

Body {text-align:centre}
Not sure why you have float:left for the container div (but I may be missing
something.
If you want the container to centre you will need to specify width and
margin - probably
#container {width:1024;margin:0 auto}

Also ditch the <body leftmargin="0" topmargin="0" marginwidth="0"
marginheight="0"> code in the html and add margin:0 to your body spec in
css.

Cheers

Ian

______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to