<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic H1 Media Query Only Works in Rich Text in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/H1-Media-Query-Only-Works-in-Rich-Text/m-p/801413#M34400</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to add media queries for our H1 to adjust the font size based on display; however, I can't get it to work when utilizing the Heading module. It only works when I add the H1 using the Rich Text module. Is there any downside going that route?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2023 20:22:37 GMT</pubDate>
    <dc:creator>PSfraga</dc:creator>
    <dc:date>2023-05-31T20:22:37Z</dc:date>
    <item>
      <title>H1 Media Query Only Works in Rich Text</title>
      <link>https://community.hubspot.com/t5/CMS-Development/H1-Media-Query-Only-Works-in-Rich-Text/m-p/801413#M34400</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to add media queries for our H1 to adjust the font size based on display; however, I can't get it to work when utilizing the Heading module. It only works when I add the H1 using the Rich Text module. Is there any downside going that route?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 20:22:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/H1-Media-Query-Only-Works-in-Rich-Text/m-p/801413#M34400</guid>
      <dc:creator>PSfraga</dc:creator>
      <dc:date>2023-05-31T20:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: H1 Media Query Only Works in Rich Text</title>
      <link>https://community.hubspot.com/t5/CMS-Development/H1-Media-Query-Only-Works-in-Rich-Text/m-p/801505#M34405</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/154628"&gt;@PSfraga&lt;/a&gt;&amp;nbsp;no downside for using the rich text module over the heading module, but it sounds like you just need to extend the code you've added so it includes the heading module.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have a public page link and/or can you share the CSS you've added?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 01:56:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/H1-Media-Query-Only-Works-in-Rich-Text/m-p/801505#M34405</guid>
      <dc:creator>Jnix284</dc:creator>
      <dc:date>2023-06-01T01:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: H1 Media Query Only Works in Rich Text</title>
      <link>https://community.hubspot.com/t5/CMS-Development/H1-Media-Query-Only-Works-in-Rich-Text/m-p/801771#M34428</link>
      <description>&lt;P&gt;Thanks! I removed the CSS but this is what I was using. Any suggestions would be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/83477"&gt;@media&lt;/a&gt; (max-width: 400px) {&lt;BR /&gt;h1 {&lt;BR /&gt;font-size: 14px;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/83477"&gt;@media&lt;/a&gt; (min-width: 400px) {&lt;BR /&gt;h1 {&lt;BR /&gt;font-size: 30px;&lt;BR /&gt;}&lt;BR /&gt;}&amp;lt;/style&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 13:25:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/H1-Media-Query-Only-Works-in-Rich-Text/m-p/801771#M34428</guid>
      <dc:creator>PSfraga</dc:creator>
      <dc:date>2023-06-01T13:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: H1 Media Query Only Works in Rich Text</title>
      <link>https://community.hubspot.com/t5/CMS-Development/H1-Media-Query-Only-Works-in-Rich-Text/m-p/814353#M34842</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/154628"&gt;@PSfraga&lt;/a&gt;&amp;nbsp;, I apologize for the delayed response, I was out of office unexpectedly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try with this updated code:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;style&amp;gt;
@media screen and (max-width: 400px) {
h1 {
font-size: 14px;
}
}

@media screen and (min-width: 400px) {
h1 {
font-size: 30px;
}
}&amp;lt;/style&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option would be to add !important to make sure your overwrites apply above any others.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;font-size: 30px !important;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that doesn't work, I would need a link to see how it's coded to understand why it's not working.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 16:14:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/H1-Media-Query-Only-Works-in-Rich-Text/m-p/814353#M34842</guid>
      <dc:creator>Jnix284</dc:creator>
      <dc:date>2023-06-30T16:14:40Z</dc:date>
    </item>
  </channel>
</rss>

