I'm trying to group selectors while simultaneously using an adjacent selector, I.E;
.divname p + h1, h2, h3, h4, h5 {}
It works but it's also causing a bleed into the rest of the page for other header tags that should not have these styles so I'm assuming this isn't the right method.
@wolfcry911 That's what I thought the answer would be, major shame!
@karlpcrowley - Yeah that's what I've got right now, was just hoping I could condense the code a bit <-- basically just looking to make the CSS as mini as possible. Appreciate the help with the fiddle forks though!
I'm trying to group selectors while simultaneously using an adjacent selector, I.E;
It works but it's also causing a bleed into the rest of the page for other header tags that should not have these styles so I'm assuming this isn't the right method.
Anyone got any tips?
http://jsfiddle.net/andyunleashed/APREs/
Basically I'm doing some sexy effects for underlines so on P tags that don't follow an H tag the border isn't needed.
I've been playing with having an adjacent selector with a follow group for ages this evening but can't get it going.
@karlpcrowley - Yeah that's what I've got right now, was just hoping I could condense the code a bit <-- basically just looking to make the CSS as mini as possible. Appreciate the help with the fiddle forks though!