Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CENTER ALIGNMENT WITH XHTML MENU

Status
Not open for further replies.

EFLEX

Programmer
Mar 11, 2008
5
US
I CAN'T SEEM TO FIGURE OUT HOW TO MAKE MY DHTML MENU SYSTEM BE FLEXABLE WITH THE CENTER ALIGNMENT OF THE REST OF THE PAGE.

RIGHT NOW THE PAGE IS SET TO LEFT JUSTIFY. BUT THE CLIENT WANTS TO CENTER THE PAGES CONTENT NOW. I CAN CENTER THE PAGE BUT CAN'T SEEM TO GET THE NAV TO CENTER WITH IT..

ANY SUGGESTIONS WOULD HELP!!

PAGE:
thanks in advance for your time.
 
Welcome to Tek-Tips.

1. You don't need to SHOUT - see faq222-2244 for forum usage guidelines and etiquette

2. Get your page to validate first before trying to fix layout problems - see
3. Your menu class has absolute position

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
sorry about the caps, i wasn't shouting, its called caps lock.

i saw the absolute in the css, but i don't know what to change that to, too have it be flexable with the page, you know what i mean. that's the code i need to change, just can't figure out what to change the absolute from and to... i've tried relitive, etc. but nothing works..

i can run the code through that site, i just took over the site, so i haven't check the code like that yet.
 
It's not a complete fix - but you can get by with the following 2 changes:

- Change the style for the div with id=menu so that top:10px (instead of 196px).
- Add position:relative to the div that immediately wraps the div with id=menu.

Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
by making the changes i didn't, affect the rest of the site, so i switched the style sheet back.

i will create a test environment.

any ideas off the top of your head to get the nave ontop of the rest of the page, even tho the z index is set to 100?

much thanks.
 
bill ray, you ROCK!!!!

i will test and that does work!!! crazy
thank you thank you thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top