JohnnySimon7 Posted March 7, 2021 Share Posted March 7, 2021 Hi guys, I want to achieve h1 and h2 (or h1 in one smaller/bigger font size) within the same tile as per the attached. What is the CSS rule to mimic this styling? Many thanks Link to comment
tuanphan Posted March 12, 2021 Share Posted March 12, 2021 Hi. It is text block or blog title or..? 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
JohnnySimon7 Posted March 18, 2021 Author Share Posted March 18, 2021 Just a text block Link to comment
tuanphan Posted March 28, 2021 Share Posted March 28, 2021 On 3/18/2021 at 12:25 PM, JohnnySimon7 said: Just a text block You can use Markdown or Code Block with this code <div> <h1>How to win friends</h1> <h2>and influence people</h2> </div> 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
JakeM Posted November 9, 2023 Share Posted November 9, 2023 I might be wrong. Very new to using Squarespace, but wouldn't that split the heading into two different elements. Screen readers and search engines would read them as separate relatated but not joined headings. If I was doing this in vanilla code it would be <h1>The big part and <span> smaller part</span> of the same heading </h1> With css to separately style the span h1 span { font-size: insert font size; } Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment