How to: switch between CSS classes?
-
I’m still a WP newbie and I have this issue: I want to list my posts in two columns. Both are using CSS class (“list-story” and “list-story-alt”) so is there some WP tag where I could just switch dynamically those CSS classes?
This is how I want to present:
<div class="list-story"> Story info </div> <div class="list-story-alt"> Story info </div> <div class="list-story"> Story info </div> ...
Any tips?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to: switch between CSS classes?’ is closed to new replies.