position: relative - cutting out the white space

Discussion in 'CSS' started by Weirfire, Jul 7, 2006.

  1. #1
    I've been using position: relative to place some items on the page. However because I've used this method I've ended up with a whole bunch of white space at the bottom of the site which means it scrolls for a long time.

    Is there any way of cutting out the excess white space?
     
    Weirfire, Jul 7, 2006 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    I infer that you're using RP offsets to lay out the page. That is a bad idea, almost as bad as using absolute positioning for layout. Start by removing all the RP and offset references. Use margins to establish separations, and floats to allow side by side positioning.

    Bring us a link, and have specific questions if you want specific help.

    cheers,

    gary
     
    kk5st, Jul 7, 2006 IP
  3. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #3
    The reason I was using these css methods was so that I could place text on top of images.

    It's a private project so I can't post the links unfortunately.

    I want to keep the text in HTML format so I don't lose the SEO value but for design it would be a lot easier just to stick the text in the graphics.

    Thanks for your input and I agree with your analysis. :)
     
    Weirfire, Jul 8, 2006 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    Why not, then, put the images in the background?

    cheers,

    gary
     
    kk5st, Jul 8, 2006 IP
  5. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #5
    lol Because I'm using an image swap function which you cant do on the images if they're in the background.

    I'll probably just end up sticking the text on the images to save a lot of bother.
     
    Weirfire, Jul 10, 2006 IP
  6. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Also remember that images in the background don't print on default browser settings. Could impact your decisions on this if the client wants 'printability'.
     
    T0PS3O, Jul 10, 2006 IP
  7. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #7
    Thanks Johan. I'm veering towards the decision that I'll probably just take the easy way out and stick the text on the graphics. If I need to change anything in the future it'll give me a headache and I can stick the text in somewhere else for SEO purposes.
     
    Weirfire, Jul 10, 2006 IP