Leaf Posted March 28, 2022 Share Posted March 28, 2022 (edited) Site URL: https://jessicawinegar.com/ Hello! [pw: morehugs] I'm trying to change the alignment of footer text in my client's website. I've applied this code so far: /* mobile footer alignment*/ @media only screen and (max-width:640px){ .Footer-blocks * {text-align:center}} It seems to only have applied to some of the text in the footer. I would like all of the footer text to be center-aligned. I'd appreciate any thoughts, Thanks :)) - Leaf (they/them) Edited March 28, 2022 by Leaf Link to comment
Solution tuanphan Posted March 30, 2022 Solution Share Posted March 30, 2022 Use this CSS code /* align center mobile footer */ @media screen and (max-width:767px) { footer.Footer * { text-align: center !important; } } Leaf 1 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
Leaf Posted March 30, 2022 Author Share Posted March 30, 2022 @tuanphan It worked. Thank you! 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