Fancy Box CSS does not validate. Any way around it?

277 views
Skip to first unread message

shapper

unread,
May 13, 2010, 11:40:09 AM5/13/10
to fancybox
Hello,

I am using Fancy Box in two sites but its CSS are not validated.

Is there a way to have Fancy Box working with valid CSS?

Thank You,
Miguel

--
You received this message because you are subscribed to the Google Groups "fancybox" group.
To post to this group, send email to fanc...@googlegroups.com.
To unsubscribe from this group, send email to fancybox+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fancybox?hl=en.

Janis

unread,
May 13, 2010, 4:03:31 PM5/13/10
to fancybox
yes, there is.

shapper

unread,
May 13, 2010, 4:58:11 PM5/13/10
to fancybox
Could you tell me how?

I am using the latest version and my problems are mostly with code
lines as follows:
.fancybox-ie #fancybox-close { background: transparent; filter:
progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/plugins/
fancybox//fancy_close.png', sizingMethod='scale'); }

And with this particular line:
-ms-interpolation-mode: bicubic;

I suppose this line is related with image resizing ...

I looked this forum before and all the sugestions I found were related
to "data: ..." that should be wrapped by "data: ...".

But I suppose that was an oldest version because I don't have that on
my CSS.

Thank You,
Miguel

Janis

unread,
May 14, 2010, 6:39:29 AM5/14/10
to fancybox
Well, you can move these IE specific lines to another CSS file and
include it using conditional comments, e.g.:
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="..." />
<![endif]-->

Janis

shapper

unread,
May 15, 2010, 8:54:50 AM5/15/10
to fancybox
But wouldn't be possible to have Fancy Box completely validated
without hacks?

I really like Fancy Box but I need to have its CSS validated.
I tried many alternatives and I ended up concluding that Fancy Box is
the best one.

Is there, maybe another simpler CSS version that I can work on?

Thank You,
Miguel

Jan Wilson

unread,
May 15, 2010, 9:43:10 AM5/15/10
to fanc...@googlegroups.com
On 05/15/2010 06:54 AM, shapper wrote:
> But wouldn't be possible to have Fancy Box completely validated
> without hacks?

It is stupid Internet Explorer that is requiring the "hacks". And
perhaps the validators that aren't quite smart enough.

> I really like Fancy Box but I need to have its CSS validated.
> I tried many alternatives and I ended up concluding that Fancy Box is
> the best one.
>
> Is there, maybe another simpler CSS version that I can work on?

The suggestion you were given is pretty simple. Just split the CSS file
into two, one with the MS crap and one without. Instead of loading the
just one file, load the MS stuff with a conditional, as
Janis suggested. I think he should probably package it that way, but
then SOMEONE would complain about having to put conditional comments in
their file.

> On May 14, 11:39 am, Janis<janis.skarne...@gmail.com> wrote:
>> Well, you can move these IE specific lines to another CSS file and
>> include it using conditional comments, e.g.:
>> <!--[if IE]>
>> <link rel="stylesheet" type="text/css" href="..." />
>> <![endif]-->
>>
>> Janis

Reply all
Reply to author
Forward
0 new messages