>
> If so, then here's my situation and question:
>
> I want my div to be of fixed width (750px), and always
> horizontally centered within the viewer's browser
> canvas.  However, I have no way of knowing the
> viewer's  display resolution, and therefore no way of
> knowing the   WIDTH of his browser window.   In such a
> case (which must be extremely common), how should I
> set my div's margins as "equal lengths", if I those
> 'lengths' will always shift according to viewer
> resolution and window size?  Do I go with a maximum
> possible width (eg, 1600px) to accomodate the widest
> possible display resolution, or is there a better way?
>
> Thanks, in advance, for your feedback.
>
> - Michael


Hey, Michael, create a container for your layout (a div that will house
everything else). Use this code, assuming that div is called container

body {text-align: center;}
#container {margin 0 auto; text-align: left;}

This is covered in the book. Maybe in the chapter on positioning. Hope this
helps.
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to