PDA

View Full Version : Aligning text


gigiloumill
05-18-2011, 02:45 AM
Guys, I have a very simple question that I can't find an answer to..In CSS, how do you align the text on top? I have a title that I set as "h3" but the text moves to the middle of the div..I can't add a paragraph under it because the title (h4) pushes it under the div..Thanks

edbr
05-18-2011, 02:59 AM
define your h3 and h4 tags and you can set alignment margins etc

gigiloumill
05-18-2011, 11:51 AM
Thanks E. I tried that and it didn't do anything..Here's the code:

.h4 {
font-family:"Times New Roman", Times, serif;
font-size:14px;
color:#006;
text-align:left;
text-transform:capitalize;
text-height:text-size;
vertical-align:text-top;
}

gentleone
05-18-2011, 04:59 PM
If you post every bit of code (HTML & CSS) concerning your issue would be better. Actually I'm not sure what you mean with "In CSS, how do you align the text on top?"