|
| |
|
|
yogaboy
Posts: 377 Joined: 5/22/2004 Status: offline
|
p p p paragraphs - 8/17/2005 18:43:55
Hello all, Quick (i hope) quiz for you. I want to get rid of the carriage-return added on the end of a paragraph by the <p> tags. I've tried using p {margin: 0;} or p {margin-top:0; margin-bottom:0;} but neither has worked. How do I get rid of the carriage-return???!!!!
|
|
|
|
davidrandall
Posts: 82 Joined: 7/28/2005 Status: offline
|
RE: p p p paragraphs - 8/18/2005 7:33:23
On your next build, why not try the global white space reset at the beginning of your style sheet:
* {
padding: 0;
margin: 0;
} Then you can add margins, padding etc to only those elements you choose. Dave
|
|
|
|
womble
Posts: 5461 Joined: 3/14/2005 From: Living on the edge Status: offline
|
RE: p p p paragraphs - 8/18/2005 7:39:20
Iain, I agree with your <rant> to a certain extent. Valid xhtml and css should be about trimming out superfluous content that isn't required, but (and I know this isn't the right forum) adding white space between paragraphs aids accessibility. More white space makes it easier to read paragraphs, whether you have visual problems or not. I recently did a page with a poem on it, and of course I needed a new line every so often, but I didn't want too much space between them. The lines were pretty short and using a closing </p> tag at the end of each line made the whole thing look ridiculous, so I ended up using <br /> at the end of the lines and simply adjusting the space round the whole thing using css. Removing the extras via css is a hassle, yes, but the general principle of having space between paragraphs is a good one. I may be wrong, but I don't think it's the W3C that add in the space between paragraphs and headings etc., it's the browsers and how they interpret the tags. The poem I mentioned earlier - the biggest hassle was finding a happy medium for the white space around it because of the differences in how FF and IE rendered it, but browser differences is another rant entirely.
_____________________________
~~ "A cruel god ain't no god at all" ~~
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|