L786g42s Posted July 20, 2019 Posted July 20, 2019 Hi, I'd like some help in modifying the size of the text that is overlaid on banners in the Anya Template (Bedford Template Family). In my screenshot below, I'd like to make the text "The Day Of" much larger on a mobile device only. I've searched through similar and relevant questions over the last few weeks and haven't found a solution that works for this template. I understand that you need something like this in order to do it: @media only screen and (max-width: 640px) { OBJECT ID GOES HERE { font-family: adobe-garamond-pro; font-weight: 400; font-style: italic; letter-spacing: 1px; font-size: 18px; text-transform: none; line-height: 1.5em; } } I am currently building a wedding website, so the website is private at the moment. I've temporarily changed the password so that you can look at the website in its current form. Website: https://www.caseyandliam.com/Password: H3LP! Thanks in advance for any help.
tuanphan Posted July 20, 2019 Posted July 20, 2019 @L786g42s OBJECT ID GOES HERE = div#the-day-of .desc-wrapper p strong 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!)
L786g42s Posted July 20, 2019 Author Posted July 20, 2019 This worked, thank you for your help! I tried removing div#the-day-of in an attempt to apply the modifications to all banner text, but it would only work when I repeated the same code below referencing the other banner. Is there a way to reference all banners instead of just the one? Also, is it possible lower the threshold before the words are forced on to a new line? Could it be something like the padding of the container? Again, thanks for fixing my immediate concern with a workaround!
tuanphan Posted July 20, 2019 Posted July 20, 2019 @L786g42s .desc-wrapper p strongadd !important to after, eg: font-size: 18px !important "is it possible lower the threshold before the words are forced on to a new line" I have not really understood the question 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!)
L786g42s Posted July 20, 2019 Author Posted July 20, 2019 Hmm, that doesn't seem to change anything. I took a look at what the !important tag does, and I can't see why it would be useful, if it is already making the text the size I want it. Let me try and explain again, when I change the text size of The Day Before to 65px, the word Before drops down the a new line. However, I still believe there's plenty of space to have all the words on the same line, which is what I'm looking to do.
tuanphan Posted July 20, 2019 Posted July 20, 2019 .desc-wrapper {max-width: 100% !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!)
tuanphan Posted July 20, 2019 Posted July 20, 2019 You wan to change font size of The day before & The day of? It will be .desc-wrapper p strong { font-size: 10px !important; } or which & where banners? 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!)
L786g42s Posted July 21, 2019 Author Posted July 21, 2019 Close, and thanks for trying : ) after some thinking, I think the adjusting the text size is enough to make the banner titles the way I want them. So you've definitely solved my main issue—thanks again!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.