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.
[SOLVED] crossbrowser ?? here's conditional comment for IE
-
- Forum Members
- Posts: 17
- Joined: Fri Sep 21, 2007 7:31 pm
[SOLVED] crossbrowser ?? here's conditional comment for IE
Last edited by smirkingdude on Fri Apr 03, 2009 7:41 pm, edited 1 time in total.
-
- Forum Members
- Posts: 17
- Joined: Fri Sep 21, 2007 7:31 pm
Re: crossbrowser ?? here's conditional comment for IE
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)"

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)"

-
- Forum Members
- Posts: 17
- Joined: Fri Sep 21, 2007 7:31 pm
Re: crossbrowser ?? here's conditional comment for IE
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.
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.
-
- Forum Members
- Posts: 17
- Joined: Fri Sep 21, 2007 7:31 pm
Re: crossbrowser ?? here's conditional comment for IE
I forgot to mention that I altered the default template by changing the IE conditional comment that shows now:
-
- Forum Members
- Posts: 17
- Joined: Fri Sep 21, 2007 7:31 pm
Re: crossbrowser ?? here's conditional comment for IE
Yes, the CSS file (iestyles.css) is in /modules/Album/css folder.
-
- Forum Members
- Posts: 17
- Joined: Fri Sep 21, 2007 7:31 pm
Re: crossbrowser ?? here's conditional comment for IE
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)
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
You forgot to enclose it insmirkingdude 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)"
![]()
Code: Select all
{literal}some code here{/literal}
Cheers,
Alex