Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 281
  • Last Modified:

is there a <p> height

want to set all p to same height
0
rgb192
Asked:
rgb192
1 Solution
 
Paul JacksonCommented:
no but there's line-height which may do want you want or setting margin-top or margin-bottom sometimes gives better results
0
 
Reece DoddsCommented:
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
0
 
rawinnlnx9Commented:
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

0
 
rawinnlnx9Commented:
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.
0
 
rgb192Author Commented:
first answer of no
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now