faking line break with CSS
Oxygen general issues.
-
- Posts: 52
- Joined: Thu Dec 15, 2011 7:56 pm
faking line break with CSS
Hi,
I have a particular case where my node include an "<l/>" element which is suppose to mean "Line Break" later in the next of the process.
I tried to select it by CSS and put as content the entity carriage return "& #13;" (without space). But it doesn't do it!
Then I tried to "display:block" this element but there a space between my two lines (like between two paragraphs) and un don't want it...
An idea to put a linebreak instead of this element only with CSS ?
Thank you,
Vincent.
I have a particular case where my node include an "<l/>" element which is suppose to mean "Line Break" later in the next of the process.
Code: Select all
<element>First line<l/>Seconde line</element>
Then I tried to "display:block" this element but there a space between my two lines (like between two paragraphs) and un don't want it...
An idea to put a linebreak instead of this element only with CSS ?
Thank you,
Vincent.
-
- Posts: 515
- Joined: Wed May 20, 2009 2:40 pm
Re: faking line break with CSS
Hi Vincent,
You can use the second solution: set "display:block" for the line break element. In addition, to get rid of the space between the two lines you have to set an empty content on before pseudo-element:
Best Regards,
Mihaela
You can use the second solution: set "display:block" for the line break element. In addition, to get rid of the space between the two lines you have to set an empty content on before pseudo-element:
Code: Select all
l {
display: block;
}
l:before {
content: "";
}
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
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