Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
drmaves #1
CFCACHE and CSS
I am trying to use CFCACHE for a page that uses several CFINCLUDEs. When the
cached page is retrieved some of the styles, in the "masthead", "menu" and
"footer" are ignored.
Does anyone know why this is happening to me?
<cfcache timespan="1" action="cache">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<cfoutput>
<title>Selling Your House? - #session.co_display_name#</title>
</cfoutput>
<link rel="stylesheet" type="text/css" href="main.css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="740" align="center">
<cfinclude template="masthead.cfm">
<tr valign="top">
<cfinclude template="menu.cfm">
<cfinclude template="sellers-cnt.cfm">
</tr>
<tr>
<cfinclude template="footer.cfm">
</tr>
</table>
</body>
</html>
drmaves Guest
-
cfcache, generated comment, & DOCTYPE
Well, I was hoping this was going to be fixed in CF7 but it is not. I'm pretty sure there is no way around it, but I figured I'd ask here. When... -
Possible bug in cfcache on CFMX7?
We received an error report indicating a cfhttp timeout on our server. What is interesting is that there are no cfhttp calls in the page. Here is... -
cfcache
I want to know explanation of cfcache. But, I don't know how to do it and I'm confused about that. Then, I've just read cfcache example in cfstudio... -
<cfcache> and date format
I have a CFM file which display a Form. As this form is built from queries and is alway the same, I add the <cfcache> at top of coding, And I get... -
Cannikinn #2
Re: CFCACHE and CSS
Have you tried holding CTRL when you reload the page? Sometimes IE doesn't like to reload stylesheets...
Cannikinn Guest
-
drmaves #3
Re: CFCACHE and CSS
I was able to sort this problem out myself. It had to do with using 'em' to indicate the size of fonts.
I took out all occurances of 'em' and replaced them with 'px' and everything worked out fine.
drmaves Guest
-
david_h #4
Re: CFCACHE and CSS
you shouould actually be using em
that way the user can pick how large he/she wants your text, so if they cant see well, they would be able to still use the site.
david_h Guest



Reply With Quote

