Fixing No. of text lines in a div
I am using a simple div displaying 4 lines of text.
When the browser zoom level was changed the no of lines of text display gets changed. I want to display the content with 4 lines irrespective of the browser zoom level.
Can anyone help me in making correct style for the div or the text?
This is line 1
This is line 2
This is line 00000011
This is lne 0x04
have you tried the line-height CSS property? If your div is 100 pixels in height and you want to fit 5 lines you would use a line-height of 20px.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread