I'm not quite sure what I'm doing wrong.
Here's the Fiddle
section:not(#2) { font-size:33px; }
Update:
Forgot about not using numbers for the example!
Silly me, I was doing something like this and forgot the # before current. Pesky syntax errors.
current = $(this).attr('id');
$('section:not(#'+current+')').css('height',titleHeight);
Your id is invalid, id never starts with a number, you need an alphabet at the start
Demo
<section id="a1">Section 1</section>
<section id="a2">Section 2</section>
<section id="a3">Section 3</section>
CSS
section:not(#a2) { font-size:33px; }
Take a look at this answer for more details
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With