# Css grid problems

**URL:** https://forum.pinegrow.com/t/css-grid-problems/5680
**Category:** Beginners
**Created:** [September 18, 2021, 8:44pm UTC](https://forum.pinegrow.com/t/css-grid-problems/5680 "2021-09-18T20:44:40Z")
**Posts on this page:** 11
**Page:** 2

<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: [September 22, 2021, 5:39pm UTC](https://forum.pinegrow.com/t/css-grid-problems/5680/21 "2021-09-22T17:39:53Z")

</div>

Hi @kat,  
If you look at the head of your page you are still loading in the bootstrap.css

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/b/b32f546bd84b3cc732f3c50282c72a29c6d680fe.png)  
If you look at the File menu under “Manage stylesheets…” you will likely see it still attached to your page.

With regards to the CSS. Questions for you - what does `.gallery > img` mean? Does it apply to your page set-up? What is the actual CSS that is applies to your img if you look in the DevTools?

Cheers,  
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: [September 22, 2021, 8:36pm UTC](https://forum.pinegrow.com/t/css-grid-problems/5680/22 "2021-09-22T20:36:26Z")

</div>

No BST in [mcgraphics.us/art](http://mcgraphics.us/art) except css in Head: `<link href="../bootstrap_theme/bootstrap.css" rel="stylesheet" type="text/css">`  
`<div class="gallery"> <div class="cat columns filter-item"> <img src="Images400/cat/chazPaint400x400.jpg" alt="Chaz, lovely orange cat"> </div>`

In dev tools doesn’t seem to be there (I did take the arrow out this time)

 ![Screen Shot 2021-09-22 at 9.04.21 AM](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/d/d33940b98a31f273c4f138abec15787da657840d.png)

`}

.gallery img {  
object-fit: contain;  
width: 100%;  
max-height: 100%;

}`  
I have some media queries above in the code for sale–content h3. Possible that interfering?

 ![Screen Shot 2021-09-22 at 9.04.21 AM](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/d/d33940b98a31f273c4f138abec15787da657840d.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: [September 23, 2021, 9:34am UTC](https://forum.pinegrow.com/t/css-grid-problems/5680/23 "2021-09-23T09:34:38Z")

</div>

Hi @kat,  
The link in the head that I show in my image above is loading the Bootstrap 5 theme styling onto your page.Typically the head is where the CSS is loaded and the footer is where the JavaScript (.js) files are loaded.

I looked at your page, and it seems like the images are all resizing correctly now. What problem are you trying to solve with the h3?

Cheers,  
Bob

---

<div class="post-metadata">

### Author: ![schpengle](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/schpengle/32/238_2.png) [@schpengle](https://forum.pinegrow.com/u/schpengle)
#### Post date: [September 23, 2021, 6:42pm UTC](https://forum.pinegrow.com/t/css-grid-problems/5680/24 "2021-09-23T18:42:58Z")

</div>

![Screenshot 2021-09-23 at 19.39.50](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/9/98c8b9a8989204df9d26dae0555a55f82c00981f.jpeg)

This really is nice.  
And seems much better now, heading stays visible at bottom now better, but you can still catch out some oddities, just by grabbing a browser window corner and dragging it up and down varying dimensions.

As shown above.

Thats using the _Brave_ Browser, Mac, etc.

nice though 🙂  
have a look see why some images are anomolous.

ok have fun 🙂

well, ok , quick dev tools shows that image there, the larger one is

 ![Screenshot 2021-09-23 at 19.45.18](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/9/9c9f5af618d3ed09aabfcd29ee5f3b8cda01f625.jpeg)

is 434 x 436

while all the others around it are

434 x 300

 ![Screenshot 2021-09-23 at 19.47.38](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/e/eca5a3e784913041e461cadfcceac16969b43b70.jpeg)

tada ,

Why Hercule!  
How did you do that?

Well… I am a Poirot after all!

> **[Hercule Poirot](https://en.wikipedia.org/wiki/Hercule_Poirot)**
>
> Hercule Poirot (UK: /ˈɛərkjuːl ˈpwɑːroʊ/, US: /hɜːrˈkjuːl pwɑːˈroʊ/) is a fictional Belgian detective created by British writer Agatha Christie. Poirot is one of Christie's most famous and long-running characters, appearing in 33 novels, 2 plays (Black Coffee and Alibi), and more than 50 short stories published between 1920 and 1975.
> Poirot has been portrayed on radio, in film and on television by various actors, including Austin Trevor, John Moffatt, Albert Finney, Peter Ustinov, Ian Holm, To...

Well ok ok… the CSS Grid tool helped a bit too…

 ![Screenshot 2021-09-23 at 19.51.39](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/d/d6e1c6be68b24c62680828f22871a008fc5ec152.jpeg)

and so the dimensions of that image varies as you change browser window dimensions and doesn’t seem to resize correctly

---

<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: [September 23, 2021, 7:17pm UTC](https://forum.pinegrow.com/t/css-grid-problems/5680/25 "2021-09-23T19:17:06Z")

</div>

Still can’t figure this out. image is 400x400, same as all others. Maybe I should set the big dog image to Object-fit: contain  
And can’t get the pricing table in the bottom .wrapper to center. Justify-content, justify-self doesn’t work.

> [@schpengle](#):
>
> 434 x 436  
> while all the others around it are 434 x 300

Entertaining ; )

---

<div class="post-metadata">

### Author: ![schpengle](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/schpengle/32/238_2.png) [@schpengle](https://forum.pinegrow.com/u/schpengle)
#### Post date: [September 23, 2021, 7:18pm UTC](https://forum.pinegrow.com/t/css-grid-problems/5680/26 "2021-09-23T19:18:01Z")

</div>

I think it might be that \<h6 class=dog panel  
bit.

just playing now

IM struggling in Dev tools so fireing up pinegrow now

 ![Screenshot 2021-09-23 at 20.03.36](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/f/f7290faa72ef28dd0c23537d9c4ff1f0e2bf646a.jpeg)

have another _Interesting_ view 😃

---

<div class="post-metadata">

### Author: ![schpengle](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/schpengle/32/238_2.png) [@schpengle](https://forum.pinegrow.com/u/schpengle)
#### Post date: [September 23, 2021, 7:26pm UTC](https://forum.pinegrow.com/t/css-grid-problems/5680/27 "2021-09-23T19:26:40Z")

</div>

329.66 x 300

is the image dimensions for all the images in PG but  
that…cough cough

_Copper, Bernese Mountain dog_

St Bernard?

is  
327.66 x 327.66

yep delete that \<h6 class = “dog panel” part and  
PG then shows the image size the same as the others on the image mouse over in PG

delete that  
**h6 class = dog panel**  
part and  
your good to go.

I think @RobM Rob mentioned something about that umpteen comments back?

---

<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: [September 23, 2021, 8:02pm UTC](https://forum.pinegrow.com/t/css-grid-problems/5680/28 "2021-09-23T20:02:16Z")

</div>

Hi @kat,  
I think @schpengle is right about the h6 throwing things off.

There are a couple of items with the pricing table. With flexbox you want to be careful with margins and max-width. Both are going to throw off any centering. I would set the wrapper to:

```auto
display: flex;
flex-wrap: wrap;
width: 100%;
align-items: center;
justify-content: center;

```

Then I would give the `h2` a width of 100%. That should take care of centering everything.  
Cheers,  
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: [September 23, 2021, 9:25pm UTC](https://forum.pinegrow.com/t/css-grid-problems/5680/29 "2021-09-23T21:25:01Z")

</div>

Schpengle, you’re a genius; removing the h6 worked. Bermese Mountain dog—I thought it was a St. Bernard, too. Same size.

Adding `display: flex `to wrapper threw pricing table off until I added a div above the wrapper at the same level:`<div><h2>How the Process Works</h2>` Probably a more elegant way to do it.

So fun.  
I want to add some animation to the menu, but think I need to switch to something else for a bit to quit torturing everyone. Thanks for sticking with me.

By the way, should I quite posting in Beginners? I do like it here.

---

<div class="post-metadata">

### Author: ![schpengle](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/schpengle/32/238_2.png) [@schpengle](https://forum.pinegrow.com/u/schpengle)
#### Post date: [September 23, 2021, 10:31pm UTC](https://forum.pinegrow.com/t/css-grid-problems/5680/30 "2021-09-23T22:31:14Z")

</div>

> [@kat](#):
>
> By the way, should I quite posting in Beginners? I do like it here.

LIkewise… I have no intention of ever leaving here…

**Every days a school day** … Even though Ive been playing truant for some time.

oh yeah.

> [@kat](#):
>
> Schpengle, you’re a genius;

so, of course, I simply had to **Like** your comment 😃

---

<div class="post-metadata">

### Author: ![schpengle](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/schpengle/32/238_2.png) [@schpengle](https://forum.pinegrow.com/u/schpengle)
#### Post date: [September 23, 2021, 10:37pm UTC](https://forum.pinegrow.com/t/css-grid-problems/5680/31 "2021-09-23T22:37:28Z")

</div>

> [@RobM](#):
>
> In your case it wouldn’t work because you have wrapped each of your images in a `h6` element.

mmm just went back and searched, yep, h6 mentioned back there.

> [@Css grid problems](https://forum.pinegrow.com/t/css-grid-problems/5680/14):
>
> Hi @kat Not sure who “Maz” is or when this was used, but the child combinator \> is more strict than the descendent selector (a space). Basically, it just means only those images that have an element with a class of gallery as their direct parent. In your case it wouldn’t work because you have wrapped each of your images in a h6 element. The object-fit property needs the parent element to have a set-height. Right now, that is the h6.panel. Give this a height of 100%. Next, use object-fit: c…

right im off, nighty night 🙂  
(well might sneak back later …)

[Previous page](https://forum.pinegrow.com/t/css-grid-problems/5680.md?page=1)
