AliaElias Posted January 21, 2022 Posted January 21, 2022 Site URL: https://www.draliaelias.com I'm trying to move my banner down several spaces on the mobile site only, since the options to format the banner are very limited in site styles with the template I'm using, Bedford. I was able to use custom CSS to make the banner larger (using some other forums posts) since it is tiny by default, but I now want to move the mobile version of the banner either down a few lines, or up many lines. The custom CSS code I used to increase the banner font size is: } .desc-wrapper p:nth-of-type(3) { font-size: 34px; ; } .desc-wrapper p:nth-of-type(4) { font-size: 30px; ; where I just set the index of "p:nth-of-type" to higher integers until it affected each line of the banner. The first line of the banner ended up being "3" and the next line was "4". However, this custom CSS code only applied to the desktop version of the site. Is there a way to use these elements I've already accessed and just move them either up or down on the page? And how do I apply it to only the mobile site?
tuanphan Posted January 24, 2022 Posted January 24, 2022 Add !important, to force it run on all devices. Something like this .desc-wrapper p:nth-of-type(4) { font-size: 30px !important; } 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment