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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -