It'd be easier to grasp what you're trying for, if you could give some kind of sketch or other example.
Assuming that you simply want to center the list inside of some other container, you'd want to do something like the following:
Code:
* html #container {
text-align: center;
}
#container ul#myUL {
width: 50%;
margin-left: auto;
margin-right: auto;
}
* html #container * {
text-align: left;
}
Assuming that you have an element called 'container' which itself contains an unordered list called 'myUL', the list will be half as wide (barring padding or borders, of course) as #container and rest equidistant from the left and right margins of #container.
The * html rules produce the same behavior *sigh* in IE6.
|