Change parent div to active when child is active
up vote
1
down vote
favorite
I'm working on a CSS Collapsible menu that I created from the tutorial here.
I have a container div that has a button (accordion), that when active, displays content (panel div).
When the button is active, I want to put a border around the container div.
Is there a way I can set .container to active when the child (accordion) is active, so I can target it? Or is there an easier way in CSS?
Any advice anyone has is appreciated. I just can't seem to make it work :(
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + "px";
}
});
}
.container:hover {
border: 1px solid #ededed;
}
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.active,
.accordion:hover {
background-color: #ccc;
}
.panel {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</div>
</div>
javascript css collapsable
add a comment |
up vote
1
down vote
favorite
I'm working on a CSS Collapsible menu that I created from the tutorial here.
I have a container div that has a button (accordion), that when active, displays content (panel div).
When the button is active, I want to put a border around the container div.
Is there a way I can set .container to active when the child (accordion) is active, so I can target it? Or is there an easier way in CSS?
Any advice anyone has is appreciated. I just can't seem to make it work :(
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + "px";
}
});
}
.container:hover {
border: 1px solid #ededed;
}
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.active,
.accordion:hover {
background-color: #ccc;
}
.panel {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</div>
</div>
javascript css collapsable
Put all the HTML, CSS and Javascript in only one code snippet so that they all together.
– Dominique Fortin
Nov 10 at 16:23
Just do what you did for the panel and add a CSS class to the container.
– Dominique Fortin
Nov 10 at 16:27
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I'm working on a CSS Collapsible menu that I created from the tutorial here.
I have a container div that has a button (accordion), that when active, displays content (panel div).
When the button is active, I want to put a border around the container div.
Is there a way I can set .container to active when the child (accordion) is active, so I can target it? Or is there an easier way in CSS?
Any advice anyone has is appreciated. I just can't seem to make it work :(
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + "px";
}
});
}
.container:hover {
border: 1px solid #ededed;
}
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.active,
.accordion:hover {
background-color: #ccc;
}
.panel {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</div>
</div>
javascript css collapsable
I'm working on a CSS Collapsible menu that I created from the tutorial here.
I have a container div that has a button (accordion), that when active, displays content (panel div).
When the button is active, I want to put a border around the container div.
Is there a way I can set .container to active when the child (accordion) is active, so I can target it? Or is there an easier way in CSS?
Any advice anyone has is appreciated. I just can't seem to make it work :(
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + "px";
}
});
}
.container:hover {
border: 1px solid #ededed;
}
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.active,
.accordion:hover {
background-color: #ccc;
}
.panel {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</div>
</div>
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + "px";
}
});
}
.container:hover {
border: 1px solid #ededed;
}
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.active,
.accordion:hover {
background-color: #ccc;
}
.panel {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</div>
</div>
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + "px";
}
});
}
.container:hover {
border: 1px solid #ededed;
}
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.active,
.accordion:hover {
background-color: #ccc;
}
.panel {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</div>
</div>
javascript css collapsable
javascript css collapsable
edited Nov 10 at 16:25
Andy
27.2k63158
27.2k63158
asked Nov 10 at 16:15
mark914
175
175
Put all the HTML, CSS and Javascript in only one code snippet so that they all together.
– Dominique Fortin
Nov 10 at 16:23
Just do what you did for the panel and add a CSS class to the container.
– Dominique Fortin
Nov 10 at 16:27
add a comment |
Put all the HTML, CSS and Javascript in only one code snippet so that they all together.
– Dominique Fortin
Nov 10 at 16:23
Just do what you did for the panel and add a CSS class to the container.
– Dominique Fortin
Nov 10 at 16:27
Put all the HTML, CSS and Javascript in only one code snippet so that they all together.
– Dominique Fortin
Nov 10 at 16:23
Put all the HTML, CSS and Javascript in only one code snippet so that they all together.
– Dominique Fortin
Nov 10 at 16:23
Just do what you did for the panel and add a CSS class to the container.
– Dominique Fortin
Nov 10 at 16:27
Just do what you did for the panel and add a CSS class to the container.
– Dominique Fortin
Nov 10 at 16:27
add a comment |
2 Answers
2
active
oldest
votes
up vote
0
down vote
accepted
Create a .container.active
class, and toggle it from the JS with this.parentNode.classList.toggle('active');
.
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
this.parentNode.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + "px";
}
});
}
.container:hover {
border: 1px solid #ededed;
}
.container.active {
border: 1px solid black;
}
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.active,
.accordion:hover {
background-color: #ccc;
}
.panel {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Test 3</p>
</div>
</div>
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Test 2</p>
</div>
</div>
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Test 3</p>
</div>
</div>
Thanks, this worked. But I have multiple containers and the active class is only added to the first one for some reason :(
– mark914
Nov 10 at 22:18
@mark914, I've added another two containers to my answer, and I think it does it properly.
– Andy
Nov 10 at 22:32
1
Sorry, my mistake. Got it working. Cheers mate!
– mark914
Nov 10 at 22:47
add a comment |
up vote
0
down vote
Add this line to the listener
document.getElementsByClassName("container")
.classList.toggle("active");
And add these css rule
.container {
border: 0px solid white;
}
.container.active {
border: 1px solid black;
}
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
Create a .container.active
class, and toggle it from the JS with this.parentNode.classList.toggle('active');
.
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
this.parentNode.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + "px";
}
});
}
.container:hover {
border: 1px solid #ededed;
}
.container.active {
border: 1px solid black;
}
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.active,
.accordion:hover {
background-color: #ccc;
}
.panel {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Test 3</p>
</div>
</div>
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Test 2</p>
</div>
</div>
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Test 3</p>
</div>
</div>
Thanks, this worked. But I have multiple containers and the active class is only added to the first one for some reason :(
– mark914
Nov 10 at 22:18
@mark914, I've added another two containers to my answer, and I think it does it properly.
– Andy
Nov 10 at 22:32
1
Sorry, my mistake. Got it working. Cheers mate!
– mark914
Nov 10 at 22:47
add a comment |
up vote
0
down vote
accepted
Create a .container.active
class, and toggle it from the JS with this.parentNode.classList.toggle('active');
.
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
this.parentNode.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + "px";
}
});
}
.container:hover {
border: 1px solid #ededed;
}
.container.active {
border: 1px solid black;
}
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.active,
.accordion:hover {
background-color: #ccc;
}
.panel {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Test 3</p>
</div>
</div>
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Test 2</p>
</div>
</div>
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Test 3</p>
</div>
</div>
Thanks, this worked. But I have multiple containers and the active class is only added to the first one for some reason :(
– mark914
Nov 10 at 22:18
@mark914, I've added another two containers to my answer, and I think it does it properly.
– Andy
Nov 10 at 22:32
1
Sorry, my mistake. Got it working. Cheers mate!
– mark914
Nov 10 at 22:47
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
Create a .container.active
class, and toggle it from the JS with this.parentNode.classList.toggle('active');
.
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
this.parentNode.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + "px";
}
});
}
.container:hover {
border: 1px solid #ededed;
}
.container.active {
border: 1px solid black;
}
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.active,
.accordion:hover {
background-color: #ccc;
}
.panel {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Test 3</p>
</div>
</div>
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Test 2</p>
</div>
</div>
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Test 3</p>
</div>
</div>
Create a .container.active
class, and toggle it from the JS with this.parentNode.classList.toggle('active');
.
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
this.parentNode.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + "px";
}
});
}
.container:hover {
border: 1px solid #ededed;
}
.container.active {
border: 1px solid black;
}
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.active,
.accordion:hover {
background-color: #ccc;
}
.panel {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Test 3</p>
</div>
</div>
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Test 2</p>
</div>
</div>
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Test 3</p>
</div>
</div>
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
this.parentNode.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + "px";
}
});
}
.container:hover {
border: 1px solid #ededed;
}
.container.active {
border: 1px solid black;
}
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.active,
.accordion:hover {
background-color: #ccc;
}
.panel {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Test 3</p>
</div>
</div>
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Test 2</p>
</div>
</div>
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Test 3</p>
</div>
</div>
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
this.parentNode.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + "px";
}
});
}
.container:hover {
border: 1px solid #ededed;
}
.container.active {
border: 1px solid black;
}
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.active,
.accordion:hover {
background-color: #ccc;
}
.panel {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Test 3</p>
</div>
</div>
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Test 2</p>
</div>
</div>
<div class="container">
<button class="accordion">Button text</button>
<div class="panel">
<p>Test 3</p>
</div>
</div>
edited Nov 10 at 22:31
answered Nov 10 at 16:37
Andy
27.2k63158
27.2k63158
Thanks, this worked. But I have multiple containers and the active class is only added to the first one for some reason :(
– mark914
Nov 10 at 22:18
@mark914, I've added another two containers to my answer, and I think it does it properly.
– Andy
Nov 10 at 22:32
1
Sorry, my mistake. Got it working. Cheers mate!
– mark914
Nov 10 at 22:47
add a comment |
Thanks, this worked. But I have multiple containers and the active class is only added to the first one for some reason :(
– mark914
Nov 10 at 22:18
@mark914, I've added another two containers to my answer, and I think it does it properly.
– Andy
Nov 10 at 22:32
1
Sorry, my mistake. Got it working. Cheers mate!
– mark914
Nov 10 at 22:47
Thanks, this worked. But I have multiple containers and the active class is only added to the first one for some reason :(
– mark914
Nov 10 at 22:18
Thanks, this worked. But I have multiple containers and the active class is only added to the first one for some reason :(
– mark914
Nov 10 at 22:18
@mark914, I've added another two containers to my answer, and I think it does it properly.
– Andy
Nov 10 at 22:32
@mark914, I've added another two containers to my answer, and I think it does it properly.
– Andy
Nov 10 at 22:32
1
1
Sorry, my mistake. Got it working. Cheers mate!
– mark914
Nov 10 at 22:47
Sorry, my mistake. Got it working. Cheers mate!
– mark914
Nov 10 at 22:47
add a comment |
up vote
0
down vote
Add this line to the listener
document.getElementsByClassName("container")
.classList.toggle("active");
And add these css rule
.container {
border: 0px solid white;
}
.container.active {
border: 1px solid black;
}
add a comment |
up vote
0
down vote
Add this line to the listener
document.getElementsByClassName("container")
.classList.toggle("active");
And add these css rule
.container {
border: 0px solid white;
}
.container.active {
border: 1px solid black;
}
add a comment |
up vote
0
down vote
up vote
0
down vote
Add this line to the listener
document.getElementsByClassName("container")
.classList.toggle("active");
And add these css rule
.container {
border: 0px solid white;
}
.container.active {
border: 1px solid black;
}
Add this line to the listener
document.getElementsByClassName("container")
.classList.toggle("active");
And add these css rule
.container {
border: 0px solid white;
}
.container.active {
border: 1px solid black;
}
answered Nov 10 at 16:35
Dominique Fortin
1,511816
1,511816
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53240863%2fchange-parent-div-to-active-when-child-is-active%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Put all the HTML, CSS and Javascript in only one code snippet so that they all together.
– Dominique Fortin
Nov 10 at 16:23
Just do what you did for the panel and add a CSS class to the container.
– Dominique Fortin
Nov 10 at 16:27