-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
Google to discontinue the Basic HTML version of Gmail next year
By Chasethebase,
- 1 reply
- 4 views
-
- 0 replies
- 5 views
-
Google Chrome 108 is coming today with lots of deprecations and improved COLRv1 support
By Usama Jawad96,
- google chrome
- (and 6 more)
- 1 reply
- 5 views
-
Get this Price Dropped Coding 101 Bootcamp Beginners Bundle for only $24.99
By News Staff,
- zenva academy
- coding 101
- (and 11 more)
- 1 reply
- 6 views
-
- 0 answers
- 3,065 views
-
Question
eliokh
Hello,
im trying to make my div as a link using the display:block in css.
I need the all div to be clickable and directing to the link inside it and i cant put a div insade a <a> as its not valid.
Searching the net, i found that i should use display:block but is not working.
Here is my code:
but is not working.
any suggestions why?
the div containg the <a> has paddings, could this be the reason?
is there anyother clean way to do it?
thanks in advance.
Link to comment
Share on other sites
7 answers to this question
Recommended Posts