html - Images are not Centralised (Just) -
(edit: i'm new coding, apologies stupid mistakes)
i can't find errors in coding, images positioned off-centre, right :( images have been entered using list format, i'll copy 1 image , relevant css:
<nav> <ul> <li> <a href="images/mountains.jpg" target="new"><img src="images/mountains.jpg" alt="mountains"></a> </li> </ul> </nav>
(updated) css:
li { text-align: center; margin: 0 0 40px; }
i cant find what's wrong :( possible table out of line? (reference image in comments)
my ul element had default padding, removed padding in universal selector.
it's best practice use reset css or normalize , style elements per need.
Comments
Post a Comment