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?
Asked
Active
Viewed 70 times
-7
-
3Post your html and css, how do you expect us to help you without even seeing the code? – Matteo Mosca Apr 12 '12 at 08:56
-
You are definitely right Matteo Mosca, I somehow forgot to even post the code. But the problem was solved using display:inline-block like like RedX suggested. – Student Apr 12 '12 at 12:16
-
@Student: Then it was always the area of the div and not to the right of ;) – hakre Apr 30 '12 at 08:46
1 Answers
1
Probably your div is display: block
as it is the default. Try display: inline-block
.

RedX
- 14,749
- 1
- 53
- 76