CSS Q
CSS Q
- Started
- Last post
- 5 Responses
- kodap
is it possible to give a different atribute to images inside some div or other object with specific ID,
like:
I need to give a border to the tag img, but oonly inside a div or table?example:
.MyDivID:img {
border-width:1px;
blablabla:
blabla:}
sorry, I haven't tried yet, need to make sure to loose no time with this issue
Thanks,
- instantok0
yes...just as you wrote it but without the ":"
if any issues arise check your nesting
- kodap0
so will it be:
#MyDivID.img ?
- instantok0
#MyDivID img {
border: 1px solid #000000;
}or for class rather than id
.MyDivClass img {
border: 1px solid #000000;
}
- kodap0
ok, muchas gracias,
- instantok0
no problem...let me know if you have any issues and ill take a look