[thelist] insert image using content: style?

Timothy J. Luoma luomat at operamail.com
Thu Dec 26 11:15:01 CST 2002


> #Bread:before	{	content : "<p><img src='print_logo.gif' width='500'
> height='100' alt='' border='0'><br></p>" ; }
>
> i've also tried:
>
> #Bread:before	{	content : "<p><img src=\"print_logo.gif\" width=\"500\"
> height=\"100\" alt=\"\" border=\"0\"><br></p>" ; }
>
> but in O6 and N7, it just writes the code to the page, instead of
> rendering an image...
>
> so what am i doing wrong?

You can't put HTML in a CSS file.

You could try making the logo a background image to the BODY

http://www.w3.org/TR/CSS21/colors.html#propdef-background-image

Without seeing your HTML/CSS it's hard to know specifically what to
suggest.

TjL

--
Timothy Luoma <luomat at operamail.com>
30 Days to Becoming an Opera (6) Lover http://tntluoma.com/opera/lover/
(an Opera7 version will follow once it is officially released)
Opera Etc Blog: http://tntluoma.com/beyond30






More information about the thelist mailing list