|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
CSS - Indent entire paragraph not just first line
I am stuck here. I wanted to not only indent the first line, but all the lines. Basically a margin on both sides. This is my code....
Code:
<style type="text/css">
/* basic formatting */
body {font:76% normal verdana,tahoma,arial,"sans serif";text-indent: 10px;}
h1 {font:1.7em georgia,"times new roman",helvetica,verdana,"sans serif";text-indent: 10px;}
p {line-height:1.4em;text-indent: 10px;}
</style>
Would appreciate your help. Thanks |
|
#2
|
||||
|
||||
|
That sounds like a job for padding.Although, if you're using em for your line units, you really ought to be using em's for your indentation and padding units as well.
I'd recommend reworking a little bit. You're specifying a body text size of 76%, which is not a standard size. You should make that 75% or use one of the values below. Your value falls between standard sizes. 12px = 0.75em = 75% = 9pt With all of that established in em's, you can go back and adjust your paddings. Based on a body font size of 0.75em (75%, or 12px), a 10px space is 0.833em. Voila! Liquid layout to your specifications.
__________________
Scripting problems? Windows questions? Ask the Windows Guru! Stay up to date with all of my latest content. Follow me on Twitter! Help us help you! Post your exact error message with these easy tips! |
|
#3
|
|||
|
|||
|
That was very helpful, thank you!
|
|
#4
|
||||
|
||||
|
Quote:
Last edited by Nilpo : June 29th, 2009 at 05:27 PM. |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > CSS - Indent entire paragraph not just first line |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|