I’m trying to push the text I have in my header so that the bottom of each character touches the bottom of the div. Almost as if the border for the div underlined each letter. How would I accomplish this? Im basically trying to push the text I have down a couple pixels.
Share
One way to achieve this is to set the container’s position to relative, and the child element to absolute:
EDIT
Just for clarification, I am not using
line-heightbecause it does not behave correctly if the text wraps to a new line.See here for a breakdown of the different techniques. Particularly note the examples using relative vs. absolute positioning:
http://jsfiddle.net/c2tqZ/1/