Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other What place does inline CSS have in 2015 and beyond

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #204555
    sharpmachine
    Participant

    Just thinking about how in the recent past inline CSS has almost never been the way to go (except for email templates), but wondering if that’s changing now with all the JS Frameworks like Angular, etc.

    Also I find myself using inline CSS more for modifying my global components when I need an exception. Like if I have an alert that has a margin bottom of 20px, but one screen I don’t want that margin-bottom when I use an alert. Seems best to use inline CSS rather than creating an a class in my stylesheets just to take the margin-bottom off that one alert.

    Thoughts

    #204557
    Shikkediel
    Participant

    That was a great read. I’d leave CSS as it is and only use scripting where it is adding dynamic value or is inevitable that way. Inline styling to start off with I wouldn’t do at all.

    One thing I do like about JS above CSS is that you can calculate responsive dimensions more accurately. So I tend to prefer it over media queries.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Other’ is closed to new topics and replies.