简体   繁体   中英

Stop Divs text from overlapping

Does anyone know how I can stop two divs from overlapping?

I have a .box.active div however the text on this is overlapping into another div

thanks for any help in advance!

If DIVS are overlapping then the general principles is your code has made them do that in the first place. Add position relative to the classes on your div tags to start with along with Display block.

.yourdivclass {display:block}
.yourdivclass {display:inline-block}

Some other possibilities:

  • Set widths on elements?
  • Have you used FLEX? This can cause this often if your code has not been completed correctly?

Generally, we need more code to solve issues so if this does not help - provide some code in your question and I can help further.

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM