Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: CSS positioning

  1. #1
    New Coder
    Join Date
    Oct 2007
    Posts
    86
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Question CSS positioning

    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

  • #2
    Senior Coder ahallicks's Avatar
    Join Date
    May 2006
    Location
    Lancaster, UK
    Posts
    1,134
    Thanks
    1
    Thanked 57 Times in 55 Posts
    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:

    Code:
    ul#nav {
    	float: right;
    	width: 31%;
    	border: 1px solid maroon;
    	list-style: none;
    	margin: 10px 0;
    	padding: 0;
    }
    Last edited by ahallicks; 01-04-2008 at 03:12 PM.
    "write it for FireFox then hack it for IE."
    Quote Originally Posted by Mhtml View Post
    Domains are like women - all the good ones are taken unless you want one from some foreign country.
    Reputation is your friend

    Development & SEO Tools

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,624
    Thanks
    6
    Thanked 1,001 Times in 974 Posts
    Uhm… this is somewhat a cross post that developed from this thread. 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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •