Subrion CMS Support Forums  

Go Back   Subrion CMS Support Forums > Common Information > General Chat

General Chat That's the right place for your to discuss anything you want.

Reply

 

LinkBack Thread Tools Display Modes
Old 05-31-2009   #1 (permalink)
Junior Member
 
Join Date: Feb 2008
Posts: 20
seemybiz is on a distinguished road
Question Adding CSS To Custom Field

Howdy,

I need to add a style to the output of a custom field:
{assign var="state" value="field_state_"|cat:$item.state}
{$lang.field_state}: {$lang.$state}

Using this:
.ReportStatus {
color: #FF0000;
}

Where would I place it?

Thanks in advance
__________________
Brad
Learn or teach something new each day, or what's the point?
seemybiz is offline   Reply With Quote
Old 05-31-2009   #2 (permalink)
Subrion Tech Support
 
Join Date: Apr 2007
Posts: 623
Sergey Hmelevsky will become famous soon enough
Default Re: Adding CSS To Custom Field

Hi Brad,
first of all you need to add a wrapper, something like that:
Code:
{$lang.field_state}: <span class="ReportStatus">{$lang.$state}</span>
after you need add style description in the templates/Default/css/style.css file.
__________________
With private requests send a ticket on http://www.subrion.com/desk/
Sergey Hmelevsky is offline   Reply With Quote
Old 05-31-2009   #3 (permalink)
Junior Member
 
Join Date: Feb 2008
Posts: 20
seemybiz is on a distinguished road
Default Re: Adding CSS To Custom Field

Quote:
Originally Posted by Sergey Hmelevsky View Post
Hi Brad,
first of all you need to add a wrapper, something like that:
Code:
{$lang.field_state}: <span class="ReportStatus">{$lang.$state}</span>
after you need add style description in the templates/Default/css/style.css file.
That's perfect. I feel rather embarrassed, because I knew that

Thank you
__________________
Brad
Learn or teach something new each day, or what's the point?
seemybiz is offline   Reply With Quote
Old 05-31-2009   #4 (permalink)
Subrion Tech Support
 
Join Date: Apr 2007
Posts: 623
Sergey Hmelevsky will become famous soon enough
Default Re: Adding CSS To Custom Field

always at your service
__________________
With private requests send a ticket on http://www.subrion.com/desk/
Sergey Hmelevsky is offline   Reply With Quote
Reply

Tags
css, custom field, style

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Editing Car Field TurXaliM Subrion Core Discussion 2 03-23-2008 10:30 PM
How to Lengthen Title Field LorenGK Subrion Core Discussion 8 06-15-2007 02:47 AM


All times are GMT -6. The time now is 02:12 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0