DmitrMakeev commited on
Commit
2e9b83d
·
verified ·
1 Parent(s): 9911ebf

Update pages.html

Browse files
Files changed (1) hide show
  1. pages.html +4 -9
pages.html CHANGED
@@ -349,7 +349,7 @@ const editor = grapesjs.init({
349
 
350
  editor.BlockManager.add('custom-player', {
351
  label: 'Custom Player',
352
- content: `<div id="player" style="width: 480px; height: 270px; border: 3px solid black; margin: auto; position: absolute; top: 0; bottom: 0; left: 0; right: 0;"></div>`,
353
  attributes: {
354
  class: 'fa fa-play'
355
  }
@@ -359,16 +359,11 @@ editor.CssComposer.addRules(`
359
  width: 480px;
360
  height: 270px;
361
  border: 3px solid black;
362
- margin: auto;
363
- position: absolute;
364
  top: 0;
365
- bottom: 0;
366
- left: 0;
367
- right: 0;
368
  }
369
- `);
370
-
371
-
372
 
373
 
374
 
 
349
 
350
  editor.BlockManager.add('custom-player', {
351
  label: 'Custom Player',
352
+ content: `<div id="player" style="width: 480px; height: 270px; border: 3px solid black; margin: 0 auto; position: relative; top: 0;"></div>`,
353
  attributes: {
354
  class: 'fa fa-play'
355
  }
 
359
  width: 480px;
360
  height: 270px;
361
  border: 3px solid black;
362
+ margin: 0 auto;
363
+ position: relative;
364
  top: 0;
 
 
 
365
  }
366
+ `);
 
 
367
 
368
 
369