So I have this CSS query here:
last-ns > .col-2:first-child > a::before {
content: "";
border-left: 1px solid #aaa;
position: absolute;
height: 448px;
left: 5px;
}
I want to use jQuery to adjust the height
value of that specific a::before
element; however, I have no idea how to grab that using jQuery...
I'm used to the typical jQuery form of changing CSS:
$("p").css ({
"background-color": "yellow", "font-size": "200%"
});
But I am unsure how to change more complex CSS queries such as my last-ns > .col-2:first-child > a::before
.
Any idea how to do this? Any help is appreciated. Thanks.
edit
My overall goal is to extend the height of that element when a separate element is clicked.