This usually happens due to invalid CSS, which is not recognizable within the builder since each style setting is wrapped in an individual style tag. On the front end, however, the styles are merged, and if there’s some invalid CSS, such as a missing bracket, it will influence the subsequent styles.
The easiest way to find the culprit:
Switch to inline styles
View the HTML on the frontend and copy the whole <style id="bricks-frontend-inline-inline-css">...</style> tag and paste it to a code editor which supports CSS linting (e.g. vsCode).
Remove the opening and closing style tag, so there’s only the CSS left.
The editor shows if there is any invalid CSS. If it’s on an ID, search for the ID on the frontend to know which element you must look at.
Thanks very much for getting back to me, unfortunately it was on a live domain and I had to use a manual backup to get back much of the site. So I couldn’t dig in to find the culprit.
I can assure it wasn’t custom CSS. The homepage broke when I used the undo button a few times, then I mistakenly saved and voila…broken homepage.
I am sorry to hear this, but I cannot reproduce the problem in this way. In your case, it is no longer possible to say precisely what caused it.
It does not have to be custom CSS. A missing variable bracket in an input is also invalid CSS.
I will mark the report as no bug for now and ask you to contact us again if the problem occurs again/you find replicable steps. If so, please wait to import the backup so we might have a chance to check what the problem is