- This topic has 10 replies, 4 voices, and was last updated 3 years, 3 months ago by Leo.
-
AuthorPosts
-
December 7, 2020 at 11:43 am #1570735Jana
How do I decrease the point size of the element header in the html code for mobile? The padding does not do that – it only affects the margins.
Thanks, JanaDecember 7, 2020 at 11:54 am #1570751JanaI should rephrase this. I know the headings I used in the elements can be differentiated between desktop and mobile – but the mobile size also applies to the table type size. Is there a workaround for this?
And how can I resize a logo that I added to the elements as well – or should I just use a template section for this?
Thanks!
December 7, 2020 at 4:06 pm #1570949ElvinStaffCustomer SupportHi,
..but the mobile size also applies to the table type size. Is there a workaround for this?
The best way to go about this is to write a CSS @media query for different break points.
Example:
/* Styling for tablets and small desktops */ @media (min-width:769px) and (max-width:1024px){ [your CSS properties here] } /* Styling for most mobile devices */ @media (max-width:768px){ [your CSS properties here] }
And how can I resize a logo that I added to the elements as well – or should I just use a template section for this?
@media query also applies to this. If you can link us to the site your working on and specify which ones you need to style, we can help w/ the CSS write up. 🙂December 9, 2020 at 8:30 am #1573114JanaIn this script:
/* Styling for tablets and small desktops */
@media (min-width:769px) and (max-width:1024px){
[your CSS properties here]
}
/* Styling for most mobile devices */
@media (max-width:768px){
[your CSS properties here]
}What would be my CSS properties if I’m trying to apply it to all my Header elements such as:
<br>
<br>
<br>
<br>
<h1> Our Leadership </h1>Thank you!
December 9, 2020 at 8:34 am #1573124DavidStaffCustomer SupportHi there,
try this:
/* Styling for tablets and small desktops */ @media (min-width:769px) and (max-width:1024px) { .page-hero h1 { font-size: 28px; } } /* Styling for most mobile devices */ @media (max-width:768px) { .page-hero h1 { font-size: 20px; } }
December 23, 2020 at 10:40 am #1592355JanaDecember 24, 2020 at 8:33 am #1593355DavidStaffCustomer SupportThe Logo in the Hero section is being output by Elementor – you should be able to control its size in the Elementor editor.
December 24, 2020 at 11:06 am #1593501JanaActually, I have the logo in the elements section so I’m not using the Elementor editor – here’s what’s in the elements:
<a href="https://karnerbluecapital.com/"><img src="https://karnerbluecapital.com/wp-content/uploads/2019/09/white-logo-trans.png" height="410" width="250" /></a> <br> <br> <br> <h1> Our Leadership </h1>
Thanks, Jana
December 24, 2020 at 11:07 am #1593504JanaFor some reason I’m unable to paste the logo code from the elements.
but basically it’s (link)
<img src="logo" height="410" width="250" /></a>
December 24, 2020 at 11:07 am #1593505Jana<a href="https://karnerbluecapital.com/"><img src="https://karnerbluecapital.com/wp-content/uploads/2019/09/white-logo-trans.png" height="410" width="250" /></a>
December 25, 2020 at 10:31 am #1594182LeoStaffCustomer SupportI don’t think using the
<br>
tag isthe best idea here.Can you try removing them and add
padding-top: 50px;
to David’ CSS above? -
AuthorPosts
- You must be logged in to reply to this topic.