Definition CSS via JQuery – only one element

My code:

.main-page-wrapper .side-nav > ul:nth-child(3) > li:first-child > a {
  font-size: 40px;
<div class="main-page-wrapper">
  <div class="side-nav">
      <li><a href="">1-1</a></li>
      <li><a href="">1-2</a></li>

      <li><a href="">2-1</a></li>
      <li><a href="">2-2</a></li>

      <li><a href="">3-1</a></li>
      <li><a href="">3-2</a></li>


What I need:
change element definitions via CSS to defining this element via JQuery. Anyone help?

Source: CSS – Stack Overflow

November 25, 2021
Category : News
Tags: css | DOM | frontend | javascript | jquery

Leave a Reply

Your email address will not be published. Required fields are marked *

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.