SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Image repeat?

  1. #1
    SitePoint Member
    Join Date
    Apr 2010
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Image repeat?

    Hello,

    I have a background image that is designed for 240 pixels. The left and right ends are curvy but the middle part is the same.

    I would like to make it expand with the browser page size. Hwever, the image does not resize. Is there a way to make it so? In particular, I was wondering if breaking the image into three parts, and setting the middle to be repeatable across x would work. Is this possible and if so how?


    Thanks!

  2. #2
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,592
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Breaking the image up would probably be best . just have 3 elements (nested or absolutely positioned) and set the image on each respectively .
    <1> can contain the repeated middle. <2> the left, and <3> the right image.
    Code:
    <1>
    <2>
    <3>
    Content
    </3>
    </2>
    </1>
    Always looking for web design/development work. Willing to do it cheap to build portfolio!


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
  •