SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2005
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Setting one elment equal to another

    I have two elements next to each other and I want them to both to resize there height but I want to make sure that if one expands that the other does. How do I link the two together?

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,276
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    As Ben said the only element that will automatically equalise with another is a table cell. All other methods are illusions or tricks usually involving background images.

    See the 3 column demo sticky thread for some other methods and more information

  3. #3
    SitePoint Enthusiast
    Join Date
    Feb 2005
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was trying to rid myself of tables and go pure CSS, but this would fix my problem. With the current design there is no advantage to do pure CSS on that one segment of code so table it is. Thanks for the response.

  4. #4
    SitePoint Enthusiast
    Join Date
    Feb 2005
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the responce. Here are two images of the current layout. It doesn't show the problem because the content isn't expanding the box beyond the set limits. But you'll get the point. While your looking at it, any comments on the design and look of the site would be great. Thanks.



  5. #5
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,276
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    HI,

    I'd just use a simple repeating background image to do this.

    Similar to this:
    http://www.pmob.co.uk/temp/spointfooter.htm

    Which uses a repeating image on the main container.

    You will need to post in the website review section for comments on the design etc


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
  •