css question
css question
- Started
- Last post
- 4 Responses
- dijitaq
the text "charter aircraft options" is in an <h1> tag.
through css i set the font-size at 44px, line-height at 63px, top and bottom margin 21px and 42px.my question is how do i set the css so that the text within the <h1> tag is on the baseline and not floating in the middle? i tried setting vertical-align to baseline and bottom to no avail.
thanks
- dijitaq0
the baseline is the red line below the text. just to make it clear. thanks
- fadein110
set it as a block with a height then use padding-top to lower it in the block (remember to reduce the height by the amount of padding used)
- mekk0
be sure to test what happens when the headline is longer and goes over 2 lines
- dijitaq0
thanks i'll give it a try