Is it bad or totally wrong to get a horizontally centered page by tuning CSS properties of html tag? -


Is it bad or completely wrong to get a horizontally focused page by tuning the CSS properties of the html tag?

CSS code snippet:

  & lt; Style type = "text / css" & gt; Html {width: 1200px; Margin: 0 px auto; Background color: gray; Body [background color: red; } & Lt; / Style & gt;  

html code snippet:

  & lt; Body & gt; Anything goes here ... & lt; / Body & gt;  

html is the father of each element page If it gets centered, then we say that you want to make some space at the top left / right of your entire page. Now it will be relative to the centered html element, most likely ... and it will be a pain to offset that effect, that is why I do not recommend doing this.

That is why at least the body or div wrapper is better at the center.

Edit : It seems that the APD element will be relative to the whole viewport in my actual exam (in Fx 3), but even this is an incompatible cross browser. And is inconsistent with IE.

You are guaranteed that things will be corrected by focusing on the cover.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -