Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default cfoutput and css

    I declare an entire document within a <cfoutput> </cfoutput>
    section.
    I am trying to insert the following css style descriptor into the
    code:

    <style tyle=text/css>
    input.red {background-color: #cc0000; font-weight: bold; font-size:
    12px; color: white;}
    input.pink {background-color: #ffcccc;}
    input {font-size: 10px;}
    textarea.violet {background-color: #ccccff;}
    </style>

    And no matter how I enclose it in comments, I always seem to get an
    error. Any ideas?

    TIA
    Chris Kemp Guest

  2. Similar Questions and Discussions

    1. Cfoutput help!!!
      I am trying to figure out how to output records from a query that is returing 2 distinct table rows from each query. THe out put needs to look like...
    2. No row output if no cfoutput
      I've been trying to build a table in the following format: <tr><td>HTML</td> <CFOUTPUT...
    3. cfoutput prblem
      Hi: I made a registration page with coldfusion, then I want the user to edit it's info. So I started the page with a cfquesry and then a cfoutput ...
    4. cfoutput and cfloop
      Hi all, well this is my question: I want to show 2 or more different sets of record sets but one or more of them have to be nested on the first,...
    5. <cfoutput>
      Hi. I'm trying to rename a file but I get an error message. My code looks someting like this: <cfset source='C:\MyDocs\old.doc'> <cfset...
  3. #2

    Default Re: cfoutput and css

    if you want to display a # in your ouputted page and are within a cfoutput
    tag, all you have to do is double up

    <style tyle=text/css>
    input.red {background-color: ##cc0000; font-weight: bold; font-size:
    12px; color: white;}
    input.pink {background-color: ##ffcccc;}
    input {font-size: 10px;}
    textarea.violet {background-color: ##ccccff;}
    </style>


    stpaz Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139