Conditional Formatting via CSS

Everything to do with Joomla! 2.5 templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
gjlook
Joomla! Apprentice
Joomla! Apprentice
Posts: 44
Joined: Mon Jan 09, 2012 11:33 pm

Conditional Formatting via CSS

Post by gjlook » Thu Jul 11, 2013 9:28 pm

Hi

Is there anyway of adding conditional formatting to CSS elements .

eg. if an article has a number of hits ( eg greater than 10 ) then the article title goes red

I'm thinking about an article listing so i can highlight a particular article if it reaches a certain criteria

In my case i am using the Latest News module which i can sort in date order but i want to highlight if an article has been clicked x number of times ( say red for 10+ , orange for 7 - 10 etc )

can this be done ?

User avatar
nikkyg
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 231
Joined: Thu Dec 22, 2011 11:17 pm
Location: New Delhi, India
Contact:

Re: Conditional Formatting via CSS

Post by nikkyg » Fri Jul 12, 2013 7:07 am

CSS is just for adding style to your content. Conditional formatting (like in scripts) is not a possibility using CSS.
- Nikky G
“Good friends, good books, and a sleepy conscience: this is the ideal life.” ― Mark Twain
www.aquireservices.com


Locked

Return to “Templates for Joomla! 2.5”