Issue #1823💬 AnsweredOpened February 21, 2019by abozhinov0 reactions

How to set different styles on one element for each device. (responsive)

Quick answerby umerrinayat

@abozhinov I'm facing the same issue. If you solved the issue? Can you share it here. Thanks

Read full answer below ↓

Question

@arthuralmeidap can you tell guide me how to set style different style for each device. I use the mobile-first strategy.

For example to set a different background on mobile and desktop devices.

mediaCondition: 'min-width',

var deviceManagerConfig = { devices: [ { name: 'Desktop', width: '', widthMedia:'768px' }, { name: 'Tablet', width: '768px', widthMedia:'320px' }, { name: 'Mobile', width: '320px', widthMedia:'0px' } ] };

Answers (3)

umerrinayatDecember 6, 2019

@abozhinov I'm facing the same issue. If you solved the issue? Can you share it here. Thanks

theSC0RPOctober 21, 2020

@abozhinov @umerrinayat I am facing the same issue. If you have solved it, can you please share it here?

abozhinovOctober 21, 2020

No I didn’t. Still search for solution.

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 →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.