Issue #1019💬 AnsweredOpened April 9, 2018by faizansaiyed0 reactions

Body Background color does not change second time.

快速解答by faizansaiyed

Maybe related to #552

Read full answer below ↓

Question

Hey, I'm using [email protected].

I'm having an issue with body CSS stylings.

My scenario:

I'm opening a blank file from local file system. I changed body background color to #ff0000 and saved the file. File is saved properly with css as of body{background-color:#ff0000} when I opened that file in text editor locally.

But when I opend that same file in GrapesJS editor again, now my code shows body{background-color: rgb(255,0,0)} . And when I update body color to #00ff00 then a new body style is defined above the body{background-color: rgb(255,0,0)} with body{background-color:#00ff00} and my body backgroud color remains same old to rgb(255,0,0) as it overrides the new value of #00ff00.

How to resolve?

Also body{margin:0} is added everytime automatically. How to prevent?

Answers (3)

faizansaiyedApril 9, 2018

Maybe related to #552

artfApril 12, 2018

Hey thanks Faizan, as you already realized, we aware of this issue, therefore I close this one and suggest you to follow it there (subscribe to it)

lock[bot]September 17, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.