Jefffav Posted January 25, 2023 Share Posted January 25, 2023 (edited) Hello, I am looking to adjust the site title in the header so that it drops down a line, and doesn't push the site logo over. I added some CSS code to display "the site name" (though it is just a text line) as well as the uploaded logo image. The site currently looks like this: But i would like to drop the word Foundation down a line to look like this: Is there a way I can do this in CSS? Here is the code I have to add the text alongside the logo: .header-title-logo a:before { content: "Chris Eckert Foundation"; display: inline-block; font-size: 25px; font-family: calibri; color: black; text-align: center; vertical-align:middle; font-weight:900; padding-left: 10px; } .header-title-logo img { vertical-align: middle; } Thanks for any assistance you can provide. Edited January 25, 2023 by Jefffav Link to comment
Solution tuanphan Posted January 27, 2023 Solution Share Posted January 27, 2023 Change to this code. If it doesn't work, please share link to your site, we can test code easier .header-title-logo a:before { content: "Chris Eckert \A Foundation"; white-space: pre-wrap; display: inline-block; font-size: 25px; font-family: calibri; color: black; text-align: center; vertical-align:middle; font-weight:900; padding-left: 10px; } .header-title-logo img { vertical-align: middle; } 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
Jefffav Posted January 27, 2023 Author Share Posted January 27, 2023 Thank you! That took care of it. tuanphan 1 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