Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 10 of 10
  1. #1
    Join Date
    Sep 2008
    Posts
    718
    Tokens
    0

    Default Alignment Problem

    Well, this is a tad hard to explain, but I'll try my best.

    I'm coding this layout, and when the content is not to far down it looks fine.
    But, when it is far enough down (when it needs to use the scroll bar) sections of it move over about 5 pixels.

    Help? Cheers.
    +.net - omg it's coming o_o

  2. #2
    Join Date
    May 2007
    Location
    Bristol
    Posts
    374
    Tokens
    299
    Habbo
    Britz

    Latest Awards:

    Default

    Just a guess, but it could be to do with how the layout was sliced.

    Not too sure, could you post a preview?






  3. #3
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    Try in internet explorer. Doesn't move over? That's because firefox moves the layout over when a scroll bar is needed. Impossible to stop.

    I think that may be what you're talking about? Puzzled me for a long time when I was coding a layout once.
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


  4. #4
    Join Date
    Sep 2008
    Posts
    718
    Tokens
    0

    Default

    Quote Originally Posted by britz View Post
    Just a guess, but it could be to do with how the layout was sliced.

    Not too sure, could you post a preview?


    Quote Originally Posted by iUnknown View Post
    Try in internet explorer. Doesn't move over? That's because firefox moves the layout over when a scroll bar is needed. Impossible to stop.

    I think that may be what you're talking about? Puzzled me for a long time when I was coding a layout once.
    That might be the case, but I don't know yet because it is not compatible with IE yet.
    +rep if you're right though
    +.net - omg it's coming o_o

  5. #5
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    Was I right?
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


  6. #6
    Join Date
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:

    Default

    The error I can see on the image is that the part under the banner, are a bit to the right.
    What you could do is adding a container, with all the DIVs inside.

    Try that, and tell me if it works

  7. #7
    Join Date
    Feb 2007
    Location
    Essex, England
    Posts
    1,392
    Tokens
    0

    Latest Awards:

    Default

    Yeah try metis way. I religiously use a container and never had this problem - not to say that is 100% the solution.


  8. #8
    Join Date
    Jul 2008
    Posts
    535
    Tokens
    75

    Default

    Take all the content divs and put them into a container, then on the container css add: margin: 15px auto;

  9. #9
    Join Date
    Feb 2007
    Location
    Essex, England
    Posts
    1,392
    Tokens
    0

    Latest Awards:

    Default

    Yeah, which meti previously said.

    And for it to work in IE I think you need to give body "text-align: center;".


  10. #10

    Default

    L?KE, no you don't have to give the body text-align: center for Internet Explorer, if all the content is in a container / wrap which has a fixed width and margin 0 auto, it will align in the center.

Posting Permissions

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