I know that I can use the settings margin: 0 auto; to position an element at the center of its container
For example I could have something like:
<body>
<div id="container">
<p>SOMETHING</p>
</div>
</body>
and the related CSS that put the div having id "container" at the center of the page (at the center of its container that is the bosy element):
#container {
margin: 0 auto;
width: 770px; /* Imposto la larghezza */
}
Ok, this is clear for me but I have some doubts related to the previous CSS code:
1) Now I am using a fixed dimension template (I declare explicitally the dimension in px), can I use this policy also for liquid template (where I don't declare the dimension in px, but in %) or have I some problem?
2) What is the exact meaning of margin: 0 auto;? It only means: "position an element at the center of its container" ore it have some more specific meaning?
Tnx
Andrea