2015-08-26, 12:48:24
(2013-11-20, 16:47:21)mvlcek Wrote:(2013-11-20, 10:29:29)stryker Wrote: I am using bootstrap 3 and just want to CENTER the whole gallery (Prettyphoto) inside the parent container / div / column. I've tried for ages to change the relevant CSS styles but stubbornly the gallery always seem to float / align left.
You just have to make your own rules more specific than the generated rules, for CSS rule precedence see e.g. http://www.vanseodesign.com/css/css-spec...-cascaade/.
It helps if you have multiple IDs in your template e.g. <body id="body"> <div id="content"> and then specify the rule as #body div#content ... { ... }. You can look at the developer tools of your browser to see in which order the CSS rules are applied.
It's strange that by default the Gallery aligning left and does not have the option to change it because most of the galleries in the world aligning center and this is very logical. Aligning left gallery looks ugly. Nobody like this look.