![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello i want to get a nice border around images, but not just with the simple <img src"....." border="1"> tag. I tried it in CSS. I did the following: div class="img_class" img src="./images/img1.jpg" border="0" alt="img1" / /div |
|
And in my css i have: .img_class { border: 1px solid #999999; } It doesn't work 100% as i want it, as the distance to the image from the bottom border is off. There is some empty space. Even adding margin:0px; and padding:0px; didn't help. Anyone a solution for this? |
#3
| |||
| |||
|
|
i want to get a nice border around images, but not just with the simple <img src"....." border="1"> tag. |
#4
| |||
| |||
|
|
On Mon, 15 Nov 2004 13:31:52 +0100, Oliver <oliver_summa (AT) web (DOT) de wrote: It doesn't work 100% as i want it, as the distance to the image from the bottom border is off. There is some empty space. Even adding margin:0px; and padding:0px; didn't help. Anyone a solution for this? Why are you specifying a border on the div and not on the image itself? |
#5
| |||
| |||
|
|
Hello i want to get a nice border around images, but not just with the simple <img src"....." border="1"> tag. I tried it in CSS. .img_class { border: 1px solid #999999; } |
#6
| |||
| |||
|
|
Hello i want to get a nice border around images, but not just with the simple <img src"....." border="1"> tag. I tried it in CSS. I did the following: div class="img_class" img src="./images/img1.jpg" border="0" alt="img1" / |
|
/div And in my css i have: .img_class { border: 1px solid #999999; } It doesn't work 100% as i want it, as the distance to the image from the bottom border is off. |
|
and padding:0px; didn't help. |
#7
| |||
| |||
|
|
Oliver wrote: Hello i want to get a nice border around images, but not just with the simple <img src"....." border="1"> tag. I tried it in CSS. .img_class { border: 1px solid #999999; } I use this, and it looks ok. .imgborder { border-top: 3px outset #d0d0d0; border-left: 3px outset #d0d0d0; border-right: 3px outset #a9a9a9; border-bottom: 3px outset #a9a9a9; } Sometimes I use this - looks like a picture frame: img.inframe { border: inset 0.35em #999; } |
#8
| |||
| |||
|
|
"Beauregard T. Shagnasty" <a.nony.mous (AT) example (DOT) invalid> wrote in message news:um3md.6712$Mg.1177 (AT) twister (DOT) nyroc.rr.com... |
|
border: inset 0.35em #999; Shouldn't it be 0.35em inset #999; ? I thought order of attribute values was signficant with compound properties. |
|
inherit |
#9
| |||
| |||
|
|
On Mon, 15 Nov 2004 10:04:29 -0500, Harlan Messinger h.messinger (AT) comcast (DOT) net> wrote: "Beauregard T. Shagnasty" <a.nony.mous (AT) example (DOT) invalid> wrote in message news:um3md.6712$Mg.1177 (AT) twister (DOT) nyroc.rr.com... [snip] border: inset 0.35em #999; Shouldn't it be 0.35em inset #999; ? I thought order of attribute values was signficant with compound properties. It depends entirely on the syntax specified for the property. See URL:http://www.w3.org/TR/REC-CSS2/about.html#q6>. In this case 'border-top', 'border-right', 'border-bottom', 'border-left' Value: [ <'border-top-width'> || <'border-style'> || <color> ] | inherit because the values (except inherit) are separated by double bars (||), they may appear in any order. |
#10
| |||
| |||
|
|
Steve Pugh wrote: On Mon, 15 Nov 2004 13:31:52 +0100, Oliver <oliver_summa (AT) web (DOT) de wrote: It doesn't work 100% as i want it, as the distance to the image from the bottom border is off. There is some empty space. Even adding margin:0px; and padding:0px; didn't help. Anyone a solution for this? Why are you specifying a border on the div and not on the image itself? And if that doesn't fix it, try declaring the image as display: block; |
![]() |
| Thread Tools | |
| Display Modes | |
| |