Schrift in div-Tag vertikal mittig ausrichten
Hallo,
ich möchte eine Textzeile in einem div-Tag vertikal mittig ausrichten. Bekanntlich funktioniert "vertical-align:middle" hier nicht. wie bekomme ich es trotzdem hin??
ich möchte eine Textzeile in einem div-Tag vertikal mittig ausrichten. Bekanntlich funktioniert "vertical-align:middle" hier nicht. wie bekomme ich es trotzdem hin??
<div style="width:195px; height:25px; float:left; background-color:#a5a0a0; font-family: arial,helvetica,verdana; font-size:12px; color:#000; text-decoration:none; text-align:center;">Test</div>
Please also mark the comments that contributed to the solution of the article
Content-Key: 246067
Url: https://administrator.de/contentid/246067
Printed on: April 19, 2024 at 04:04 o'clock
1 Comment
line-height 25px;
Lonesome Walker