Medicus Posted September 6 Share Posted September 6 I want to have the logo in the website header along with the name of the company/website. Much like it says squarespace with the logo on the left, something like this: [LOGO] "Website Name" Instead with my css code I get this [LOGO] "Website Name" so the logo comes above the name, it used to work and without me making any changes that I can decern it has stopped working, I've included the CSS below. .header-title-logo a:before{ content: "Bil Export AS"; display: inline-block !important; font-size: 40px !important; font-family: Halyard-Micro !important; color: #FBBE2C; text-align: center !important; vertical-align:middle !important; font-weight:900 !important; padding-left: 20px !important; } .header-title-logo img { vertical-align: middle; } .header-mobile-logo a:before { content: "Bil Export AS"; display: inline-block; font-size: 20px; font-family: Halyard-Micro; color: #FBBE2C; width: 67%; margin: 0 auto; text-align: center; vertical-align: 15px; font-weight:900; padding-left: 20px; //padding-right: 20px; } Link to comment
Ziggy Posted September 6 Share Posted September 6 Can you share your website URL? Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Medicus Posted September 7 Author Share Posted September 7 @Ziggyhttps://www.bilexport.no Link to comment
Ziggy Posted September 7 Share Posted September 7 How is it supposed to look? This is what I see, seems to have the text and logo: Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Medicus Posted September 7 Author Share Posted September 7 Just now, Ziggy said: How is it supposed to look? This is what I see, seems to have the text and logo: well I'd rather the logo be on the left and not overlapping the bottom, I can position it either above or below using After/Before, but I cannot figure out how to position it on the same line as it used to be. again to illustrate the current look is "TEXT" [LOGO] I want it to be [LOGO] "Text" Link to comment
Solution Ziggy Posted September 7 Solution Share Posted September 7 Try this adjustment for the desktop: .header-title-logo a:before{ content: "Bil Export AS"; display: inline-block !important; font-size: 40px !important; font-family: Halyard-Micro !important; color: #FBBE2C; text-align: center !important; vertical-align:middle !important; font-weight:900 !important; padding-left: 85px !important; padding-top: 6px; position: absolute; } .header-title-logo img { vertical-align: middle; } .header-title-logo { position: relative; width: 25rem; } .header-mobile-logo a:before { content: "Bil Export AS"; display: inline-block; font-size: 20px; font-family: Halyard-Micro; color: #FBBE2C; width: 67%; margin: 0 auto; text-align: center; vertical-align: 15px; font-weight:900; padding-left: 20px; //padding-right: 20px; } Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Medicus Posted September 7 Author Share Posted September 7 That worked! Had to adjust it for the mobile version too, but it works now! Thanks a ton @Ziggy! Link to comment
Medicus Posted September 7 Author Share Posted September 7 (edited) Oh no wait I'm just a bit slow, it worked in positioning the logo...because the text is no longer visible. So interestingly it now works for the desktop version, but the mobile still has the issue. Alternatively I could simply forgo the text on the mobile version. Edited September 7 by Medicus Link to comment
Ziggy Posted September 7 Share Posted September 7 Try replacing the mobile portion with this: .header .header-title--use-mobile-logo .header-mobile-logo { position: relative; } .header-mobile-logo a:after { content: "Bil Export AS"; display: inline-block; font-size: 20px; font-family: Halyard-Micro; color: #FBBE2C; margin: 0 auto; text-align: center; vertical-align: 15px; font-weight:900; padding-left: 85px; margin-top: -70px; position: absolute; } tuanphan 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Medicus Posted September 7 Author Share Posted September 7 Works! No text but I've come round to preferring it that way haha. 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