How can I show text touching div borders?
I have a DIV. Inside that DIV I put some some text. The div is positioned
absolutely. It has style="border:1 px solid black" so it shows as a nice
rectangle. Now within this rectangle I want to show text which touched
either top or bottom border (whichever is easier):
The thing is: 1) I don't want to underline the text- this is not the issue
2) I don't want to manually position the text within the DIV
3) The point is: I set the position of the DIV and the text automatically
touches the border (top or bottom border)- no matter what font-family or
font-size I set.
No comments:
Post a Comment