Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
.content {
display: inline-block;
white-space: nowrap; /* Prevents the text from wrapping */
}
.number {
margin-left: 5px; /* Adjust the spacing as needed */
}
/* Mobile view */
@media (max-width: 768px) {
.content {
display: inline;
}
.number {
margin-left: 5px; /* Ensures it stays after 'alunite' with proper spacing */
}
}
.accordion-button {
display: flex;
align-items: center;
justify-content: space-between;
background-color: #f8f9fa; /* Example background color */
border: none;
font-weight: bold;
}
.accordion-button .badge {
background-color: #343a40; /* Dark background color for the badge */
color: white;
padding: 0.5em 0.7em;
font-size: 0.85rem; /* Adjust as per your requirement */
border-radius: 0.5rem;
margin-left: 0.5em; /* Space between text and badge */
}
.expand-icon {
margin-left: auto;
padding-left: 1em;
font-weight: bold;
}
/* Mobile view adjustments */
@media (max-width: 768px) {
.accordion-button {
font-size: 0.9rem;
}
.accordion-button .badge {
font-size: 0.75rem;
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Accordion Example</title>
<style>
/* Basic Reset */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
/* Accordion Item Styles */
.accordion-item {
border: 1px solid #ccc;
margin: 10px;
border-radius: 5px;
}
.accordion-hr {
margin: 0;
}
/* Default styles for desktop view */
.accordion-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.accordion-button {
display: flex;
justify-content: space-between;
width: 100%;
padding: 10px;
background-color: #f8f9fa; /* Light background */
border: none; /* Remove default button border */
cursor: pointer; /* Pointer cursor on hover */
}
.accordion-button:hover {
background-color: #e2e6ea; /* Darker on hover */
}
.badge {
background-color: #343a40; /* Dark badge color */
color: white; /* White text color for badge */
padding: 5px 10px; /* Padding for badge */
border-radius: 12px; /* Rounded corners for badge */
}
.expand-icon {
margin-left: 10px; /* Space between badge and icon */
}
/* Styles for mobile view */
@media only screen and (max-width: 768px) {
.accordion-header {
flex-direction: row; /* Ensure items are in a row */
justify-content: space-between; /* Space out items */
align-items: center; /* Center items vertically */
}
.name {
flex-grow: 1; /* Allow name to take available space */
margin-right: 10px; /* Space between name and badge */
}
.badge {
margin-left: auto; /* Push badge to the left side */
margin-right: 10px; /* Space between badge and expand icon */
}
}
</style>
</head>
<body>
<div class="accordion-item product-card">
<hr class="accordion-hr">
<h2 class="accordion-header reach-it-btnheader">
<button class="accordion-button reach-it-accordionbtn" type="button" aria-expanded="true">
<span class="name">Immunoassay Alinity i</span>
<span class="badge badge-dark">1</span>
<span class="expand-icon ms-2">+</span> <!-- Use + as an example icon -->
</button>
</h2>
</div>
</body>
</html>
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team