Details > Sumary

Developer
Size
2,487 Kb
Views
12,144

How do I make an details > sumary?

Just playing with the details element. . What is a details > sumary? How do you make a details > sumary? This script and codes were developed by Josh Vogt on 18 November 2022, Friday.

Details > Sumary Previews

Details > Sumary - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Details > Sumary</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <details> <summary><h2>Is the details element a JS free interactive disclosure widget?</h2></summary> <p>Yeah, pretty sweet eh?</p>
</details>
<details> <summary><h2>Can I style the details element?</h2></summary> <p>Yeah, of course you can. And you can do some cool things like:</p> <ul> <li>Visually change state based on the presence of the open attribute</li> <li>Change the default disclosure marker</li> </ul>
</details>
<details> <summary><h2>Can we agree that the details element is awesome?</h2></summary> <p>Yes.</p>
</details>
</body>
</html>

Details > Sumary - Script Codes CSS Codes

@charset "UTF-8";
* { box-sizing: border-box; position: relative; font-family: sans-serif;
}
* + * { margin-top: 20px;
}
details { padding: 0 10px;
}
summary { padding: 5px 10px;
}
summary h2 { display: inline;
}
details:not([open]) summary { background: #ccc;
}
details[open] summary { background: #007ac9; color: #fff;
}
details:nth-of-type(3) summary::-webkit-details-marker { display: none;
}
details:nth-of-type(3) summary { background: #cdcdcd; padding-left: 40px;
}
details:nth-of-type(3) summary::before { content: "
Details > Sumary - Script Codes
Details > Sumary - Script Codes
Home Page Home
Developer Josh Vogt
Username josh_vogt
Uploaded November 18, 2022
Rating 3
Size 2,487 Kb
Views 12,144
Do you need developer help for Details > Sumary?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Josh Vogt (josh_vogt) Script Codes
Create amazing SEO content with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!