Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Bolding statements / attributes in mobile grids

I have been making statements / attributes bold in mobile view which looks better in my opinion, plus my clients have requested it also.

I have been using Perl script as such ...
[%Begin Unverified Perl 

 my $Q14_code1=0;

 if(SCREENWIDTH()>800) 
  {  
   $Q14_code1="Provides sound advice"; 
  }
 
 else 
  {  
   $Q14_code1="<b>Provides sound advice</b>";  
  }

 return $Q14_code1;
 
End Unverified%]

So if I have a lot of statements / attributes, it takes up more time and effort. Is there a more suitable solution (assuming CSS) to force statements / attributes to be bold for mobile view and not bold for the larger devices?

Thanks.
asked Apr 6, 2017 by Paul Moon Platinum (60,130 points)

1 Answer

0 votes
 
Best answer
There are a few classes that only appear for mobile grids that can be used.

<style>
.mobile_grid_question {
    font-weight: bold;
}
</style>
answered Apr 6, 2017 by Zachary Platinum Sawtooth Software, Inc. (75,775 points)
selected May 29, 2017 by Paul Moon
Just what I was looking for thanks Zachary. It's a beauty!
...