You have probably visited a website that has at least one sidebar. Some are very simple and others are more complex, but the goal is the same. In this exercise, we will learn how to create a very simple sidebar layout.
To achieve this you need to add the float property in two elements so they look like the image below.
You can follow these steps if you are struggling:
Add the corresponding classes to each
divin the HTML code (the order matters).These are the classes that you need to add to the elements:
header,main-content,side-barandfooter.Do not remove the
mid-elementclass from the two middle divs, use space to separate each class.Notice in the image that there is a space between the Main Content and the Side Bar.