I have div's whose content i want to be vertically centered aligned.
I have applied css with display: table-cell and then set vertical-align: middle but it is not working:
This is the link:
The content of the div's keep on changing.
In this i want that div with classes "EntryFormControlDiv" and "EntryFormLabelDiv" contents should be vertically aligned inside a div of class: "EntryFormRow".
Any help is appreciated.
The text in the purple button looks fine to me in the fiddle.
How about adding a line-height?
.EntryFormControlDiv
{
min-height: 50px;
max-width: 400px;
min-width: 400px;
float: left;
line-height:35px;
}
(and some bottom margin in the multiple)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.