Thanks for your help.

I've been playing with things and it's coming along well.

Thanks again!

On Apr 27, 2007, at 12:52 PM, Lukas Kahwe Smith wrote:

>
> Davinder Mahal wrote:
>
>> I'm thinking of rearranging some of the design to create jpgs instead
>> of transparent pngs (although this would seriously change the look),
>> however, i still would have other css content that needs to be
>> adjusted for IE6. So i need some type of conditionals in there. But
>> with symfony, what's the best way?
>
> I wrote my own image helper for handling transparent png's .. or for
> something similar. In my case I needed to generate png's from text in
> the i18n database, but I think you can figure out how the relevant  
> parts
> work from the code below:
>
> function trans_image_tag($source, $args = array(), $options = array())
> {
>    if (preg_match('/msie.[4|5|6]/i', $_SERVER['HTTP_USER_AGENT'])) {
>      if (empty($options['style'])) {
>        $options['style'] = '';
>      } else {
>        $options['style'].= '; ';
>      }
>      $options['style'].= "filter:
> progid:DXImageTransform.Microsoft.AlphaImageLoader 
> (src='".trans_image_path($source,
> $args, $options)."', sizingMethod='image')";
>      $options['alt'] = __($source);
>      return image_tag('blank.gif', $options);
>    }
>
>    $args['edit'] = true;
>    $args['image'] = 'tag';
>    $args['options'] = $options;
>    return __($source, $args);
> }
>
> As for images in your style sheets. I try to avoid this as much as
> possible. Generally I do not want to reference files inside my css  
> or js
> files.
>
> As for MSIE6 hacks you just dump those into a file with MSIE  
> conditional
> comments around:
> <!--[if IE 7]>
>    <style type="text/css"> @import url(/css/ie7.css); </style>
> <![endif]-->
>
> regards,
> Lukas
> regards,
> Lukas
>
> >



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to