I would like to know if it's possible to insert a tab character in html instead of having to type
four times.
views:
4416answers:
8
+2
A:
AFAIK
The only way is to use
If you can use CSS then you can use padding or margin.
See
and for IE read
Internet Explorer box model bug
also
rahul
2009-10-15 11:06:02
+11
A:
It's much cleaner to use CSS. Try padding-right:5em or margin-right:5em as appropriate instead.
Alohci
2009-10-15 11:06:42
`padding-right`? Won't that sorta put the tab on the wrong side?
peirix
2009-10-15 11:51:00
depends which element you're padding `;)`
nickf
2009-10-15 11:57:42
Just to re-iterate Alohci's point. You *could* do this with html, but the style of a page should always be left to CSS. Separation, separation, separation ;)
Jon Hadley
2009-10-15 13:06:18
+1
A:
If whitespace becomes that important, it may be better to use preformatted text and the <pre> tag.
pavium
2009-10-15 11:09:41
+1
A:
If you're looking to just indent the first sentence in a paragraph, you could do that with a small CSS trick
p:first-letter {
margin-left: 5em;
}
peirix
2009-10-15 11:56:08
A:
If you are using CSS, I would suggest the following:
p:first-letter {
text-indent:1em;
}
This will indent the first line like in traditional publications.
Slevin
2009-10-15 13:10:21
A:
Why not just beautify your markup automagically using Pretty Diff tool?
http://mailmarkup.org/prettydiff/prettydiff.html