...

/

Different Clearing Techniques

Different Clearing Techniques

Learn different clearing techniques that are helpful while working with floats by solving a challenge.

Problem statement

You will need to add the background color to the outer div so that it covers both the main-content and sidebar areas. Set the background color of the outer div to yellow. The main-content div takes 70% of the page width and floats on the left side. The sidebar div takes 25% of the page width and floats on the right side. Add a 5px solid coral border to both divs. Your output will look like this: ...