SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard Dangermouse's Avatar
    Join Date
    Oct 2003
    Posts
    1,024
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Keeping a div in proportion

    I use a background image to seperate the page into sections (repeat-y centered), in one of the section i want a divider. But on different resolutions the image obviously shifts. How can i keep the divider in the same place in proportions to the image? I tried percentage but even that makes the divider go in different places when i try a different resolution.

    Thanks.

  2. #2
    3MTA3
    Join Date
    Jul 2003
    Location
    Florida
    Posts
    1,016
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Without seeing the problem it's hard to tell but from what I gather from it, you might be able to wrap them in a div with the wrapping div set to "position: relative;". This should keep the two elements that are being wrapped in proportion together.

  3. #3
    SitePoint Wizard Dangermouse's Avatar
    Join Date
    Oct 2003
    Posts
    1,024
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nm, i just decided to float the image to the left, and position things from the left


Bookmarks

Posting Permissions

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