Insert element before tag with CSS, not supported?

Questions about XML that are not covered by the other forums should go here.
Nonox
Posts: 1
Joined: Tue Sep 09, 2008 12:22 pm

Insert element before tag with CSS, not supported?

Post 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.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

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

Post by sorin_ristache »

Hello,

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


Regards,
Sorin
gangotri
Posts: 1
Joined: Fri Dec 05, 2008 9:24 am

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

Post 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?
Radu
Posts: 9439
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply