Solved

is there a <p> height

Posted on 2011-03-01
5
271 Views
Last Modified: 2012-05-11
want to set all p to same height
0
Comment
Question by:rgb192
5 Comments
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 500 total points
ID: 35012599
no but there's line-height which may do want you want or setting margin-top or margin-bottom sometimes gives better results
0
 
LVL 7

Expert Comment

by:Reece Dodds
ID: 35012621
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
 
LVL 9

Expert Comment

by:rawinnlnx9
ID: 35012643
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
 
LVL 9

Expert Comment

by:rawinnlnx9
ID: 35012658
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
 

Author Closing Comment

by:rgb192
ID: 35031705
first answer of no
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
targeting between desktop and responsive menu 3 32
HTML CSS 7 39
Text in block not displaying properly 2 33
HTML date format to popup calendar as soon as you click 7 41
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now