|
|
#1 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 184
Karma: 2572
Join Date: Aug 2010
Device: Kindle
|
hanging indent
.calibre18 { border-bottom: 0; border-top: 0; display: block; margin-bottom: 0; margin-left: 22px; margin-right: 0; margin-top: 0; padding-bottom: 0; padding-top: 0; text-align: justify; text-indent: 1.5em } I reckon I should get rid of margin-left: 22px; but how do I transform the normal indentation to a hanging indent? By changing text-indent: 1.5em to text-indent: -22px; ? While on the subject of CSS, if I want a paragraph to be ragged right, would I change text-align: justify; to text-align: left; ? Thanks! |
|
|
|
|
|
#2 | ||
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,141
Karma: 2474345
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
|
Quote:
margin-left: x+y text-indent: -x where x is the amount you want it to "hang", and y is the additional left margin you want, if any. In your case x=22px, y=0. Quote:
|
||
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 184
Karma: 2572
Join Date: Aug 2010
Device: Kindle
|
That works!
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Books you're hanging out for. | mukoan | Reading Recommendations | 20 | 07-31-2010 06:06 PM |
| iriver hanging, Im helpless.... | Hendrix | iRiver Story | 4 | 04-30-2010 01:56 AM |
| Can't have hanging indent in Mobi | Yo_E_C | Introduce Yourself | 2 | 08-21-2009 08:51 PM |
| Hanging indents? | llasram | Mobi | 11 | 01-05-2009 10:59 AM |
| hanging on pdf's | deadite66 | iRex | 1 | 08-07-2007 08:21 AM |