html - Centering an image that is in an anchor tag -


I have an image in anchor tag, and I need to focus it.

I have managed to use this technique to do this so that I have just been walking in the Dome Inspector:

uses it:

 < code> Display: Table; Margin 0 auto;   

I tried to use it:

  display: block; Margin: 0 auto; Width: (?) Px;   

But I came to know that it was not actually centering it until I got very confused with width which is not really very good because anchor tag width does not work too (IMO) was originally using a margin-left

Curious that you have used any of these before or have got a better technique in terms of performance: Table 7 is not supported and back

You can use text-align: center; #container at the inside of the center elements. Example:

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -