Forum Moderators: not2easy

Message Too Old, No Replies

CSS and <p style> in Front Page

How do you get lines right next to each other?

         

Web Footed Newbie

9:44 pm on May 22, 2003 (gmt 0)

10+ Year Member



I'm trying to validate my HTML 4.01. In my HTML, frontpage puts in
<p style="margin-top: 0; margin-bottom: 0">
All I want is a line next to the other. If I just use the <p>Anything here</p> it spaces my lines.

Is there a way to bring these lines together in CSS, or is there another trick in HTML I am not aware of?

Thanks, WFN :)

The Contractor

9:52 pm on May 22, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Your Text<br>

Web Footed Newbie

10:07 pm on May 22, 2003 (gmt 0)

10+ Year Member



I'll rephrase:
Lines between PARAGRAPHS.
Thanks, WFN

Longhaired Genius

10:49 pm on May 22, 2003 (gmt 0)

10+ Year Member



<p style="margin-top: 0; margin-bottom: 0"> IS css (inline css).

You could adjust margin-top and margin-bottom until you're happy. Start with <p style="margin-top: 0.5em; margin-bottom: 0.5em"> and change the attributes in increments of 0.1em until you think it looks ok.

In the longer term I would recommend a stint of writing code with a text-editor to really get to grips with the combination of html + css.

Web Footed Newbie

11:22 pm on May 22, 2003 (gmt 0)

10+ Year Member



Thanks for the help!
Okay, got it figured out.

In my CSS, I use:
p, h1, h2, h3 {margin-top: 0em; margin-bottom: 0em;}

This allows me to take out all of the unneccessary "junk" code out of my html and for each paragraph, h1, h2, and h3 headings!

Thanks again! :)