Can you help me create a subpage that serves as a gallery overview?

As already described in the title, I would like to "build" a subpage that displays a gallery overview.

If you click on a specific CARD, you will be redirected to another blog subpage with the specific "topic" as a sequence of images.

I've already tried something: http://misanthrop.bplaced.net/test/open-public/Testseite-V11b1__13-07-24_BG%C3%9C.html

But I'm not entirely satisfied with it because I think there are still some errors in it.

My question: This only seems to work if I give each card a fixed width in pixels , so that when I shrink the browser window, the number of cards in the row decreases and they slide into the next row. This is what I want, and I'm using CSS Grid for this.

My question is, is there a more elegant way to do it or is this the only way?

In a narrow browser window and, for example, at 500% font size, the grid with the work-wrapper class slides to the right outside of my HTML or body. What's causing this?

Could you please take a look at it and give me some tips?

Greetings M.

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
9 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Destranix
8 months ago

There’s nothing going on with me. Possibly lies with the browser or because you increase it to an ineffective value.

The fixed preite in PX you can possibly. replaced by data in another unit. On and for yourself there is the option to specify but not for free, you can find other options here:

https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns

Destranix
8 months ago
Reply to  Moni98799

In doubt, then take rm, percentage or other relative data.

https://www.w3schools.com/cssref/css_units.php

Destranix
8 months ago

So you mean what I have is quasi ““?

I don’t know. may also be that the percentage is relative to a value which is just small.

I always do it by trying and googling.

Otherwise, you can also use “display: flex” instead, I don’t know if it works better.

Destranix
8 months ago

So according to the grammar on the website, percentages should go. But not if you need ““.

Destranix
8 months ago

I’m surprised. Actually, CSS should be able to convert other relative sizes.

Otherwise, maybe you can use “inline-grid”? Depending on what you want to do.