Validation

Permalink Browser Info Environment
Hi Jordan,

Excellent add-on and good to see the update.

How would I take out the "border" attribute for images completely.

Showing on page does not validate with W3C.

I have looked at the files, but I'm stumped as to which one i need to alter.

I need to put border:0; in the CSS.

Cheers

Steev

Type: Discussion
Status: New
Steevb
View Replies: View Best Answer
jordanlev replied on at Permalink Best Answer Reply
jordanlev
Hi Steev,
Glad you like it!

I am actually using a built-in C5 function which automatically puts that border on things. If you want to change this for yourself, edit this file:
YOURSITE/sortable_fancybox_gallery/blocks/sortable_fancybox_gallery/view.php

find this line (should be around line #14):
<?php echo $html->image($img['thumb_src'], $img['thumb_width'], $img['thumb_height'], array('alt' => $img['title'])); ?>

and change it to this:
<img src="<?php echo $img['thumb_src']; ?>" width="<?php echo $img['thumb_width']; ?>" height="<?php echo $img['thumb_height']; ?>" alt="<?php echo $img['title']; ?>" />


If you want to style it with css, put something like this in your theme's css file:
.sortable_fancybox_gallery_image img {
   border: 0;
   /* etc. etc. */
}


Let me know if you run into any problems with this.

-Jordan
Steevb replied on at Permalink Reply
Steevb
Hey Jordan,

done and dusted........

Good man, thanks for getting back to me in weird time.

I'm getting ready for bed!

Marked already...

Cheers


Steev


BTW: Already done the CSS

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.