Help Some little CSS question…

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:
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 :<
 

Lakih

Resident Freddy
Joined
Dec 23, 2003
Messages
1,637
What browser are you using? The :before and :after elements doesnt work in IE...
(just a quick google search... havent used CSS in 10+ years :) )
 

old.Tohtori

FH is my second home
Joined
Jan 23, 2004
Messages
45,210
flashbang+headshot usually works.

Disclaimer: Never played it myself.
 

Users who are viewing this thread

Top Bottom