Different styling for first post
-
I’m coding my current webdesign from scratch, trying to optimize it while doing some design changes, and I was just wondering. Is there an easy way to style the most recent post on your site, without using a plugin or the pseudo-element in CSS?
Currently I’m using :first-child to make the most recent post stand out, and I would rather not use a plugin, because of pagespeed. So any ideas, or should I just say screw you to those still out there without a browser supporting :first-child? ??
I could always make the most recent post a featured post, but there’s gotta be an easier way to give the most recent post a special html-class without having to do that?
Thanks.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Different styling for first post’ is closed to new replies.