Searching for a method to center text in a div or whatever with just css which also works in IE5, 6, & 7
Set the line-height equal to div height
Example:
.whatever{
width:100px;
height:100px;
line-height:100px;
}
Searching for a method to center text in a div or whatever with just css which also works in IE5, 6, & 7
Set the line-height equal to div height
Example:
.whatever{
width:100px;
height:100px;
line-height:100px;
}
Article Topic:Software Development - HTML / CSS
Date:April 29, 2014
Want me to help develop your next Ruby-on-Rails project or application?
Contact Me