Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS and Coldfusion - support for tags

Status
Not open for further replies.

buddyholly

Programmer
Sep 12, 2002
24
FR
I have no trouble creating a CSS to support background colour, font style etc, but dont know how to address the colour, font etc of coldfusion tags which are embedded into the cfm page. At the moment I am setting these manually, outside of the CSS.

I'm probably missing somthing pretty obvious !

 
Hi mate,

I really don't understand what you mean by this. Coldfusion tags are processed by the server before it serves the content to the user, so CSS takes effect after this time.

If you mean content pulled from a database, then as stated above, it does not affect the page whether you were using Coldfusion, PHP, Perl, ASP, SSI or whatever, the CSS is not processed server side. Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Hi, many thanks for the reply!

Yes, I have a cfm page which displays data from database
I have several recordset tags in a table on this page to do that.

The page has a css attached which gives me background color and font color etc. However, the recordset tags are not affected by the attached css. I have to set tag color / font directly on the page. What I want to do is have the CSS define the tag color/font - not do it manually ?

 
Hi mate,

I never actually thought of it this way.

All I can think of at present is to specify these as application-wide variables in application.cfm

Another way you could get round this would be to change your css file to a .cfm file and include it on top of every page. This makes updating just as easy, yet you can also use application variables in the stylesheet.

Hope this helps Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Wullie, thanks for the input - I had forgotten about the application.cfm approach - got to b ruch up on that, have not used it for client variables as yet. I got a solution to my 'recordset tags' problem using standard css. FYI heres what I did

1 created a style sheet and embedded in it a class selector called .storyline

.storyline {
font-family: "Times New Roman";
font-style: normal;
color: #FFFAF0;
font-size: -20%;
font-weight: lighter;
}

2 Linked the style sheet to the cfm

3 selected the 'recordset tags' and used dreamweaver INSERT / TAGS to surround the 'recordset tags' with H4 tags and point to the class selector

<h4 class=&quot;storyline&quot;><cfoutput>#Recordset1.addresse#</cfoutput></h4>

4 tweeked the look and feel of the 'recordset tags' via adjusting the class selector

many thanks again for responding

james

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top