|
|
#1 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,178
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
|
CSS: is space before unit legal?
The Calibre viewer/editor will obey this style, but the Adobe renderer (as used in Kobos etc) does not:
Code:
text-indent: 1.5 em; Edit: I meant text-indent, not text-align. Oops! Last edited by ShellShock; 04-18-2014 at 05:48 AM. |
|
|
|
|
|
#2 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
The space doesn't matter at all.
Please read this: http://www.w3schools.com/cssref/pr_text_text-align.asp The value you give that property is incorrect. If you want to move the text a bit further from the start then use the text-indent property. |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,178
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
|
Please see my edit - I meant text-indent. Sorry! So is the space legal?
|
|
|
|
|
|
#4 | |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
The space between text-indent: and the value is legal, the space between the actual value 1.5 and the units em is ilegal
correct form: Quote:
|
|
|
|
|
|
|
#5 |
|
....
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,547
Karma: 18068960
Join Date: May 2012
Device: ....
|
|
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Calibre has no choice on font size unit in css? | naisren | ePub | 6 | 09-30-2012 10:41 AM |
| Space Captain Smith of the British Space Empire | Kacetwo | Deals and Resources (No Self-Promotion or Affiliate Links) | 4 | 07-02-2012 04:41 AM |
| css pseudo elements and adjacent combinators in extra css? | ldolse | Calibre | 2 | 12-21-2010 06:09 PM |
| How to increase the line space in CSS | Sylver | Calibre | 3 | 08-08-2010 02:02 AM |