View Full Version : border image help


fructy
08-02-2005, 05:33 PM
I'm working on a page but instead of a solid purple border image I would like to use an image. Does anyone know the right code for this? :) I'm currently using this code:

<body>

<img style="position:absolute; top:20px; left:20px; width:542px;
height:71px" src="http://img.photobucket.com/albums/v246/kimvanwilligenburg/tyrnunihead.png">


<div style="position:absolute; left:20px; top:100px; width:106px; height:287px; border:21px solid purple; background:url(http://img.photobucket.com/albums/v246/kimvanwilligenburg/tablebgcolour.png); overflow:auto">

---------------------------------

Put all your menu links here.

---------------------------------


</div>

<div style="position:absolute; left:185px; top:100px; width:384px; height:286px; border:21px solid purple; background:url(http://img.photobucket.com/albums/v246/kimvanwilligenburg/tablebgcolour.png); overflow:auto; scrollbar-face-color: #000000;
scrollbar-highlight-color: #000000;
scrollbar-3dlight-color: #000000;
scrollbar-shadow-color: #000000;
scrollbar-darkshadow-color: #000000;
scrollbar-arrow-color: #000000;
scrollbar-track-color : #000000;">

----------------------------------

Put all your content here.

----------------------------------
</div>

</body>

<style type="text/css">
body { background-image: url(http://img.photobucket.com/albums/v246/kimvanwilligenburg/piratebackgroundpn.png);
background-attachment: fixed; }
</style>

pb&j
08-02-2005, 06:14 PM
I'm working on a page but instead of a solid purple border image I would like to use an image. Does anyone know the right code for this? :) I'm currently using this code:
do you mean you want an image as the border instead of the color?
if so, an image cannot be applied to the border.
you would have to create an area (like a div), put the image as the background, then create a second area inside it but smaller to put your other stuff. kinda like a fake border appearance.

fructy
08-02-2005, 07:05 PM
do you mean you want an image as the border instead of the color?
if so, an image cannot be applied to the border.
you would have to create an area (like a div), put the image as the background, then create a second area inside it but smaller to put your other stuff. kinda like a fake border appearance.

Oh dear, that is going to get very complicated. I'm new to html and css, but I'll give it a try! Thanks for your help.

fructy
08-02-2005, 11:17 PM
pb, I tried what you told me to do and it worked perfect! Thanks for the help!