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

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -