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 4 of 4
  1. #1
    Regular Coder BabyJack's Avatar
    Join Date
    Apr 2008
    Location
    Somewhere.
    Posts
    602
    Thanks
    43
    Thanked 6 Times in 6 Posts

    Sidebar is centered. How do I align it to the left?

    So the question is in the title.
    How do I align the sidebar to the left?

    http://simgalaxy.missingstudios.com/

    Currently, it's centered.

    Regards
    Last edited by BabyJack; 11-16-2008 at 11:08 AM.
    Enlightenment in Coding
    Validate before Posting | Google is your friend for PC Problems | Make sure you have a doctype

  • #2
    Regular Coder Actinia's Avatar
    Join Date
    Feb 2007
    Location
    Essex, UK
    Posts
    250
    Thanks
    1
    Thanked 23 Times in 22 Posts
    Your CSS for #sidebar is:
    Code:
    #sidebar {
    width: 250px;
    padding: 2px;
    float: right;
    padding: 5px;
    }
    This is telling it to float right. In FF it is floated right as you specify. If you want it on the left, then you should specify this.

    There are a number of other CSS errors that FF (firebug) flags.

    John

  • #3
    Regular Coder BabyJack's Avatar
    Join Date
    Apr 2008
    Location
    Somewhere.
    Posts
    602
    Thanks
    43
    Thanked 6 Times in 6 Posts
    Ah sorry. I meant the text is aligned to the center. I would like the text to be aligned to the left.
    Enlightenment in Coding
    Validate before Posting | Google is your friend for PC Problems | Make sure you have a doctype

  • #4
    Regular Coder
    Join Date
    Oct 2008
    Posts
    130
    Thanks
    0
    Thanked 4 Times in 4 Posts
    I can't open your page, but...using this code.
    all I can tell you is to use text-align:left;

    Code:
    #sidebar {
    width: 250px;
    padding: 2px;
    float: right;
    padding: 5px;
    text-align:left;
    }
    You also may have some <center> tags that aren't closed with </center> Check that out, too.
    Last edited by GardenGnome2; 11-16-2008 at 01:30 PM.


  •  

    Posting Permissions

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