Author CSS "not" operator?
Oxygen general issues.
-
- Posts: 75
- Joined: Mon Sep 28, 2009 8:10 am
Author CSS "not" operator?
I want to stop the display in Author mode of an element that does NOT have a certain attribute. I was hoping for something like this but I can't find it in the help:
Is there a negation function like this available?
Thanks,
Mark
Code: Select all
/* do not display <myElement myAttribute="..." */
myElement:not(myAttribute) {
display:none;
}
Thanks,
Mark
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Author CSS "not" operator?
Hi Mark,
There is no CSS rule to state that an element without a certain attribute should be matched.
But:
There is a CSS rule which states that an element which has a certain attribute should be matched. So if for instance you have the following CSS:
Then for the display property the first selector will be used when the attribute is not found on the element. And the second selector will be used when the attribute is found on the element (because it is more specific).
Regards,
Radu
There is no CSS rule to state that an element without a certain attribute should be matched.
But:
There is a CSS rule which states that an element which has a certain attribute should be matched. So if for instance you have the following CSS:
Code: Select all
myElement{
display:inline;
}
myElement[myAttribute]{
display:block;
}
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service