Home >Web Front-end >HTML Tutorial >The a tag set img is one pixel higher_html/css_WEB-ITnose
Just defining display:black is useless, you have to add width and height
a {
margin-left: 20px;
Text-DECORATION: None;
Margin: 0px;
Padding: 0px;
}
border: 0px none;
margin: 0px; >
Reply to discussion (solution)
a {display:block}
According to my understanding, the margins of the A tags on the four sides are 1 pixel higher than those of the IMG. I don’t know if this is the case?
Just modify the padding value.
I don’t know if this helps you!