Forum

Please make sure that you have read the documentation and extensive resources provided on this site before posting your question!

Dynamic Content Gallery Resources

DCG Version 4.0 beta is now available for download and testing. This is a development version and not recommended for live sites. Read more here.

Note that the current stable release of the DCG is version 3.3.5.

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 3 characters - maximum search word length is 84 characters

Topic RSS
Off-center images
Status: closed
October 1, 2010
5:49 pm
maxumimike
Guest

Firstly, thank you SO much for this plugin. I was tearing my hair out over the Featured Content Gallery so this is a lovely alternative.

The only issue I have is that my images are loading off-centre. When I set the gallery width the same as the images, it cuts off the right hand side of the image, and there's a gap on the left hand side.

Have a look and you'll see what I mean – http://www.maxumi.co.uk/

I've had a look in all the CSS that I could find, to see if it's an issue with margins or padding, but I can't find anything that stands out.

I'm using the Jquery as Mootools causes conflicts on my page.

Any help would be great. Thanks!

October 2, 2010
8:35 am
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

Hi,

Glad you like the plugin. Smile

Your gallery looks fine to me in FF/Mac and Safari. Which browser are you using (and version) and which operating system?

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
October 2, 2010
11:32 am
maxumimike
Guest

Hi Ade

I am using Chrome….

Here is a link to an image that shows you what I mean.

http://i55.tinypic.com/2n1gnm0.jpg

Currently, I have it set so the gallery is the exact same width as the images. However, when it's the same width, the right edge of the image is cut off, and there is a white gap on the left edge.

If I increase the width, to compensate, the gap on the left gets bigger and I just end up with the image off centre, and the right arrow touches the edge of the right side of the image, but the left arrow overlaps the left side.

This happens to me in all browsers.

Cheers!

October 2, 2010
12:05 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

Hi,

Something doesn't look right with the CSS being loaded by the plugin in your install.

Can you try something? Delete the plugin via FTP (NOT via the Dashboard), then reinstall a fresh copy via FTP.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
October 3, 2010
4:00 pm
maxumimike
Guest

I've tried this now.

I deleted the entire folder via FTP, and re-uploaded. The settings were somehow how I'd left them, even though I'd deleted it, I don't know if that's because they're stored elsewhere.

The problem persists…

October 3, 2010
4:39 pm
maxumimike
Guest

I've fixed it.

Believe it or not, the fix was just to change the following:

#dfcg-image img {
position:absolute;
z-index:25;
width:auto;
/*height:px;/* Added AAW – not sure */
}

to:

#dfcg-image img {
position:absolute;
z-index:25;
width:auto;
padding:0px;
/*height:px;/* Added AAW – not sure */
}

I've no idea why this fixes it, I'd have thought by default the padding would be 0 anyway.

But yeah, it works now. It might be a good idea just to put this in future releases, it'd save you having to keep helping people :)

October 3, 2010
6:58 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

Hi,

Yes, I knew that the padding was the issue, but the strange thing is that the padding which was causing the problem isn't in the relevant CSS file in the 3.3.2 release… Which is why reinstalling should have fixed it. This is the correct CSS which appears in includes/dfcg-gallery-jquery-smooth-styles.php:

#dfcg-image img {
position:absolute;
z-index:25;
width:auto;
/*height:<?php //echo $dfcg_options['gallery-height']; ?>px;/* Added AAW – not sure */
}
Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
Forum Timezone: UTC 1

Most Users Ever Online: 28

Currently Online: nloronacele
15 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

johnbroome: 13

speedyp: 12

sjpeaches: 12

CherylMcL: 10

gscorp: 8

lsnoei: 8

Member Stats:

Guest Posters: 770

Members: 1300

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 7

Topics: 980

Posts: 4299

Newest Members: jochris26, eva-aa, Tushar, chargers3, jwhetstone, robert

Moderators:

Administrators: Ade (2493)