Sent by Dennis_Thrysøe on 2 November 2004 08:08
Zoe M. Gillenwater wrote:
> Dennis Thrysøe wrote:
>
>> I need to embed a number of divs in an arbitrary webpage, and have it
>> look the same.
>>
>> The surrounding webpage can be styled in any way imaginable, use all
>> kinds of styles, etc.
>>
>> Which would be the best way to ensure that my divs look as I wish?
>>
>> I guess the most obvious way would be to specify values for all
>> properties, but other previously defined styles may overrule my simple
>> "div.myclass" selector.
>
>
>
> Do you know what the parent of these divs will be?
No, unfortunately I don't. My divs must be inserted at arbitrary places
of arbritrary HTML. But I could add as many divs, as I wish - that would
seem sort of strange though.
> It would be great if
> you could get an id in your selector to make it more specific, like
> "div#main div.myclass".
But ids must be unique in a document, right? I need to insert several divs.
> If not, you can still add more to your selector
> to add a bit more weight to it: "html body div.myclass" is more specific
> than "div.myclass." This can't guarantee that your styles won't get
> overridden, but it may help.
Thanks I'll go that way. I'm beginning to think, that what I'm trying to
do isn't possible at all.
-dennis
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/