Week 3 - The Box Model
This week we are learning about The Box Model. This picture is from the W3 schools website.
The elements that make up the box are:
- Margin- The margin controls the space outside the border.
- Border- this goes around the padding and the content
- Padding- The padding controls the space inside the border.
- Content- this is where the information goes such as text, images, media etc.
In this first example I set a 400px max width
Lorem Ipsum is simply dummy text of the printing
and typesetting industry. Lorem Ipsum has been
the industry's standard dummy text ever since the
1500s, when an unknown printer took a galley of
type and scrambled it to make a type specimen book.
It has survived not only five centuries, but also
the leap into electronic typesetting, remaining
essentially unchanged. It was popularised in the
1960s with the release of Letraset sheets
containing Lorem Ipsum passages, and more recently
with desktop publishing software like
Aldus PageMaker including versions of Lorem Ipsum.
In this second example I set the margin on all 4 sides on the outside at 50px.
Lorem Ipsum is simply dummy text of the printing
and typesetting industry. Lorem Ipsum has been
the industry's standard dummy text ever since the
1500s, when an unknown printer took a galley of
type and scrambled it to make a type specimen book.
It has survived not only five centuries, but also
the leap into electronic typesetting, remaining
essentially unchanged. It was popularised in the
1960s with the release of Letraset sheets
containing Lorem Ipsum passages, and more recently
with desktop publishing software like
Aldus PageMaker including versions of Lorem Ipsum.
In this third example I set the padding on all 4 sides on the inside at 50px.
Lorem Ipsum is simply dummy text of the printing
and typesetting industry. Lorem Ipsum has been
the industry's standard dummy text ever since the
1500s, when an unknown printer took a galley of
type and scrambled it to make a type specimen book.
It has survived not only five centuries, but also
the leap into electronic typesetting, remaining
essentially unchanged. It was popularised in the
1960s with the release of Letraset sheets
containing Lorem Ipsum passages, and more recently
with desktop publishing software like
Aldus PageMaker including versions of Lorem Ipsum.
Hello Vincent,
ReplyDeleteYou website/blog looks great. I like the way you set all the examples and set them accordingly. This is my first web designing class and learning a lot. I wish I use blog post to create my website but I did not know about this. But like your colors and designing.
This shares great information...i like to gather more information from this blog...
ReplyDeletebest aviation academy in chennai
air hostess academy in chennai
Airline Courses in Chennai
airport ground staff training courses in chennai
airport management courses in bangalore
airport management courses in chennai
air hostess academy in chennai
air hostess course in mumbai
best aviation academy in chennai
Aviation courses in Bangalore
Thanks for the informative blog!Keep sharing like this information for future use..
ReplyDeleteJapanese Classes in Chennai
Japanese Course in Chennai
pearson vue exam centers in chennai
french courses in chennai
TOEFL Classes in Chennai
Best Spoken English Classes in Chennai
IELTS Coaching centre in Chennai
Japanese Classes in Anna Nagar
Japanese Classes in Tnagar
Japanese Classes in OMR