liloe
It's my birthday today!
- Joined
- Jan 25, 2004
- Messages
- 4,168
No idea how many here work with CSS, but hey, worth a question ^^
Basically I have the following problem: I want to put an image in front of text with the ":before" command, but I also want CSS to resize the image to the height of the text being used.
This is the code for the style I want to use:
I tried giving the ":before" class a width or a font-size, but neither did work and I didn't find an answer using google :<
Basically I have the following problem: I want to put an image in front of text with the ":before" command, but I also want CSS to resize the image to the height of the text being used.
This is the code for the style I want to use:
Code:
td#news_frankreich{
}
td#news_frankreich:before{
content:url(flaggen/flagge_Frankreich.jpg)" ";
}
I tried giving the ":before" class a width or a font-size, but neither did work and I didn't find an answer using google :<