Setting a footer tag padding: 7px auto; failure

margin: auto level can be done centrally, on the condition that this block is the tag element, and has a determined width, the line width is a percentage;

 

padding, then, set to auto it inherits the browser automatically padding value, when the value is set auto padding, all the padding values are changed to 0, thus generally implemented to effect particular numerical or other methods.

ps: In general, the browser is no default padding value, but there are also individual browser is the default value of padding there, in order to avoid the impact on the style, we begin with the general style will add an * {margin: 0;
padding: 0} ----------------
Disclaimer: This article is CSDN bloggers "do not drive poor nutrition 'original article, follow the CC 4.0 BY-SA copyright agreement, reprint Please include links to the original source and this statement.
Original link: https: //blog.csdn.net/u014035151/article/details/52005800

Guess you like

Origin www.cnblogs.com/xiaohaodeboke/p/12295605.html