- 0 (Registered)
These days, we don’t build webpages for the sake of putting designs to work. Sites are built to respond to different devices used by different people for different purposes. This reason brought about the concept of responsive website layouts and designs.
This course is a continuation of the course, “CSS3 for Beginners: An Introductory Tutorial.” It teaches how to build website layouts and designs using CSS. Before you take this course, you should have first taken courses in HTML and introductory CSS course.
As discussed in our previous courses, CSS deals with the layout of a webpage. The course, “Introduction to Cascading Stylesheets”, laid the foundation of CSS. CSS selectors and the box model were discussed in detail. You can check it out.
CSS layout deals with the arrangement of HTML elements in a webpage or website. Here we will learn how to position the contents of our HTML outside its normal flow.
Creating website layouts and designs
is an important part of web designing that every web developer must learn.
CSS website layouts and designs will help us to understand how we can deviate from the normal HTML flow and impose the layout we desire. This will help us create a better and more beautiful appearance of our site.
To impose our desired website layouts and designs, we will need to manipulate the CSS code using some CSS properties such as:
Display property: We have discussed three classes of the display properties including block, inline and inline-block.
Floats: Another property that will help us alter the normal flow of our site layout is the float property.
Float and positioning properties can also be used to alter the default block flow of HTML elements. In this section, we shall discuss the float and the clear properties. Then we conclude with z-index and different position values.
The clear property has the following values: left, right, both, none and inherit.
Position property: This property is also important when placing elements on a website.
Multi-column: Finally, we can also use the multi-column property to layout elements in columns depending on what we want to achieve. The multiple column features allow you to divide your webpage contents into more than one column. This feature mimics what is popularly seen in newspapers and magazines.
In this course, we shall be dealing with how to create website layouts and designs. Among others, our focus shall be on CSS layout, including float and positioning, flexbox, and grid.
Working with Floats and Positioning