Jump to content

Have two different font sizes on same line for Portfolio grid

Recommended Posts

  • Replies 4
  • Views 258
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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

Link to comment

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

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.