Jump to content

Use more width and make the images clickable to enlarge them

Recommended Posts

Hey, 

is there any way to use the full width (or at least some of the remaining white space on the right) and to make them clickable to enlarge them? At the moment they are very small. I would like to use this only for my visual diary pages not for my normal project galleries. Bildschirmfoto2024-01-20um12_54_34PM.thumb.png.a249b90a6c089ecc3af1f0f4e5f4478a.png

Link to comment
  • Replies 11
  • Views 1.5k
  • Created
  • Last Reply

Top Posters In This Topic

www.sarahkoester.com is my website if that helps

 

And I know that there is the possibility of using light boxes to make the images clickable but I don't like the fixed order. I want to arrange my photos freely as in a diary style.

Link to comment
On 1/23/2024 at 7:10 PM, sarahjo said:

https://www.sarahkoester.com/diary#/visual-diary-2022/

 

I managed to make the images clickable but I still would prefer using more of the width (reduce white space on the right)

You mean increase width of this red box?

image.thumb.png.466bce965e87c44e125d59920cfe2f86.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 1/27/2024 at 3:43 AM, sarahjo said:

Yes! 

You can use this code to Website > Website Tools (under Not Linked) > Custom CSS

@media screen and (min-width:992px) {
#project .gallery {
    max-width: 1200px !important;
    margin-left: 350px;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 2 weeks later...
On 2/6/2024 at 4:22 AM, sarahjo said:

How do I use this code to make it only effective for this one specific page? https://www.sarahkoester.com/diary#/visual-diary-2022/

Use this new code

@media screen and (min-width:992px) {
[data-dynamic-href="/visual-diary-2022/"] #project .gallery {
    max-width: 1200px !important;
    margin-left: 350px !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 2/7/2024 at 11:36 AM, tuanphan said:
@media screen and (min-width:992px) {
[data-dynamic-href="/visual-diary-2022/"] #project .gallery {
    max-width: 1200px !important;
    margin-left: 350px !important;
}
}

I just added the code and don't see any difference.…

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.