Wrapper:

Applying the margin left and right auto tags centered each <div> tag I applied to. But I had to write it for each <div> tag.
That’s when I Discovered I could place <div> tags within other <div> tags. massively simplifying my design. I placed what I called a ‘wrapper’ div tag around my entire page. I specified the width as being 900px, which means the content of my page will not exceed 900px wider, if I remember the lectures correclty this maximum width should fit on most browsers. To center my ‘wrapper’ <div> I  set its margin to auto which has centered my entire page, at a width of 900px.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.