Centralise text with CSS, plus have a menu that sits next to it

loic2003

Diamond Member
Sep 14, 2003
3,844
0
0
So, on my (terrible) website, I have a load of text down the middle which I've used the margin-left=auto and the margin-right=auto to keep it all centralised as I stretch the browser window.

The thing is, I've got a menu that I want to have stay just to the left or right of the text. I can't define it's position in pixles or percentages because at certain sizes it'll obscure the text or just look crap. Any ideas how to do this?

To see what i mean, of if you just want to laugh at my website building efforts, here's one of the pages: link
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
take your <div> or whatever you have that's centered on the page right now. Put two more divs inside of it, make one of them be a menu, and the other one be the text that you already have. Stop saying "centralise" when you mean "center".
 

loic2003

Diamond Member
Sep 14, 2003
3,844
0
0
Originally posted by: notfred
take your <div> or whatever you have that's centered on the page right now. Put two more divs inside of it, make one of them be a menu, and the other one be the text that you already have. Stop saying "centralise" when you mean "center".

cheers, that's sorted it.