|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
CSS border image question
I am using a border-left that is 25px, instead of a solid color, i would like to use a repeated image that is 25px in width, right now i have this:
border-left: 25px solid #000; I tried to change it to something like this: border-left: 25px url("image.jpg"); it doesn't change it to an image, and i'm guessing that it's not allowed in CSS. Am I doing something wrong? is it really not possible to do this? I need the element to dynamically change size along with the item that it is bordering, so making it a seperate div won't work. any thoughts? |
|
#2
|
||||
|
||||
|
http://www.w3.org/TR/REC-CSS1#border-left
I don't think you can have an image in the border-left property.
__________________
Hello, old friend... |
|
#3
|
||||
|
||||
|
Not tested:
Code:
<div style="background: url(image.png) repeat-y 0 0;">
<div style="margin-left: 25px;
height:100%;">
some stuff
</div>
</div>
cheers, gary
__________________
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing. Ask a better question, get a better answer. |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > CSS border image question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|