Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5

Thread: Image as border

  1. #1
    Junior Member
    Join Date
    Mar 2003
    Location
    www.grabageek.com
    Posts
    5
    Member #
    981
    I am trying to use CSS to make an image be the left and right border of my site. I have looked all over online, and I have found a sitethat does this, but when I tried their code it wouldnt work.

    Does anyone here know how to do that?

    Thanks.

  2.  

  3. #2
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    hmmm.... sound's tricky. this was all I could think of:
    Code:
    <div style="position:absolute; top:0px; left:0px;
        width: 100%; height: 100%;
        background-image: url(image.gif);
        background-repeat: repeat-y;
        background-position: left;">
    </div>
    <div style="position:absolute; top:0px; left:0px;
        width: 100%; height: 100%;
        background-image: url(image.gif);
        background-repeat: repeat-y;
        background-position: right;">
    </div>
    <div style="position:absolute; top:0px; left:0px;
      width:100%; height:100%;">
        Content goes here. :)
    </div>
    Maybe filburt knows an easier way?

    Also, you might want to consider using tables instead of CSS for this

  4. #3
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    you could post the site in here that you have seen that does this so we can look at it :classic:
    JR

  5. #4
    Junior Member
    Join Date
    Mar 2003
    Location
    www.grabageek.com
    Posts
    5
    Member #
    981
    Thanks for the help so far.

    I have tried this with tables, but what I am trying to do, this would be a lot easier if I can get this done with css.

    I will search for it. On the site, there was an image that was the border, but the code just didnt work. I could easily have left something out though, being new to css.

  6. #5
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    are you sure it wasn't just one image for the background?

    Did it stretch on the right hand side when you resized the browser? That's how you can tell.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:52 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com