Dumb CSS Q
- Started
- Last post
- 6 Responses
- Ginja
If you have an italic or bold tag inside a class can you get it to react differently?
- mg330
differently how?
Like making an italics be a bold instead?
But why?
- Ginja0
Ive got some posts on my site (106) and instead of going into each one and changing the italic tag to a span tag i was hoping i could just change the way the italic tag appeared. Font size, colour, and perhaps even bold.
- jakeyj0
can't you just change your i rules in your style sheet? if there isn't one, make one.
- mg330
Just tested it, and yes, it will work.
Simply add to css:
i { property info here;
}and you should be set.
- fusionpixel0
now remember that from now on everything that is in itallics will inherit that behavior.
- skelly_b0
if it is inside a class or id you can target just the ones your are talking about
.yourClassName i {
}