|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to center text vertically - two font sizes
Hi there,
I have two font sizes: 22px and 12px. However, If I use the 2 sizes next to each other, the large pushes the smaller on down. I tried to use vertical-align: middle to center them vertically, but it didn't work. How can I center them vertically? Thanks! |
|
#2
|
||||
|
||||
|
Give both the same line-height.
__________________
Spreading knowledge, one newbie at a time. Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions IE7: the generation 7 browser new in a world of generation 8 browsers. Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around. |
|
#3
|
|||
|
|||
|
Thank you!
|
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > How to center text vertically - two font sizes |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|