Good Morning,

It appears from your code that you're wanting the div26 to act as a wrapper
of sorts to hold and surround everything else.  If that's the case, then
that div really needs to surround everything in the HTML too.  The opening
div26 tag will start the page content, then all your header, navigation,
etc. goes in - probably using one of the approaches Mr. Laakso suggests,
then the closing div26 tag ends the content block.  This div26, when
centered using something like {margin:0 auto;} with a defined width will
then stay in the horizontal center of the page, taking all its interior
contents with it provided those individual content areas are not all
absolutely positioned.

One other note that you will find quite helpful I think is just a suggestion
to start a naming convention for your coding so that it's easy to edit your
pages.  I think you'll find that anyone trying to read and edit your code,
including yourself, will quickly go crazy trying to decipher div's that are
only named as arbitrary numbers, and other elements such as images that
aren't named for their function.  Before your site gets out of hand it would
be time well spent to start naming your divs for things that have meaning -
header, content, rightCol, leftCol, etc.  rather than div1, div2.  You'll
save yourself a ton of grief later by adopting best practices from the
foundation of your pages.

Good luck with the site.

Chris A.

On Sat, Jul 5, 2008 at 9:29 PM, Brian Gilbert <
[EMAIL PROTECTED]> wrote:

> Hi,
>
> I'm brand new to using CSS and could use some assistance.  What I am
> wanting
> to achieve is for the content of my webpage to stay centred with a drop
> shadow while the stretches when the browser window size is increased
> similar
> to http://www.macworld.com.au/.
>
> I'm creating a website at the moment and have put the rough pages up on
> http://www.nctd.com.au/
>
> You will see on the index page that the "apDiv26" displays about 10 pixels
> down from the top of the page even though I have set it to be 0 pixels in
> all of the settings that seem relevant.  I've tried using Absolute and
> Relative settings to "apDiv26" but it does not function in the way that I
> am
> looking for.  Any input appreciated to put me on the right track.
>
> Thanks,
> Brian Gilbert
> Perth Western Australia
>
>
> ______________________________________________________________________
> css-discuss [EMAIL PROTECTED]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> List policies -- http://css-discuss.org/policies.html
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to