Float -> Slidebar
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:
- Assign the classes to each of the divs (the order matters).
- Do not remove the
mid-element
class 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.
- These are the classes that you need to add to the elements:
header
,main-content
,side-bar
andfooter
.
Looking for some help how to achieve this image result.