Closed (fixed)
Project:
Galleria
Version:
6.x-1.0
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Jun 2009 at 20:05 UTC
Updated:
30 Jun 2009 at 14:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
cyc commentedAs to my 1st question: I've RTFM;-)
in Galleria jcarousel settings (Limit of visible thumbnails) I've had 10, and jcarousel tries to make room for 10 thumbs.. Anyway, it doesn't work exactly as described.
pls look at the attachements, made with different settings at "Limit of visible thumbnails" field. Number in filename is the current setting.
galleria_3.jpg - 2 first imgs are proportional, third is cropped
galleria_4.jpg - 3 imgs are showed, 4th missing
galleria_5.jpg - 4 imgs shown, 3 first proportional, 4th cut
and so on.. so it's a bug (in fact not very annoying;-)
So first question changes to:
Which css style should I change to have wide (e.g 500px) jcarousel?
(I've tried to change some styles, but the result was far from good)
Comment #2
Mark Theunissen commentedDo you have Firebug installed? Use it to inspect the page and change the values dynamically, and you will be able to very quickly find the right style.
Comment #3
cyc commented@Mark,
OK I've got those styles...
another questions remain open.
I think jcarousel included in gallery should have its own styles (re: my 2nd question above). All changes have to be made in native carousel style, so they have impact on all instances of jcarousel, not only that used in Galleria.
Comment #4
Mark Theunissen commentedGreat!
You will see that all the galleria content is inside a div called "galleria-content".
<div id="galleria-content"></div>So if you want to style the jCarousel in a way that only affects the Galleria's jCarousel, you must adjust your CSS selectors to do this. E.g:
(that is a made-up example, but you get the point...)
Comment #5
cyc commented@Mark
thank you. I'm not css developer, so such guides are priceless for me;-)
The next thing are those annoying green bullets (annoying only in galleria). here how code looks (pasted from Firebug window, come code was removed to clarify content).
If I add "background: none;" manually in each "li" after "width", bullets disappear. But if I add the the following in the jcarousel theme css:
bullets are still visible:-(
I suppose I do not fully understand the css precedence. Or it's impossible to set - how do you think?
Comment #6
Mark Theunissen commentedYour CSS is wrong... I will help you this time, but it would be great if you could get a book on CSS and learn it properly! ;)
1. item-list is a class, so it needs a period not a hash sign (which is for ids).
2. the li element has the class jcarousel-item-horizontal, so your selector is in the wrong order.
I am happy to help with any other Galleria related queries, but please don't ask any more CSS until you've studied the subject a bit. Thanks! :)
Comment #7
cyc commented@Mark
thank you for answer.
my stupid mistake with this hash - I shouldn't make this, I'm not completely green...
unfortunately, there's someting more missing - after correcting, bullets are still visible:-(
but following your advice I will try to find solution myself - I'll publish it here (I hope so)
as to my last open question (however it's not related to jcarousel, but strictly with galleria):
is it possible to initially hide first image and show only thumbs, and of course show full picture after click?
Comment #8
Mark Theunissen commentedHmm, I'm not sure about that, you can try using jQuery.
The only other thing that could be going wrong with your code above (the CSS), is that maybe there is some jQuery that's running and altering the properties that you are setting in the CSS. If so, experiment with the !important directive and try look for a workaround. Or write your own jQuery that runs after jCarousel's jQuery.... I can't really help much more than that I'm afraid.
Comment #9
coxw commentedGive that a shot. Note the ID's are unique on a page, and there will only be one of them. Take advantage of the id's when you can, as it handles a lot of precedence issues. You can also read up on !important features in css as mentioned. They will transcend properties to all sub properties. For instance, #galleria-content li !important may actually work. You have to play around with it..... The only way to learn CSS is to dig right in.
Comment #10
cyc commented@lazycatch:
thank you for pointing, this works: