Join the Webstudio community

Updated last week

custom code

Hi, I’ve created a simple box with a linear gradient background. It displays correctly in the editor, but it doesn’t show up in the preview. Is this a known issue, or am I missing something?

Thank you in advance for your help!

https://p-7e49c935-94a7-4227-8eb8-a71731850c76.apps.webstudio.is/?authToken=6edcfaf8-38cd-4a77-aa90-daf924e1027d&mode=preview
Attachment
image.png
B
G
O
9 comments
Where is it shown in editor? I see only empty layer
Attachment
image.png
Thank you Bogdan for the fast answer,
Attachment
image.png
Try to scroll css preview up
Ahh sorry about this thank you very much
I bet your box doesn't have any height and its empty, you see it on canvas only because we have logic that gives it some size just to see it at all
this is necessary behavior, otherwise you wouldn't be able to select it on canvas
give it some height
yes It works now thank you
Add a reply
Sign up and join the conversation on Discord