|
|
Thread Tools | Search this Thread |
02-15-2016, 11:09 AM | #1 |
Guru
Posts: 657
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
|
noindent first line, indent all other lines, same paragraph, possible?
Is it possible to have a paragraph that does no indention on the very first line, but indents the rest of the lines (if any) in the paragraph? (And continues to work when the use changer font size, etc.)
(This is both a learning question, but also my thoughts about how to create a nice implementation for the attached picture.) Thanks, |
02-15-2016, 11:12 AM | #2 |
The Grand Mouse 高貴的老鼠
Posts: 71,514
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Just use a positive left margin and an equal but negative text indent.
.hanging { margin-left: 4em; text-indent: -4em; } |
Advert | |
|
02-15-2016, 11:16 AM | #3 |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
I would suggest looking at our wiki CSS_HowTo#Indenting_a_paragraph for this and other questions you may have with formatting. What it says is:
h2 + p { text-indent:0; } p { text-indent:2em; } The wiki includes a discussion. oops, sorry, I misunderstood the original question. Last edited by DaleDe; 02-15-2016 at 11:49 AM. Reason: misunderstood the question. |
02-15-2016, 11:36 AM | #4 |
Guru
Posts: 657
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
|
Thanks pdurrant, that worked wonders!
I'm slowly reading through the wiki... and searching the forums... and some books... |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Css code to indent first paragraph? | shootist | Editor | 14 | 12-30-2015 06:17 AM |
How do I set paragraph indent? | pargoo | Sigil | 17 | 11-09-2013 06:38 PM |
Selective paragraph indent | Leonatus | Writer2ePub | 8 | 10-31-2013 04:22 PM |
HTML- Paragraph indent w/ no spaces? Help please? | Joseph Picard | Workshop | 36 | 07-20-2012 12:35 PM |
Preference: Paragraph indent or a little paragraph spacing? | 1611mac | General Discussions | 48 | 11-11-2011 12:43 AM |