lindsayscholz Posted September 22, 2021 Share Posted September 22, 2021 Site URL: https://sphere-earthworm-5t8a.squarespace.com/ Hi there! I'm currently developing a site for a client with a blog – for each blog post, the client would like to have the post's category as a styled "tab" fixed and centered at the top of the post (I've attached the wireframe as an example). The password for the site is oakandstone2021, as it isn't live yet. I'm using the below CSS, which appears to get these tabs to happen, but they aren't responsive or staying fixed to the post at different screen sizes: .blog-categories {background: #DDD4C9; padding: 8px 20px; position: relative; top: -460px} Any help would be greatly appreciated – thanks so much! Link to comment
tuanphan Posted September 24, 2021 Share Posted September 24, 2021 Hi, It looks like you done style for tags. Do you still need help to make tag overlap top of image? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
lindsayscholz Posted September 28, 2021 Author Share Posted September 28, 2021 On 9/24/2021 at 3:02 AM, tuanphan said: Hi, It looks like you done style for tags. Do you still need help to make tag overlap top of image? Hi there, yes! Help would still be appreciated – the CSS styles I applied add the tags to the top of the image, but they float off of the images on scroll. Any advice on gettin the tag to stay fixed on top of the image across different devices sizes would be amazing. Thanks so much! Link to comment
tuanphan Posted October 2, 2021 Share Posted October 2, 2021 On 9/28/2021 at 9:37 PM, lindsayscholz said: Hi there, yes! Help would still be appreciated – the CSS styles I applied add the tags to the top of the image, but they float off of the images on scroll. Any advice on gettin the tag to stay fixed on top of the image across different devices sizes would be amazing. Thanks so much! Don't remove any code. Add this CSS .blog-categories { position: absolute; top: -15px !important; left: 50% !important; transform: translateX(-50%); } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
lindsayscholz Posted October 27, 2021 Author Share Posted October 27, 2021 Thank you so much for your help, as always – that worked! 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