Answer the question
In order to leave comments, you need to log in
Did the search engine impose fines on a site with “incorrect” markup?
I have a menu on the site, and the menu contains items in two lines in size. The cant is that the menu items themselves have a certain height, so these two lines need to be centered in height.
In addition, the customer wanted a mobile version where the hover event does not work, and elements of the LI type are not highlighted using the phone arrows, that is, I need to bind to the A (link) element to make the highlight.
In any case, I make this element a block element.
So I have to do something like this:
<a href="#">
<table>
<td>{{name}}</td>
</table>
</a>
a {display: table}, .in {display: table-cell; vertical-align: middle;}
Answer the question
In order to leave comments, you need to log in
it turns out much better that the link itself is a table cell, and wrap it in turn in a block with display: table
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question