DEV Community

Saharan-sub
Saharan-sub

Posted on

CSS Q

div{
display: inline;
}

myDiv {

margin-left: 30px;
height: 40px;
width: 40px;
background-color: red;
}

Overlapping div

I noticed that the #over overrides the #myDiv, any reason for this?

Top comments (1)

Collapse
 
alvaromontoro profile image
Alvaro Montoro

The way this question is written, it's impossible for us to help you. You will need to format the code for us to be able to read it correctly (use three backticks for that `, at the beginning and the end), and add all related code (HTML and CSS, and hopefully a link to a demo on JSFiddle or Codepen or similar).