Page 1 of 1
[SOLVED] crossbrowser ?? here's conditional comment for IE
Posted: Fri Apr 03, 2009 4:48 am
by smirkingdude
While /module/Album/css/stylesheet.css works fine on Firefox browser, it look alittle "out of position" on IE8.
(Look at
http://www.deafcafeflint.org/photo-album.html in both browsers).
IE conditional comments won't work if put on stylesheet.css file.
I try by putting into the default template (Here's the pastebin:
http://cmsmadesimple.org/pastebin/2594 .. lines #6-#10)
.thumb {padding: 0px; }
First, it showed some lines with smarty tags near top of the page...the result is nothing happens visually. The I refresh the page. Those lines with smarty tags disappeared but still..nothing happens visually.
Please help.
Re: crossbrowser ?? here's conditional comment for IE
Posted: Fri Apr 03, 2009 4:57 am
by smirkingdude
those lines with smarty tags:
string(138) "Smarty error: [in module_db_tpl:Album;default line 8]: syntax error: unrecognized tag: padding: 0px; (Smarty_Compiler.class.php, line 446)" string(126) "Smarty error: [in module_db_tpl:Album;default line 8]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"

Re: crossbrowser ?? here's conditional comment for IE
Posted: Fri Apr 03, 2009 1:05 pm
by smirkingdude
I tried the external stylesheet method.
No lines with smarty tag happening. That's good
But nothing changes visually (on IE8). Here's my pastebin (
http://cmsmadesimple.org/pastebin/2595).
The iestyles.css file is exactly the same as /modules/Album/css/stylesheet.css except one line:
.thumb
{
padding:0 0 0 10px; (<-----this is one line changed.)
Then I looked at
Options in Album module. There is "Auto Link Stylesheet" option that links to /modules/Album/css/stylesheet.css file. Nothing wrong with that but where the option to allow an additional CSS file to be linked?
Please help.
Re: crossbrowser ?? here's conditional comment for IE
Posted: Fri Apr 03, 2009 1:07 pm
by smirkingdude
I forgot to mention that I altered the default template by changing the IE conditional comment that shows now:
Re: crossbrowser ?? here's conditional comment for IE
Posted: Fri Apr 03, 2009 1:16 pm
by smirkingdude
Yes, the CSS file (iestyles.css) is in /modules/Album/css folder.
Re: crossbrowser ?? here's conditional comment for IE
Posted: Fri Apr 03, 2009 2:37 pm
by smirkingdude
Change the IE conditional comment from:
to this:
then I tweak the iestyles.css file.
IT WORKED!!!!!
(crossbrowser method works fine...tested with IE8 and Firefox)
Re: crossbrowser ?? here's conditional comment for IE
Posted: Sat Apr 04, 2009 9:48 am
by faglork
smirkingdude wrote:
those lines with smarty tags:
string(138) "Smarty error: [in module_db_tpl:Album;default line 8]: syntax error: unrecognized tag: padding: 0px; (Smarty_Compiler.class.php, line 446)" string(126) "Smarty error: [in module_db_tpl:Album;default line 8]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
You forgot to enclose it in
tags. If you don't do that, smarty will try and process those lines.
Cheers,
Alex