#(see replies for info) Gallery images suddenly half the height

6 messages · Page 1 of 1 (latest)

winged vector
#

Hey all, the code for my gallery is being weird - it suddenly started only showing the images at half the height specified. Each image is cropped to the size specified in the code

Not sure why it suddenly stopped working? I'm still tidying up and fixing bits of the html/css just focusing on the gallery atm

#

(see replies for info) Gallery images suddenly half the height

vapid creek
# winged vector Hey all, the code for my gallery is being weird - it suddenly started only showi...

The problem is that you have a fixed height of 400px on .gallery and your Whatever your vision, we will elevate your project! text is taking up a lot of space, there is not enough space left for the tract to take up the space that you have specified. This is why you are never supposed to set a height.

By default. the height is based on your content, the more content you add inside the element, the more height the element will get.

The only time you wanna set a fixed height is if you want a scroll container. otherwise you should never set a fixed height. You "could" set a min-height if you REALLY need the height to be there, but usually you're better off without it

winged vector