apply a stylesheet in cfm file
Hi,
I want to use a stylesheet that already exist to add border and background color to html format data that the user enters. how to include the stylesheet for the data to appear that format...
my code...
1. data entered by user example:
<table>
<tr><td class="col1">Number of Oranges</td>
<td class="col2">3</td>
</table>
2. Display.cfm
<style>
<link href=http://nmo568uyt/coldfusion/test/display.css rel="stylesheet" type="text/css" media="all" />
</style>
<cfif structKeyExists(form,"TextByUser") >
<cfif form.type eq "HTML">
<cfoutput>
#form.TextByUserr#
</cfoutput>
</cfif>
</cfif>
3. display.css
#test1 { margin: 0 }
#test1 h2 { margin: 0 }
#test1 table { border-collapse: collapse }
#test1 table th { font-weight: bold }
#test1 table td { text-align: left; margin: 0 }
#test1 table td.col1 { width: 40% }
#test1 table td.col2 { width: 30% }
#test1 table td.col3 { width: 30% }
#test1 table td.col1span { width: 60% }
#test1 table td.col2span { width: 40% }
Any help is appreciated...