PDA

View Full Version : CSS positioning



xdous
01-04-2008, 03:48 PM
Please help me.

Can someone tell me how to align the buttons on my website under each other using just css positioning.

I could use a table but i want to only use css as i am making this site strict.

I am aware i could set a different css attribute for each button using absolute positioning but i just want to know if there is an easier way i can use one attribute for all.

Please let me know your thoughts.

Please see my site here (http://www.w-co.co.uk/Group/index.php)

ahallicks
01-04-2008, 04:09 PM
So you have them under each other now... how exactly do you want them?
Also, for a strict site, you have 21 validation errors.
Add this to your CSS for a start:



ul#nav {
float: right;
width: 31%;
border: 1px solid maroon;
list-style: none;
margin: 10px 0;
padding: 0;
}

VIPStephan
01-04-2008, 05:13 PM
Uhm… this is somewhat a cross post that developed from this thread (http://codingforums.com/showthread.php?t=130655). You should stick with one and ask moderators to close the other one (whichever you like). And never do this again, asking the same question twice.