[v4.0.2] Custumize css

Phoca Gallery - image gallery extension
msig010500
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 22 Oct 2013, 00:49

[v4.0.2] Custumize css

Post by msig010500 »

Hello,

I try to change aspect of galleries for my site in menu "Gallerie".

For category - All is right. My css is very simple :

Code: Select all

.pg-csv-box {
  float: left;
  padding-left: 10px;
  padding-right: 20px;
  padding-top: 10px;
  padding-bottom: 40px;
  margin:   5px;
  background: #292929;
}
.pg-csv-box:hover {
  background: #4b5929;
}
.pg-csv-box-img {
  border: 5px solid #ffffff;
}
.pg-csv-name {
  font-size: xx-small;
  text-align: left;
  margin-top: 5px;
}
.pg-csv-count {
  font-size: xx-small;
  color: #ffffff;
But the same code doesn't work for categories (.pg-cv-xxxxxxxx).
For exemple for ".pg-csv-box ", "padding-left: 10px;" doesn't change result but "background: #292929;" works perfectly.

Have you an idea for helping me ?

Thanks

Michel.

PS : Sorry if my english is awfull but I'm french. So, for answer, use simply words :oops:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [v4.0.2] Custumize css

Post by Jan »

Hi, for this you need to inspect on your site which css rules are overwritten, which not, which are first, which last, etc. :idea:
If you find Phoca extensions useful, please support the project
msig010500
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 22 Oct 2013, 00:49

Re: [v4.0.2] Custumize css

Post by msig010500 »

Hi,

I'd like do check what you advocate but, in fact, I don't know how to do this ...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [v4.0.2] Custumize css

Post by Jan »

Hi, just see your site e.g. in Firefox and run Firebug to see which classes are used and which attributes are really active (firebug cross out overwritten attributes so you will know which attributes are active)

Jan
If you find Phoca extensions useful, please support the project
msig010500
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 22 Oct 2013, 00:49

Re: [v4.0.2] Custumize css

Post by msig010500 »

Hi,

After long, long time of search and any burnout of my brain ... I found ...

I had one .item in other css so i created one .pg-cv-box.item in my sheet (wallperper.css) and all is fine :) I don't know if this is the better solution but it works.

Thank you very much for your help.
Post Reply