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 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Aligning the right side of a CSS menu

    I was wondering how you can align the right side of a number of divs without floating right, positioning it 0px from right etc.
    As of now, the edges of the divs on the right side look like this:
    aaa|
    aa|
    aaa|
    It varies in different browsers. I've tried changing the sizes of everything to line them up, but even though everything has a fixed width, the edge still doesn't line up. In Firefox/IE6 it looks fine, very close to even but not quite. In IE7/5.5 it isn't quite as even. The website is http://kumon.fawziautorepair.com/
    Thanks ahead for any help you can give me.

    PS. I know it is possible with tables but I'm just wondering if there was another way before I change everything.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    What divs are you referring to? The ones with the content in them? You need to validate your code first. You have 41 errors. See them here. And NO DO NOT USE TABLES for page layout. I suggest you read the link in my sig titled "Why Tables for Layout is Stupid?".
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I agree, tables are stupid, that's why I'm trying to figure out what to do before I do it.

  • #4
    Regular Coder Rachy06's Avatar
    Join Date
    Apr 2006
    Posts
    123
    Thanks
    1
    Thanked 3 Times in 3 Posts
    why don't you want to float them right? surely this would be a perfectly logical solution?!
    No longer an active user

  • #5
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't want to float them right because the menu is using float:left, which just wouldn't work :-/


  •  

    Posting Permissions

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