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 :: twig echo html code 
Html :: html script crossorigin 
Html :: input type tel 
Html :: icheck js 
Html :: template html 
Html :: ngbdatepicker disable input 
Html :: how to set video size html 
Html :: html if else statement example 
Html :: capturar valor de title por medios de class jquery 
Html :: convert element to html string 
Html :: transform bounce css 
Html :: nested columsn inside bootstrap 
Html :: how to remove box from form in html 
Html :: tradingview lightweight charts cdn 
Html :: svelte pass arguments to function 
Html :: bootstrap wysiwyg 
Html :: a tag displays below img tag 
Html :: html a tag 
Html :: resize element with content html 
Html :: game engine 
Html :: HTML SVG Graphics 
Html :: how to change language to django-html on vscode 
Html :: Simple example of adding javascript in body tag of HTML 
Html :: to ensure user input is a link in html 
Html :: bootstrap div inline cards 
Html :: razor view partial view 
Html :: simplecss cdn 
Html :: klaviyo properties 
Html :: nunjucks loop n times 
Html :: service worker symfony webpack encore 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =