4 ms·
When you have modern CSS frameworks like Bootstrap and Foundation available, the CSS aspect of a website is arguably one of the least complicated aspects of fro
by minimaxir 13y ago
When you have modern CSS frameworks like Bootstrap and Foundation available, the CSS aspect of a website is arguably one of the least complicated aspects of front-end development. (and better for the users instead of using JavaScript)
Even animations are easier to do in CSS due to CSS3 animation libraries.
- sp332 13y agoBootstrap is javascript.
- deleted 13y ago[deleted]
- mintplant 13y agoBootstrap contains some JavaScript for certain modules, but the majority is CSS (well, Less).
- sp332 13y agoOk, cool. But Less is also javascript!
- minimaxir 13y agoWhat the client sees is CSS, and that's the important part.
- sp332 13y agoThe important part for elorant (and me) is that CSS is awful to work with. And everyone in this thread is proving it by pointing out that you should use some kind of translation layer instead of actually touching it.
- pyre 13y agoWell, there's two things at play here. The complexity of the CSS model in the browser (plus all the browser-specific quirks) and the CSS syntax. Less only solves the CSS syntax issue. My reading of this thread is that it was started based on the complexity of dealing with CSS in the browser rather than dealing with the CSS syntax.
- grey-area 13y agoCSS also has serious issues with its design (not just syntax) - it's a pretty awful markup language, because it was created apparently without reference to hundreds of years of graphic design and text layout and missed out some essential typographic and design concepts. To pick a few examples, until recently you couldn't have grids, multiple columns of text (still pretty broken), embedded fonts, and the box model is unnecessarily complex, which led to loads of bugs in the browsers. That's easy to say in retrospect of course, and lots of the problems are now being fixed or worked around, but it's a pretty gnarly language, and many criticisms of it are not based only on ignorance but on substantial flaws in the original design. CSS is awful to work with, and is only slowly getting better.
- Bahamut 13y agoThe slowness is largely due to competing interests & implementations by those interests. I don't think blowing away CSS completely would be a good solution - just look at the skepticism by many over Google trying to implement Dart in Chrome, and whether it'd be successful in eliminating JavaScript.
- grey-area 13y agoI don't think blowing away CSS completely would be a good solution Sure, it's not all bad, it got off to a pretty flawed start, but has been steadily improving.
- Bahamut 13y agoIt does suck to work with, but it is workable if you put in the time investment to learn it, just like any language. Nothing that justifies flat out incorrect statements/dramatic behavior.
- ben336 13y agoNo LESS is a stylesheet language that compiles down to CSS. Javascript isn't involved at all, unless you use their script tool to run uncompiled LESS in the browser. That is only meant for prototyping though, in production it will be compiled down to CSS.
- minimaxir 13y agoNo it isn't. The majority of the Bootstrap framework is CSS. (there's an optional JavaScript component for advanced functionality)
- ptx 13y agoMaybe he's using Netscape 4, in which case CSS would also be JavaScript, more or less. http://www.netmechanic.com/news/vol4/css_no17.htm http://www.netmechanic.com/news/vol4/css_no17.htm
- crimsonalucard 13y agoErr Bootstrap isn't a complete solution.
- minimaxir 13y agoNeither is HTML+CSS. For a startup landing page layout, Bootstrap is more than enough. (see examples at http://www.blacktie.co http://www.blacktie.co ) If you want interactivity via AJAX/Angular, you'll need to include some sort of JavaScript of course, but that's outside the scope of the layout question.