Use Borders Within Divs to Create the Illusion of Margins

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

As you get familiar with using block elements like <div> and <li> mixed with horizontal arrangements using float, you’ll begin to see how layouts can be easily affected by margins. Without much extra effort, you can use borders (the same color as the background) to give the illusion of margins.

Add Comment