Previous Message
Next Message

insert image using :before --- can't style it as I'd like

Sent by Thomas Scholz on 22 September 2003 06:06


Anton Prowse schrieb:

> Thomas Scholz wrote
>> p {
>>       background: url(warning.png) left top no-repeat #ddd;
>>       padding-left: $WidthOfTheImage;
>> }
>
> That works nicely for a paragraph background whose colour is #ddd;

Write transparent instead. Or whatever color you need.

> unfortunately I'm using a different image for the main paragraph 
> background, and want to superimpose another small image over the
> top.

Puzzle the images together if you need more than one.

> Looks like I'm stuck here if no browser other than Opera 7.2
> supports styling of inserted
> content, as The Moose says elsewhere in this thread :-(

You are an "all or nothing" man, aren't you? ;)

Thomas

-- 
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: