alysha_voon Posted April 24, 2020 Share Posted April 24, 2020 Site URL: https://www.ossability.com/ Hi! I have been working on a website and customising it with CSS and HTML. It has gone live, but some of the features, specifically the blue / yellow underlines on the headings, are placed perfectly in the editor seem to have shifted and moved on the live website. I'm not sure why as it still displays fine in the editor and in the preview. NOTE: We have since temporarily changed the code to look good on the live website, but in turn it messes up the formatting in the editor (as seen below).This is seen in the editor and the previewThis is seen on the live website (Desired) This is the code used to make the blue underlines: .underline-blue::before{ background:#28aae1; content: ""; position: absolute; bottom: 42px; height: 5px; width: 70px; } Does anyone have any advice on this? Why has this happened, and how can I make my editor the same as the live website? Also, the lines move around a little depending on the size of the browser window (on laptop), and size of the screen (iPhones, tablets etc). Does anyone know why this happens, how, and can it be fixed? Thank you! Link to comment
tuanphan Posted April 24, 2020 Share Posted April 24, 2020 Have you set position: relative for .underline-blue yet? 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
Julia-K Posted April 24, 2020 Share Posted April 24, 2020 .underline-blue{position: relative; line-height:1;} Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.