PDA

View Full Version : alignment of header Urban Grey side menu?



rmartin
09-02-2008, 12:35 AM
1) Script Title:
Urban Grey Side Menu

2) Script URL (on DD):
http://www.dynamicdrive.com/style/csslibrary/item/urban_grey_side_menu/

3) Describe problem:

I love this side menu!

I will have 3 maybe 4 seperate headers and lists. I would like the header to be centered over each of the lists. Can I change or eliminate the padding to an align-center in the head section, or should I add a alignment attribute with each header in the body section?

Thanks for a great site and forum!

Rmartin

ddadmin
09-02-2008, 12:52 AM
Hmm if you mean center the entire menu relative to the page, you'd do something like:


.urbangreymenu{
width: 190px; /*width of menu*/
margin: 0 auto;
}

You can't just center the headers of the menu, since everything is contained within the main "urbangreymenu" DIV, which itself is left aligned on the page by default.

rmartin
09-02-2008, 01:29 AM
Thanks for the quick reply. Yeah, I was hoping to center just the header over the list. Oh well, I quess I'll just pad it towards the left, that way, all the headers (different letter counts) will look uniform.

Thanks!