Link to home
Start Free TrialLog in
Avatar of rgb192
rgb192Flag for United States of America

asked on

is there a <p> height

want to set all p to same height
ASKER CERTIFIED SOLUTION
Avatar of Paul Jackson
Paul Jackson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
there is "line-height: **pt"

however, a P tag will automatically wrap text to boundary width so if you have one word too many, it will wrap to a new line, that will then make your paragraphs uneven heights.

To help combat this you may need to add "word-spacing:*pt" parameters in for each paragraph depending on their wrapping.

...
short of that, i'm all out of ideas
Your <p> height will be determined by the pitch and kern of the font. You can set:


.p
{
  margin-left: 10px;
  margin-right: 10px;
  margin-top: 30px;
  margin-bottom: 30px;
}

Open in new window


If your margins are all 10 px then change your .p to this:

.p
{
  margin: 10px;
}

Open in new window

I think there is even spacing you can apply. CSS is extremely powerful find this on the web shouldn't take you a monumental effort.
Avatar of rgb192

ASKER

first answer of no