Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Practical Web Design
  • Toc
  • feedback
Practical Web Design

Practical Web Design

By : Philippe Hong
2.3 (3)
close
Practical Web Design

Practical Web Design

2.3 (3)
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)
close
Title Page
PacktPub.com
Contributers
Preface
Index

CSS box model  


All HTML elements can be seen as boxes. A CSS box model allows us to define the spaces between elements. Whether you want to add a border, set a margin, or add paddings between elements, you'll need to understand the box model. Understanding this part will help you a lot when implementing your design.

The boxes

 The box model consists of four properties: 

  • Content: The text, images, and so on
  • Padding: A transparent area around the content, inside the box
  • Margin: The space between the boxes
  • Border: This goes around the padding and the content

Have a look at following diagram for a better understanding:

A CSS box model can be described as shown in the precedingdiagram.

Box models can also let us set the height and the width of an element. By setting the width or the height of the content with the following: 

Width: 200px;

 The width of the content will be 200px.

Now, the annoying thing about the standard box-model is that you can only set the width and the height of the content, and not...

bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete