Popular posts from this blog
Pure CSS Collpasible Accordion
HTML accordion control made purely out of css. No JS !! Any accordion would definitely need some JS function The following accordion uses input type="radio" and the ' :checked + div ' CSS selector to collapse and expand content. Example selector: input[type="radio"]:checked + div{ /*expand this*/ height:200px; } The collapse code input[type="radio"]:not(:checked) + div{ /*collapse this*/ height:0px; } How does it work? The title of each collapsible is a label which has the attribute for="collapsible-1" to trigger the radio button collapsible-1 . Clicking the label checks the corresponding radio button. The div following the radio button is expanded as per the CSS code shown above [this collapses the rest of the div s automatically because its a radio button group, selecting one un-selects the other radio by default]. A radio button is added say collapse-all which...
CSS Monkey
A monkey from pure CSS code. Made only from circles and ellipses, technically only ellipses. Eyes, ears, face and mouth are obvious ellipses. The smile and hair are ellipses too, a transparent one wit only one side border, and rotated in such a way that it looks like a strand of hair. Even the monkey's smile, is a ellipse covering the whole face, but its transparent and has a bottom-border of few pixels which makes it look look like a smile. The complete CSS and the monkey: See the Pen CSS Monkey by Jones Vinoth Joseph ( @jo_Geek ) on CodePen .

Comments
Post a Comment