Reply to Re: Fixed Site Size

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация