# Gallery filtering

**URL:** <https://forum.pinegrow.com/t/gallery-filtering/4394>\
**Category:** Beginners\
**Created:** [July 31, 2020, 8:11pm UTC](https://forum.pinegrow.com/t/gallery-filtering/4394 "2020-07-31T20:11:35Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![kat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kat/32/2221_2.png) [@kat](https://forum.pinegrow.com/u/kat)\
**Post date:** [August 12, 2020, 5:52pm UTC](https://forum.pinegrow.com/t/gallery-filtering/4394/21 "2020-08-12T17:52:41Z")

</div>

I can’t add a classes in historystyle.css

1. to give me better h4 leading (bottom of the page) for  
Watercolors portrait commissions  
or historic portrait T-shirts
2. to add a creme hover for a center buttons at top.

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [August 12, 2020, 6:02pm UTC](https://forum.pinegrow.com/t/gallery-filtering/4394/22 "2020-08-12T18:02:18Z")

</div>

You’ll have to give a little more info. Why can’t you add a class? What are you trying that isn’t working?

---

<div class="post-metadata">

**Author:** ![kat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kat/32/2221_2.png) [@kat](https://forum.pinegrow.com/u/kat)\
**Post date:** [August 12, 2020, 9:19pm UTC](https://forum.pinegrow.com/t/gallery-filtering/4394/23 "2020-08-12T21:19:15Z")

</div>

I’ve tried various combinations in historystyle.css

## 

#### Watercolors portrait commissions or historic portrait T-shirts on Amazon
  
led {  
line-height: 1.5;  
color: #552a2a;  
}

filter=“art”\>Artists  
\<button class=“button hollow filter-button”  
.button {  
hover-backround-color: #fccd79;

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [August 13, 2020, 10:12am UTC](https://forum.pinegrow.com/t/gallery-filtering/4394/24 "2020-08-13T10:12:44Z")

</div>

Sorry, still not quite getting it @kat.  
You code is a mix of HTML and (partially incorrect, I think) CSS.

The `led` CSS looks mostly correct - it should have a dot before it because it is a class.

For the button you want

```auto
.button:hover {
   backround-color: #fccd79;
}

```

Both should be in your stylesheet for the project.

---

<div class="post-metadata">

**Author:** ![kat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kat/32/2221_2.png) [@kat](https://forum.pinegrow.com/u/kat)\
**Post date:** [August 13, 2020, 4:55pm UTC](https://forum.pinegrow.com/t/gallery-filtering/4394/25 "2020-08-13T16:55:39Z")

</div>

Neither work. Thanks for you patience.  
here is the button in foundation.css  
.button.hollow,.button.hollow.disabled,.button.hollow.disabled:focus,.button.hollow.disabled:hover,.button.hollow:focus,.button.hollow:hover,.button.hollow[disabled],.button.hollow[disabled]:focus,.button.hollow[disabled]:hover  
background-color: transparent;

---

<div class="post-metadata">

**Author:** ![droidgoo](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/droidgoo/32/2209_2.png) [@droidgoo](https://forum.pinegrow.com/u/droidgoo)\
**Post date:** [August 13, 2020, 5:32pm UTC](https://forum.pinegrow.com/t/gallery-filtering/4394/26 "2020-08-13T17:32:08Z")

</div>

i don’t have answers for you, as i’m not familiar at all with foundation, but i do have a comment on presentation style for questions here and elsewhere. the backtick is your friend (upper left most key of the keyboard)

when quoting and inline bit of code use a single backtick to open and then one to close

it will show up like this in nice mono-spaced font for easy reading.

`background-color: transparent;`

if want to quote an entire section of code use tripple backticks to open and to close, like this

```auto
.button.hollow,
.button.hollow.disabled,
.button.hollow.disabled:focus,
.button.hollow.disabled:hover,
.button.hollow:focus,
.button.hollow:hover,
.button.hollow[disabled],
.button.hollow[disabled]:focus,
.button.hollow[disabled]:hover {
    background-color: transparent;
}

```

so it will be much easier to read and find the problem, so you can get the help you need.

sorry to but in.

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [August 13, 2020, 6:38pm UTC](https://forum.pinegrow.com/t/gallery-filtering/4394/27 "2020-08-13T18:38:24Z")

</div>

So, for the h4 styling. You need to think about what other rules are being applied to your text. Foundation has a number of rules, several of which are added to the h4 through the selector `.panel h4`. This has a higher specificity than your single class. So, in this case, changing it to `h4.led` gives it a high enough specificity because it is being loaded AFTER the foundation CSS. If it was loaded befor it would have to have a higher specificity because of the cascade.  
There are two ways to handle this. First, use the developers tools to examine your page to see what actual CSS is being applied. You can open this by right clicking on the pinecone at the upper left and selecting “Inspect”.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/6/6656941826f5ff65cfc3eb03dd9cb4af96161a00.png)  
You can see that your `.led` rule is over-ruled by the `.panel h4` rule sets.  
The second way is to use the Pinegrow Styles panel  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/2/2fcf342522705d5fc2aa6be7b865b5db0d104838.png)  
Here, I’ve mocked up the relevant parts of your site. You can see that if we have the h4 with a class of led selected, the rule is crossed out and third on the list. It doesn’t have enough specificity to be applied. You have two choices here - either delete and recreate the rule with higher specificity, or edit the code of the selector.  
To recreate, I recommend first creating the new rule so that you can copy your old rule set. With the h4 selected, click on the three dots to the right of the text box in the Style panel.  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/2/2fcf342522705d5fc2aa6be7b865b5db0d104838.png)  
Then click on the h4 then the .led from the list of selectors, finally click on “Create”. You can see this ruleset is added at the top, indicating it will be the one that overrules any other rule-sets.You can then add your desired styling.  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/3/3d391799bcb8c5d33741d5dadcdb4b5f4a525818.png)  
The other way is to directly edit the code of the existing rule. If you hover over the rule you will see a symbol appear, `</>`. Click that and then change the selector to `h4.led`.

The same sort of thing is going on with your button - not enough specificity. change your rule to something like `.button-group .button.hollow:hover {background-color: #fccd79; }`. You will have to be careful with this because there are also rules for several other button states that you may need to change. Again, you can check that from either the developers tools or the Pinegrow Styles panel.

---

<div class="post-metadata">

**Author:** ![kat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kat/32/2221_2.png) [@kat](https://forum.pinegrow.com/u/kat)\
**Post date:** [August 13, 2020, 8:11pm UTC](https://forum.pinegrow.com/t/gallery-filtering/4394/28 "2020-08-13T20:11:22Z")

</div>

This give me something to practice on. Totally appreciate it!  
Also really like the uptick advice- `- under the escape key. If that’s not it please let me know.

---

<div class="post-metadata">

**Author:** ![kat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kat/32/2221_2.png) [@kat](https://forum.pinegrow.com/u/kat)\
**Post date:** [August 13, 2020, 8:37pm UTC](https://forum.pinegrow.com/t/gallery-filtering/4394/29 "2020-08-13T20:37:56Z")

</div>

> [@RobM](#):
>
> pinecone at the upper left and selecting “Inspect”.

clicking the upper left pinecone takes me to the pingrow web site. Clarification please

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [August 13, 2020, 8:44pm UTC](https://forum.pinegrow.com/t/gallery-filtering/4394/30 "2020-08-13T20:44:40Z")

</div>

Make sure you are right-clicking. Not sure your OS - on my mac I have it set up that if I do a two-finger click it is the same as clicking the right button on a mouse. I think ‘CTRL’-click will also work.

---

<div class="post-metadata">

**Author:** ![kat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kat/32/2221_2.png) [@kat](https://forum.pinegrow.com/u/kat)\
**Post date:** [August 14, 2020, 9:09pm UTC](https://forum.pinegrow.com/t/gallery-filtering/4394/31 "2020-08-14T21:09:42Z")

</div>

Specificity - everything works!

> [@RobM](#):
>
> change your rule to something like `.button-group .button.hollow:hover {background-color: #fccd79; }` .

But I don’t understand how you narrowed down to `.button-group .button.hollow` from

`.button.hollow,.button.hollow.disabled,.button.hollow.disabled:focus,.button.hollow.disabled:hover,.button.hollow:focus,.button.hollow:hover,.button.hollow[disabled],.button.hollow[disabled]:focus,.button.hollow[disabled]:hover`

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [August 15, 2020, 10:20am UTC](https://forum.pinegrow.com/t/gallery-filtering/4394/32 "2020-08-15T10:20:48Z")

</div>

Well, there are actually about 9 rules there if I count correctly. Each is separated by a comma. They are all targeting elements with the `.button.hollow` classes. In addition, the selectors are targeting these same elements when they have a class of `.disabled`, or an attribute of `[disabled]`, or a pseudo-class of `:focus`, or a pseudo-class of `:hover`.  
The CSS selector that I selected had greater specificity for only the hover state. If you need to change the styling for focus you will have to modify your selector to something like:  
`.button-group .button.hollow:hover, .button-group .button.hollow:focus {xxxx}`  
Make sense?

---

<div class="post-metadata">

**Author:** ![kat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kat/32/2221_2.png) [@kat](https://forum.pinegrow.com/u/kat)\
**Post date:** [August 17, 2020, 2:07am UTC](https://forum.pinegrow.com/t/gallery-filtering/4394/33 "2020-08-17T02:07:17Z")

</div>

1 Where is my interactions panel? ![Screen Shot 2020-08-16 at 7.00.46 PM](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/7/7f652efe675d6d48cdfd42dba52552d1e8ea1217.png)  
2.I want to add an index.html page at the top level of my site. Should I create a folder and put everything in that, css, js, etc or just leave them at the top level. Lots of other items at top level.

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [August 17, 2020, 10:02am UTC](https://forum.pinegrow.com/t/gallery-filtering/4394/34 "2020-08-17T10:02:24Z")

</div>

Hi  
Did you purchase the Interactions add-on? If so It looks like this:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/3/336880ceda84e2abfd9a8139225532c54192722a.png)  
The one to the left of the interactions panel is the TailwindsCSS classes panel. If you have bought it and not activated it go to the “Support” menu and click on “Purchase and Activate”.  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/5/5e49e1cf208165c24f83188d526325af7762859d.png)  
You then enter your info and click “activate”.

With regards to the second question, it is developer’s choice. I like to have a “Resources” folder, with folders inside that for JS and styling.  
Bob

---

<div class="post-metadata">

**Author:** ![kat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kat/32/2221_2.png) [@kat](https://forum.pinegrow.com/u/kat)\
**Post date:** [August 17, 2020, 4:47pm UTC](https://forum.pinegrow.com/t/gallery-filtering/4394/35 "2020-08-17T16:47:29Z")

</div>

I’ve been watching the interactions new tutorials and thought I’d missed something. Don’t want to add anything as Pinegrow Pro is a challenge.

Your help is invaluable, Robert, and yes I will use a Resources folder.

---

<div class="post-metadata">

**Author:** ![kat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kat/32/2221_2.png) [@kat](https://forum.pinegrow.com/u/kat)\
**Post date:** [August 17, 2020, 5:54pm UTC](https://forum.pinegrow.com/t/gallery-filtering/4394/36 "2020-08-17T17:54:31Z")

</div>

How do I attach my root level index2020.html to my Resource project folder?

 ![Screen Shot 2020-08-17 at 10.51.05 AM](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/2/223daffc65c4baefaee5ed57e14d995c1c8938e6.png)

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [August 17, 2020, 6:34pm UTC](https://forum.pinegrow.com/t/gallery-filtering/4394/37 "2020-08-17T18:34:58Z")

</div>

Hmmm, not sure of your project structure. All of your project files and folders should be in a single folder. That single folder gets opened as a project.  
So for example:

```auto
My Web Page
         |
         L index.html
         |
         Lsubpage.html
         |
         L resources folder
                  |
                  L CSS folder
                  | L style.css    
                  |      
                  L JS folder
                      L scripts.js

```

In this example, the topmost `My Web Page` folder would be opened as the Project folder.  
Bob

---

<div class="post-metadata">

**Author:** ![kat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kat/32/2221_2.png) [@kat](https://forum.pinegrow.com/u/kat)\
**Post date:** [August 17, 2020, 7:07pm UTC](https://forum.pinegrow.com/t/gallery-filtering/4394/38 "2020-08-17T19:07:39Z")

</div>

I tried your way initially, but the top level of my site is cluttered, I’d hoped for a neater solution. Maybe I’ll start my resource folder with an i  
Thanks you for the clarification.

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [August 17, 2020, 9:09pm UTC](https://forum.pinegrow.com/t/gallery-filtering/4394/39 "2020-08-17T21:09:19Z")

</div>

You can structure your project in any way that is both

1. Logically pleasing to you
2. A structure which your end server supports.

The second is important. If your server needs you index.html exposed or in a folder is important to keep in mind.

---

<div class="post-metadata">

**Author:** ![kat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kat/32/2221_2.png) [@kat](https://forum.pinegrow.com/u/kat)\
**Post date:** [August 18, 2020, 12:00am UTC](https://forum.pinegrow.com/t/gallery-filtering/4394/40 "2020-08-18T00:00:38Z")

</div>

Is there a way to get Pinegrow to understand that resources is the project folder for index2020.html or do I have to open resources folder and index2020.html separately. Eventually the goal is to replace my index.html, ![Screen Shot 2020-08-17 at 5.01.59 PM](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/c/c98ddbcfb0b7917bd61afa9de94e4049235b8e37.png) ![Screen Shot 2020-08-17 at 4.56.52 PM](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/d/d129421014d5d44c9d3f3b6c7694c20084b08aab.png)

[Previous page](https://forum.pinegrow.com/t/gallery-filtering/4394.md?page=1)

[Next page](https://forum.pinegrow.com/t/gallery-filtering/4394.md?page=3)
