another css Q
another css Q
- Started
- Last post
- 4 Responses
- armed_rob
thanx to version6 i got myself a 1px underline on my pictres by saying:
img {
border-color:#d1d2cc;
border-style:none none solid none;
border-width:0px 0px 1px 0px;
}Now my problem is that the images in my menu got the same underline, is there a way to separate 2 kinds of images?
- Dancer0
Use a class so instead use:
myimage {
border-color:#d1d2c c;
border-style:none none solid none;
border-width:0px 0px 1px 0px;
}Then place class="myimage" on the image you want underlining
- welded0
It's still more code than necessary, but Dancer is right. Don't forget the dot in front of "myimage" in your CSS.
.myimage {...
- armed_rob0
thanx it works with the dot .myimage
- heavyt0
also, that long-hand css is quite much.
same thing can be done with
img{border-bottom:1px solid #d1d2cc;}