Page 1 of 1

Insert element before tag with CSS, not supported?

Posted: Tue Sep 09, 2008 12:36 pm
by Nonox
Hi,

I have simple question around CSS in XML Editor. Actually, an user can add a style sheet CCS to a XML document to structure it.
But it's strange, i can't use a syntax like :

a:before {
width: 23px;
padding: 0 23px 0 0;
background: white url(droite.jpg) 0 0;
content: "text_add";
}

is that normal ?

PS: i'm apologize for my spelling faults.

Re: Insert element before tag with CSS, not supported?

Posted: Tue Sep 09, 2008 5:48 pm
by sorin_ristache
Hello,

The CSS background property is not supported yet in Oxygen Author. Please use background-color instead of background.


Regards,
Sorin

Re: Insert element before tag with CSS, not supported?

Posted: Wed Dec 10, 2008 8:05 am
by gangotri
How can I subclass an HTML element inside a class with CSS? I have a class "sidebar" and I want the H1 tag IN a sidebar DIV to be a certain style. How can I define that?

Re: Insert element before tag with CSS, not supported?

Posted: Wed Dec 10, 2008 9:36 am
by Radu
Hi,

If you have something like:

Code: Select all



<div class="sidebar">
.... <h1>Header content</h1>
</div>
you can use a selector like this in the CSS:

Code: Select all


 div[class="sidebar"] h1 {
color:blue;
}
The selector means any h1 which is a descendent of div with the class sidebar

See all the CSS selectors for more details:
http://www.w3.org/TR/CSS2/selector.html

Regards,
Radu