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).

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay