Issue #1202💬 AnsweredOpened June 14, 2018by milapshah150 reactions

Classes mismatch while using web preset plugin

快速解答by milapshah15

@artf Please help if I am missing anything

Read full answer below ↓

Question

代码片段TEXT
Hello Everyone,

I am using website preset plugin however, when I drag column from grapes Demo page the styling is different and in my application the styling is different as follows.Am I missing anything?

**GrapesUI**

* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
body{
  background-image:url(none);
  background-repeat:repeat;
  background-position:left top;
  background-attachment:scroll;
  background-size:auto;
}
.row{
  display:flex;
  justify-content:flex-start;
  align-items:stretch;
  flex-wrap:nowrap;
  padding-top:10px;
  padding-right:10px;
  padding-bottom:10px;
  padding-left:10px;
}
.cell{
  min-height:75px;
  flex-grow:1;
  flex-basis:100%;
}
@media (max-width: 768px){
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
  .row{
    flex-wrap:wrap;
  }
}
@keyframes fadeEffect{
  0%{
    opacity:0;
  }
  100%{
    opacity:1;
  }
  0%{
    opacity:0;
  }
  100%{
    opacity:1;
  }
}


**My webpage**

* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
*{
  box-sizing:border-box;
}
body{
  margin-top:0px;
  margin-right:0px;
  margin-bottom:0px;
  margin-left:0px;
}
.now-row{
  display:table;
  padding-top:10px;
  padding-right:10px;
  padding-bottom:10px;
  padding-left:10px;
  width:100%;
}
.now-cell{
  width:8%;
  display:table-cell;
  height:75px;
}
@media (max-width: 768px){
  .now-cell{
    width:100%;
    display:block;
  }
  .now-cell{
    width:100%;
    display:block;
  }
}

Warm regards
Milap

Answers (3)

milapshah15June 14, 2018

@artf Please help if I am missing anything

milapshah15June 14, 2018

f = s ? "\n ." + u + " {\n display: flex;\n justify-content: flex-start;\n align-items: stretch;\n flex-wrap: nowrap;\n padding: 10px;\n }\n @media (max-width: 768px) {\n ." + u + " {\n flex-wrap: wrap;\n }\n }" : "\n ." + u + " {\n display: table;\n padding: 10px;\n width: 100%;\n }\n @media (max-width: 768px) {\n ." + o + "cell, ." + o + "cell30, ." + o + "cell70 {\n width: 100%;\n display: block;\n }\n }",

I guess this line from the minified version causes this.Not sure why it is choosing the other case for me.

Warm regards Milap

milapshah15June 14, 2018

Issue fixed.

flexGrid : true in the options for basic plugin fixed the issue

Warm regards Milap

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.