3- inline-block (CSS Positioning)



Oops, try again.
Did you remember to set the display of your

s to inline-block?

Replace this line with your code.


Please paste in your code so we can help you


Thank you pls find below the HTML code

  • {
    border: 1px dashed blue;

div {
height: 50px;
width: 100px;
border: 2px solid black;
border-radius: 5px;
/*Add your CSS here!*/
div {
display: inline-block;

one {

background-color: #FF0000;


two {

background-color: #0000FF;


three {

background-color: #FFD700;


four {

background-color: #308014;

The CSS code:



why do you need add the display property + value in one css selector? Anyway, your first div css selector is missing a closing curly bracket (})


Thanks that helped, the upper part of the CSS code was system generated (above the /*Add your CSS here!*/) and missing the curly bracket (}). Problem solved by adding it. This is was probabaly causing the error.


For further reference, here's how to format your code correctly: