In a complex layout, a developer needs to stop floated elements from wrapping around a particular element. Which CSS property and value pair should they consider applying to that element?

  • clear: both
  • float: none
  • overflow: hidden
  • position: relative
To prevent floated elements from wrapping around a specific element, the developer should apply the 'clear: both' CSS property and value pair to the element. This clears any floated elements on both sides, ensuring the desired layout is maintained.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *