Yes the problem is with jquery-colorbox-zoom.css and this CSS class :
a.zoomLink
The code is :
position: relative;
display: inline-block;
It works great for images that are not floating.
Ok, now it seems that your plugin add some extra code to the img tag like:
<img class=”alignright size-thumbnail wp-image-25 colorbox-1“
If you could read/parse the CSS class inside the img tag, then you could do something like :
is there a “alignright” or “alignleft” CSS class in it ?
> Yes ?
> is it “alignright” ?
> Yes ?
> load the right CSS stylesheet jquery-colorbox-zoom-right.css
> is it “alignleft” ?
> Yes ?
> load the right CSS stylesheet jquery-colorbox-zoom-left.css
> else : load the right CSS stylesheet jquery-colorbox-zoom.css
Where jquery-colorbox-zoom-left.css contain this :
a.zoomLink {
position: relative;
display: inline-block;
float:left;
}
and where jquery-colorbox-zoom-right.css contain this :
a.zoomLink {
position: relative;
display: inline-block;
float:right;
}
jquery-colorbox-zoom.css still unchanged
??