Search
 
SCRIPT & CODE EXAMPLE
 

HTML

make div clickable

<div onclick="location.href='#';" style="cursor: pointer;">
</div>
Comment

make a div clickable

//html
 <div class="col-md-3" id="brwsAllSupp">
        <a href="your_link"><span class="divLink"></span></a>
        <label style="color: black; width: 100%">Browse All Suppliers</label>
        <p class="truckImg">
          <img src="assets/images/truck.png" /> <label style="color:black; font-size:15px; margin-left:20px;"> > </label>
        </p>
 </div>
 
 //css
 .divLink {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}
Comment

PREVIOUS NEXT
Code Example
Html :: facebook share link html 
Html :: icon for about us font awesome 
Html :: html change viewport to smartphone size 
Html :: remove scroll from a page 
Html :: css display only on mobile 
Html :: bootstrap flex align 
Html :: html favicon 
Html :: write & in html 
Html :: font awesome 5 cdn 
Html :: password field odoo 
Html :: json placeholder limit 
Html :: how to add a title picture in html 
Html :: set icon for html page tab 
Html :: html minus sign 
Html :: html implement button send email 
Html :: how to add country flag in html 
Html :: mdb input bg 
Html :: include favicon html 
Html :: html form action target blank 
Html :: html input suggestion 
Html :: align image/text 
Html :: bootstrap href button 
Html :: hint text html 
Html :: html form button 
Html :: onclick open new url html 
Html :: meta og:image 
Html :: angular.io hide 
Html :: html drop down 
Html :: css change font awesome icon color 
Html :: bootstrap 5 cdn js link 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =