close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

image offset to right

Thread begun 6/24/2011 4:05 am by CraigR | Last modified 6/27/2011 12:29 pm by neilo | 2583 views | 6 replies |

CraigRBeta Tester

image offset to right

I just got around to updating powergallery because of browser issues with new version of FF.

My gallery is ribbon/fullsize/lightbox.

After the upgrade, the fullsize image is overhanging my content div and appearing well to the right, which I am sure wasn't happening before.

I do remember seeing something like this before, but can;t remember what I did.

I kept my old css files to compare, but they seem to be identical

example..

ecommerce.php

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

in the galleries/ribbon_fullsize_lightbox/css/common.css adjust the width for the following properties:

.pg-rfl
.pg-rfl .fullsize
.pg-rfl .fullsize .fullsize-enlarge

Sign in to reply to this post

CraigRBeta Tester

Thanks Jason, that has nearly fixed it.

The only thing I cannot fix, is the width of the ribbon, which seems to be set in js for the fullsize+ribbon+lightbox

I have edited the css class, and previewed the ribbon width through firebug, but the width stubbornly refuses to change permanently

I have edited the gallery.js to change the number of thumbnails displayed, which helps, but the width doesn't match the div above

Sign in to reply to this post

Jason ByrnesWebAssist

the ribbon width is set dynamically based on the number of thumbnails.

you can change the number of thumbnails in the ribbon by editing the galleries/ribbon_fullsize_lightbox/js/gallery.js file

find the following code:
options: {
initial: 0,
perPage: 6
},


the perPage setting sets the number of thumbnails to show in the ribbon.

Sign in to reply to this post

CraigRBeta Tester

As per my last message. I already did this...

  I have edited the gallery.js to change the number of thumbnails displayed, which helps, but the width doesn't match the div above  



but the width of the ribbon doesn't match the div above

it looks worse because of the border, is it easier just to remove the border and centre the ribbon ?

Sign in to reply to this post

Jason ByrnesWebAssist

since the width is dynamically generated based on the number of thumbnails, you cant really change the width of the ribbon.

centering the ribbon is one solution, another solution is to change the width of the main image to match the width of the thumbnails.

Sign in to reply to this post

neilo

In your galleries/ribbon_fullsize_lightbox/index.php file, could you not set an inline style width (491px) for the div class="thumbs-wrapper" div?:

<div class="thumbs-wrapper" style="width: 491px;">


then set the class="thumbs" margin style to auto?

<div class="thumbs" style="width: 474px; margin:auto">
Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...