Search code examples
csshtmlareaclickable

Why is the area to the right of a DIV clickable?


I have a clickable div, but the area to the right of the div is also clickable. I don't want that. How can I fix that?


Solution

  • Probably your div is display: block as it is the default. Try display: inline-block.