Previous Message
Next Message

Re: [css-d] element names in different browsers

Sent by Scott Andrew LePera on 8 February 2002 20:08


Dickens, David wrote:


> IE is obviously dropping all the tags that aren't defined as HTML tags so
> the CSS never gets applied.  can I tell IE that this is an XML document and
> that it's ok to just style the content the way I say? :-)  the problem, of
> course, is that without a special "head" and "body" tag it would be hard to
> make the xml I'm using be browser-pretty.


I believe you need to use a namespace to prevent collisions between your 
tags and similarly-named XHTML tags.  Then you can use CSS to style your 
custom XML:

http://makeashorterlink.com/?L1605156

Here's the example they give (works in Mozilla, too):

<html xmlns:my>
<style>
@media all {
    my\:justify  { text-align:justify; width:500 }
}
</style>
...
<my:justify>text here</my:justify>

HTH,
scottandrew

-- 
scott andrew lepera
[EMAIL-REMOVED]
web stuff: www.scottandrew.com
music stuff: www.walkingbirds.com
Previous Message
Next Message

Possibly related: