Jump to content

Change Width of Blog Title in Brine Template on Desktop Only (NOT MOBILE)

Recommended Posts

Posted

I added some custom code to change the width of the blog titles to not be so long - but it also affects the width on mobile } .BlogItem-title { margin-left:10%; margin-right:10% }Anyway this code can exclude mobile?

  • Replies 3
  • Views 1.5k
  • Created
  • Last Reply
Posted

@nicolestone


/* Only on Desktop - Tablet */
@media screen and (min-width:641px) {
.BlogItem-title { margin-left:10%; margin-right:10% }
}

Accept Answer and Upvote if it worked. Thanks.Reference: https://beaverhero.com/squarespace-all-css

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!)

Posted

@nicolestone If you want to apply for only mobile/desktop/table, use these code


/* Mobile */
@media screen and (max-width:640px) {
Paste Your Custom Code (CSS) Here
}
/* Tablet */
@media screen and (min-width:641px) and (max-width:900px) {
Paste Your Custom Code (CSS) Here
}
/* Desktop */
@media screen and (min-width:901px) {
Paste Your Custom Code (CSS) Here
}

/* Tablet - Desktop */
@media screen and (min-width:641px) {
Paste Your Custom Code (CSS) Here
}


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!)

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.