Log in

View Full Version : Centering img question



theremotedr
02-19-2018, 01:56 PM
Hi,

Here is the page in question http://www.theatticbanwell.co.uk/index.html

I am trying to center the image which reads Click for directions.
In my main css file at line 608 it was,

padding-left: 1em;

But ive changed it to which now looks correct,


padding-left: 0em;

My question is,why do i need it there if it is 0em,i mean if i just remove that line of code it moves back to the right again ???

Deadweight
02-19-2018, 03:22 PM
You should be able to remove it; unless there is another css that is altering the padding.

theremotedr
02-19-2018, 03:33 PM
Hi,
Ive left it there at present as i couldnt find the reason as to why.
Will look when i have some spare time.

Thanks