This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

OT? CSS and class attribute


Hello,

Is it possible to access elements *within* a <div class=""></div> using CSS?

For example access the <td> element within the <div
class="informaltable"></div> to change it's attributes.

<div class="informaltable"><table><tr><td>xxx</td></tr></table></div>

So my question is: can I change the appearance of *only* the <td> elements
that are within the class informaltable? (and leave other <td> elements
unchanged)

BTW

I can change the appearance of the class informaltable.

For example:

.informaltable {background: red}

Or change the appearance of the element within the class informaltable.

For example:

td {
border-left: 0.5pt solid black;
border-right: 0.5pt solid black;
border-top: 0.5pt solid black;
border-bottom: 0.5pt solid black;
}

Met vriendelijke groet / With kind regards,

Simon de Kraa
Systems Architect
e-Applications / Logistic Systems

FUJITSU SERVICES
Fujitsu Services B.V., Het Kwadrant 1
Postbus 4000, 3600 KA Maarssen, The Netherlands
Tel: +31 346 598865
Fax: +31 346 562703

Email: mailto:Simon.de.Kraa@services.fujitsu.com
Web:   http://nl.services.fujitsu.com

Fujitsu Services B.V., Registered in the Netherlands no 30078286


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]