Jump to content

Have two different font sizes on same line for Portfolio grid

Recommended Posts

Posted

Hi all, just wondering if it is possible to have two font sizes, or at least bold only part of the text, for a Portfolio simple grid item?

So it would give the look of what is in the attachment - Title would be a bigger font than the bit that comes after the "|" separator.

Current website link is: 
https://pentagon-walrus-jy9y.squarespace.com/
(All pages except for the home page are portfolios)

Cheers!

Screenshot 2024-08-18 at 14.16.45.png

  • Replies 4
  • Views 981
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted

So the client wants the two font sizes on one line (or at least bold and non-bold text). I asked them about making it two lines but they do not want the text on two lines.

Something like this:

Title | Subtitle

Posted

You can use guide I sent, and to make both same lines, just change

block

to

inline-block

image.thumb.png.64993a685b622a2ebd95ec48a3dc65ee.png

so the code will be like this

a.grid-item h3:after {
    display: inline-block;
    font-size: 14px;
    padding-left: 5px;
    font-weight: bold;
}
a.grid-item[href="/narrative/only-heaven-knows"] h3:after {
    content: "NARRATIVE FEATURE";
}

image.thumb.png.2e93c86d5d865e2ade3c9c5bd24d36f7.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!)

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.