> From: Patrick Roane
> 
> I just need a quick tip on how I can center my menu:
> see www.cpcconstruction.net/1/index.html

Patrick,

You've got a few markup errors that won't be helping your
troubleshooting.
Run the page past the w3c validator and clean up the errors it shows
you.
http://validator.w3.org/check?verbose=1&uri=http%3A//www.cpcconstruction
.net/1/index.html

Your menu should center for you in FF using the margin: 0 auto;
declaration
if you apply it to the right element. Your UL could be goiven a class or
ID
to facilitate that.

<ul class="sitenav">  for example.

You'll need to take care of older IE and quirks mode IE as well though,
which is probably where you are seeing the non-centered menu at present.

You could use text-align: center; on the container div, "info",
then set a compensating text-align: left on child elements that aren't
intended to have centred text, (IE 5 centers all block level elements
in response to text-align: center; .

Using that in combination with the margin: 0 auto; should have your menu
list centered in all the recent browsers.  I didn't test this using your
markup, but it should get you on the right track.

-- 
Peter Williams
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to