Reply
Can you use an image as a border option in CSS?
Old 08-10-2009, 06:39 PM Can you use an image as a border option in CSS?
Banned

Posts: 7
Trades: 0
I am trying to place a border around the body of a page. I would use 4 different images, each representing a different drop shadow. I have not read anywhere online how to do this. Anyone know how to do it?

Here is the code...

body {
margin-left: auto;
margin-right: auto;
margin-top:15px;
width: 779px;
background-color: #41555F;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:10px;
color:#fff;
border-right: IMAGE HERE
border-left: IMAGE HERE
border-top: IMAGE HERE
border-bottom: IMAGE HERE
}
ProMaster is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 08-10-2009, 07:02 PM Re: Can you use an image as a border option in CSS?
Snot's Avatar
Super Talker

Posts: 132
Name: Chase
Trades: 0
I don't know if this is what you are trying to do or if there is a better way to do it but is this what your looking for.

Code:
#top {
    background: url(image.gif) repeat-x;
    margin-top: 0px;
}
#right {
    background: url(image.gif) repeat-y;
    margin-right: 0px;
}
#left {
     background: url(image.gif) repeat-y;
     margin-left: 0px;
 }
#bottom {
     background: url(image.gif) repeat-x;
     margin-bottom: 0px;
 }
__________________
Gamer Union
Snot is offline
Reply With Quote
View Public Profile Visit Snot's homepage!
 
Old 08-10-2009, 07:03 PM Re: Can you use an image as a border option in CSS?
Banned

Posts: 7
Trades: 0
Thanks Sir

I shall try it and report here soon
ProMaster is offline
Reply With Quote
View Public Profile
 
Old 08-10-2009, 07:48 PM Re: Can you use an image as a border option in CSS?
Snot's Avatar
Super Talker

Posts: 132
Name: Chase
Trades: 0
It should work if your border image is repeatable.

If it's not you should sill be able to use them just take the repeat x/y off each one.
__________________
Gamer Union
Snot is offline
Reply With Quote
View Public Profile Visit Snot's homepage!
 
Reply     « Reply to Can you use an image as a border option in CSS?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.09443 seconds with 13 queries