Search
 
SCRIPT & CODE EXAMPLE
 

CSS

make input invisible but clickable css

/* 
<div class="main">
    <input type="checkbox" />
    <div></div>
</div>*/

.main {
    position: relative
}
.main > div {
    width: 200px;
    height: 200px;
    background: #f00;
}
input {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}
input:checked + div {
    background: #000
}
Comment

PREVIOUS NEXT
Code Example
Css :: media query for mobile min and max width both 
Css :: add dots instead of line break in css 
Css :: css good border color 
Css :: collapse border css 
Css :: how to change background color in css 
Css :: type selector css 
Css :: background-size 
Css :: install tailwind css 
Css :: css cell spacing 
Css :: add shadow to iframe 
Css :: add notification in css 
Css :: span cursor pointer 
Css :: how to hide scrollbar in tailwind css 
Css :: css disabled 
Css :: mysql_config not found 
Css :: how to horizontally center header at the top of page with flexbox css 
Css :: css how to hyperlink 
Css :: css custom scrollbar 
Css :: bootstrap popover style width 
Css :: use svg icon to before after 
Css :: font-family css 
Css :: align absolute div center 
Css :: css pointer-events 
Css :: create circle in css 
Css :: css grid responsive 
Css :: round image css 
Css :: text-decoration 
Css :: declare variables for color in css 
Css :: css select alternate elements 
Css :: css em 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =