|
Posted by dorayme on 10/17/06 02:14
In article <OoWdnSSkZe-UpKnYnZ2dnUVZ_t-dnZ2d@comcast.com>,
"Yogi_Bear_79" <nospam@spamsux.com> wrote:
> > You don't need to use absolute positioning. Given your desires,
> > just a div 800px wide, make it 750px and see if you like it
> > etc... If you want to centre the div, do so, that is an
> > independent variable.
> >
> > --
> > dorayme
>
> Ok, I changed it to
>
> MainBody{
> align:center;
> width:800px;
> }
>
> Opened it in the HTML like so
> <body>
> <div id="MainBody">
> </div>
> </body>
>
> The only item that appears to be affected is the header DIV which moved over
> to the right , but isn't limited to 800px. I am calling multiple <DIV> tags
> within the <div id="MainBody">. They are all sized by percentage, they are
> also using absolute positioning, could one they be the problem?
No, don't centre things with align.
With the div fixed at 800px, say:
#MainBody {
width:800px;
margin-left:auto;
margin-right:auto;
}
Have you got a url or maybe I missed it? Have no idea what you
have with the other divs?
--
dorayme
[Back to original message]
|