[SOLVED] crossbrowser ?? here's conditional comment for IE

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
smirkingdude
Forum Members
Forum Members
Posts: 17
Joined: Fri Sep 21, 2007 7:31 pm

[SOLVED] crossbrowser ?? here's conditional comment for IE

Post 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.
Last edited by smirkingdude on Fri Apr 03, 2009 7:41 pm, edited 1 time in total.
smirkingdude
Forum Members
Forum Members
Posts: 17
Joined: Fri Sep 21, 2007 7:31 pm

Re: crossbrowser ?? here's conditional comment for IE

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

???
smirkingdude
Forum Members
Forum Members
Posts: 17
Joined: Fri Sep 21, 2007 7:31 pm

Re: crossbrowser ?? here's conditional comment for IE

Post 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.
smirkingdude
Forum Members
Forum Members
Posts: 17
Joined: Fri Sep 21, 2007 7:31 pm

Re: crossbrowser ?? here's conditional comment for IE

Post by smirkingdude »

I forgot to mention that I altered the default template by changing the IE conditional comment  that shows now:



smirkingdude
Forum Members
Forum Members
Posts: 17
Joined: Fri Sep 21, 2007 7:31 pm

Re: crossbrowser ?? here's conditional comment for IE

Post by smirkingdude »

Yes, the CSS file (iestyles.css) is in /modules/Album/css  folder.
smirkingdude
Forum Members
Forum Members
Posts: 17
Joined: Fri Sep 21, 2007 7:31 pm

Re: crossbrowser ?? here's conditional comment for IE

Post by smirkingdude »

Change the IE conditional comment from:





to this:





then I tweak the iestyles.css file.

IT WORKED!!!!!  ;D

(crossbrowser method works fine...tested with IE8 and Firefox)
faglork

Re: crossbrowser ?? here's conditional comment for IE

Post 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

Code: Select all

{literal}some code here{/literal}
tags. If you don't do that, smarty will try and process those lines.

Cheers,
Alex
Locked

Return to “Layout and Design (CSS & HTML)”