Book Image

Practical Web Design

By : Philippe Hong
Book Image

Practical Web Design

By: Philippe Hong

Overview of this book

Web design is the process of creating websites. It encompasses several different aspects, including webpage layout, content production, and graphic design. This book offers you everything you need to know to build your websites. The book starts off by explaining the importance of web design and the basic design components used in website development. It'll show you insider tips to work quickly and efficiently with web technologies such as HTML5, CSS3, and JavaScript, concluding with a project on creating a static site with good layout. Once you've got that locked down, we'll get our hands dirty by diving straight into learning JavaScript and JQuery, ending with a project on creating dynamic content for your website. After getting our basic website up and running with the dynamic functionalities you'll move on to building your own responsive websites using more advanced techniques such as Bootstrap. Later you will learn smart ways to add dynamic content, and modern UI techniques such as Adaptive UI and Material Design. This will help you understand important concepts such as server-side rendering and UI components. Finally we take a look at various developer tools to ease your web development process.
Table of Contents (20 chapters)
Title Page
PacktPub.com
Contributers
Preface
Index

CSS layout and dividers


Now that we understand how the box model works, we can try to build a simple layout for our HTML page, as shown in the following diagram:

Our layout will have a container with a sidebar on the right, and at the bottom a footer. A very basic layout for a lot of websites.

 This layout will be inside a container that will be centered on the page. Without further ado, let's get started!

The basic layout

To create our basic layout, we will use the <div> element. The <div> element is the most commonly used HTML element. <div> stands for divide, and we simply use it to divide our page into sections by creating boxes where we put our contents.

 Let's clear our CSS in your <style> section and start from scratch.

 We'll start first by adding a <div> element to wrap all the content we've created, and then add a class container to it:

   <div class="container">
     <h1 id="my-name">John Doe</h1>
     <p class="text">I'm an <b...