Skip to main content
john stephanites
Known Participant
Sep 12, 2017 12:13 AM UTC
Answered

CSS Grid and DW

Hey All,  I am trying to use CSS Grid in DW and I am getting errors plus it isn't rendering properly in the Live View for some reason. If I just open the html in the browser it works so the code is ok. Is there something I am needing to turn on?

This topic is closed to new replies. Start a new post to keep the conversation going.
BenPleysier
BenPleysierCorrect answer
Community Expert
Sep 12, 2017 1:07 AM UTC

1. You did not stipulate what errors you are getting, so cannot answer this.

2. Not only DW's Live view, but also IE, Edge an Opera Mini will not render CSS Grid. The only thing you can do to fix this is to provide a backup for the non-compliant browsers (incl DW Live view)

This is easily done by using Flex first and overriding the instructions using Grid similar to:

#contact.content {

  display: flex;

  flex-flow: row wrap;

  display: grid;

  grid-template-columns: 100%;

  grid-template-areas:

    "main-area"

    "right-sidebar";

  >.col-main {

    flex: 1 100%;

    grid-area: main-area;

  }

  >.col-right {

    flex: 1 100%;

    grid-area: right-sidebar;

  }

  @include media-breakpoint-up(sm) {

    grid-template-columns: 50% 50%;

    grid-template-areas:

      "main-area right-sidebar";

    >.col-main {

      flex: 1 0;

    }

    >.col-right {

      flex: 1 0;

    }

  }

}

display: flex; followed by display: grid;

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!

55 replies

john stephanites
Known Participant
May 2, 2018 6:09 PM UTC

I personally think DW is about to be EOL'ed. To me unless they add a terminal it is really useless.

Translate
B i r n o u
Legend
May 3, 2018 6:37 AM UTC

I'm just curious, why integrating a terminal in within DW, what will be the advantage compare to just have a shortcut that launch the terminal present in the computer... personnaly I prefer powershell... any way... so what the goal... as I said just curious !

Translate
john stephanites
Known Participant
May 3, 2018 10:38 AM UTC

DW was my first editor I used but now I use Visual Studio Code, after trying a ton of them, and it has an integrated terminal. It’s nice to have for finding bugs, not switching back and forth when you need a terminal. Live Reload in different browsers since that doesn’t work very well in DW, git commands, although VSC has awesome Git integration. Creating pregenerated files and other things.

Translate
Niharika Jha
Adobe Employee
Adobe Employee
Sep 19, 2017 6:30 AM UTC

Hi,

Thank You for your inputs. We have started supporting Code Hints for CSS grid layout but the Live View still not shows the correct rendering because the CEF version that supports CSS GRid layout as in Chrome is an earlier one. Although, we have added this issue in our backlog and will take it up in the next releases.

Regards,

Niharika Gupta

Adobe Dreamweaver

Translate
Participant
Jan 14, 2018 4:30 PM UTC

I can't use Dreamweaver until it supports Flexbox and CSS Grid Layout.  All the major browsers are now supporting these standards, especially Firefox.

Translate
Legend
Jan 14, 2018 5:20 PM UTC

patgov  wrote

I can't use Dreamweaver until it supports Flexbox and CSS Grid Layout.  All the major browsers are now supporting these standards, especially Firefox.

You could write your own code? I agree that given DW is a premium product which barks on about how a subscription model will be more effective at rolling out updates to take advantage of todays modern workflow but it fails miserably. Make no mistake a subscription model is about making money for the company, not keeping you up-to-date. It doesnt even have the latest version of Bootstrap so anyone using the default Bootstrap version in DW youre sadly being ripped off, in my opinion, and not least insulted.

Is that harsh, I don't think so but if you disagree I want to hear your opinions.

Translate
BenPleysier
Community Expert
BenPleysierCommunity ExpertCorrect answer
Community Expert
Sep 12, 2017 1:07 AM UTC

1. You did not stipulate what errors you are getting, so cannot answer this.

2. Not only DW's Live view, but also IE, Edge an Opera Mini will not render CSS Grid. The only thing you can do to fix this is to provide a backup for the non-compliant browsers (incl DW Live view)

This is easily done by using Flex first and overriding the instructions using Grid similar to:

#contact.content {

  display: flex;

  flex-flow: row wrap;

  display: grid;

  grid-template-columns: 100%;

  grid-template-areas:

    "main-area"

    "right-sidebar";

  >.col-main {

    flex: 1 100%;

    grid-area: main-area;

  }

  >.col-right {

    flex: 1 100%;

    grid-area: right-sidebar;

  }

  @include media-breakpoint-up(sm) {

    grid-template-columns: 50% 50%;

    grid-template-areas:

      "main-area right-sidebar";

    >.col-main {

      flex: 1 0;

    }

    >.col-right {

      flex: 1 0;

    }

  }

}

display: flex; followed by display: grid;

Translate
Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
john stephanites
Known Participant
Sep 12, 2017 3:35 AM UTC

Yea I realized that after while. I think all the browsers, if updated now support Grid except something like Dreamweaver.

Translate
pziecina
Legend
Sep 12, 2017 7:21 AM UTC

The Brackets code editor now has some support for css grid layouts, so if the Dw roadmap from a few years ago is followed the next version of Dw should also hopefully include code hints and completion, (due end October, approx).

The Brackets code editor gets a few things wrong, just as it did for flexbox, but these are not fatal errors.

Translate