Re: [WSG] paragraph indent
G'day Lukasz Grabun wrote: According to the spec (http://www.w3.org/TR/REC-CSS2/text.html#indentation-prop) it indents only the first line: "This property specifies the indentation of the first line of text in a block". So, the answer was and is correct. Thanks Lukasz. I tested my solution in MSIE6 and Firefox before sending it too. They both behaved per spec, indenting only the first line of each paragraph. If the intention was to indent the whole paragraph, my suggestion would have been along the lines of p { margin-left: 1em } Regards -- Bert Doorn, Better Web Design http://www.betterwebdesign.com.au/ Fast-loading, user-friendly websites ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help **
Re: [WSG] paragraph indent
Tatham Oddie napisał(a): How about p { text-indent: 1em } This will indent the whole paragraph, while Alan is only trying to indent the first line. According to the spec (http://www.w3.org/TR/REC-CSS2/text.html#indentation-prop) it indents only the first line: "This property specifies the indentation of the first line of text in a block". So, the answer was and is correct. -- Łukasz Grabuń, http://www.grabun.com/ ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help **
RE: [WSG] paragraph indent
Bert, >> I wanted to get my paragraphs to indent on a site so I tried the most >> intuitive thing: >> p:first-line{padding:1em} > How about > p { text-indent: 1em } This will indent the whole paragraph, while Alan is only trying to indent the first line. Thanks, Tatham Oddie Fuel Advance - Ignite Your Idea www.fueladvance.com ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help **
Re: [WSG] paragraph indent
G'day I wanted to get my paragraphs to indent on a site so I tried the most intuitive thing: p:first-line{padding:1em} How about p { text-indent: 1em } Regards -- Bert Doorn, Better Web Design http://www.betterwebdesign.com.au/ Fast-loading, user-friendly websites ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help **
[WSG] paragraph indent
I wanted to get my paragraphs to indent on a site so I tried the most intuitive thing: p:first-line{padding:1em} It did nothing. I tested a couple other things to make sure I was doing the right thing, but it appears that I can only change the font values. Then I tried this: p:before{float:left;width:1em;height:1em;} didn't work either. I toyed around with it a bit and it looks like float:left doesn't work on :before stuff. So finally I tried this: p:before{content:'mmm';visibility:hidden;} and it works as expected. This is something of a hack, but as far as I know, it should work on all CSS2 browsers. Any better suggestions on how to do this? Alan Trick ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help **