mixology avatar

Web Page Layout hand coded from scratch - HTML & CSS

mixology

Published: 22 Nov 2018 › Updated: 22 Nov 2018Web Page Layout hand coded from scratch - HTML & CSS

Web Page Layout hand coded from scratch - HTML & CSS

This is a simple Web Page Layout project of mine. This project's goal was to make a web page layout using HTML and CSS, doing it from scratch, coding it myself from the first line. I am a beginner so it took a lot of patience to succeed. I decided to share this whole process with you, maybe you find it useful, if you are a beginner just like me, or you find it interesting to see how the process looks like. I emphasized flow of the elements and how they align. Content and aesthetics were not my goal, so I made it really simple.

This is the final result:

alt

Screenshots - HTML code

alt

alt

alt

alt

alt

This is the result of HTML without any CSS included. You can see huge images and elements aligned from the top to the bottom, without any structure:

alt

This is the same thing, but I took screenshots of the parts of the page for you to see a bit better how it looks like:

Part One:

alt

Part Two:

alt

Part Three:

alt

Part Four:

alt

Part Five:

alt

Part Six:

alt

Part Seven:

alt

Now, CSS works its magic!

alt

We can already see some changes, the most noticeable is that the content is centered.

alt

So, we add more CSS.

alt

Now we can see some changes in the header section. Heading is blue and bigger and it is on the left, while the navigation looks out of place.

alt

CSS code for navigation:

alt

Here is the result:

alt

Now the goal is to add CSS to make the text and the picture under the big restaurant picture align to the left and right.

alt

The text goes to the left, while the picture is on the right. Mission accomplished.

alt

Next thing is to add three columns under the previous section which include a heading, a picture and text each. This is CSS for that:

alt

This is what we get - a frustration! Something is wrong here! But...

alt

...we have the solution! clear:both is some kind of invisible divider which makes our frustrations go away!

alt

This looks fine!

alt

Now we get to the footer. Some CSS included:

alt

Not much of a result.

alt

Let's add some more CSS code:

alt

VOILA!!! Here is a nice looking footer!

alt

MISSION ACCOMPLISHED, definitely. I hope you like it and find it useful.

Image source for the pictures I used to build web page layout

Image source for the icons I used for the footer

Leave Web Page Layout hand coded from scratch - HTML & CSS to:

Written by

Read more #steemstem posts


Best Posts From mixology

We have not curated any of mixology's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From mixology