Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I've been looking online for some Postprocessors for dealing with Vendor Prefixes and these are the libraries I came across.
Autoprefixer
Prefixr, which will do it for you.
Prefix-free, which will also do it for you but client-side.
However what differentiates one of these postprocessors from the others and visa versa?
Well, autoprefixer is meant to be integrated into your asset pipeline. So, for example, if you are using Sass or LESS, you can attach autoprefixer to it. Then it's automatic. While using it, I never even have to think about prefixes.
If you're editing the final css file directly, autoprefixer may seem like more of a hassle, I suppose. But in that case, you might want to check out the benefits of Sass/LESS.
Prefix-free runs on the client side - so that will be easier for a static css file, but it may impact page load time (although, the css download itself may be smaller.)
I think Prefixr is a UI? I'm not as familiar, but in that case it's an app that does it for you. The others are "set it and forget it" solutions to the problem.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Css got pretty much features and has a fair amount of flexibility. Unlike other languages ive never heard of other options to expect the same result. Event js seams to be the only active laguage in html pages. Did i miss anything? Or are there acctually no other options?
There are not.
JSSS was an early competitor to CSS, but swiftly lost and nothing supports it today.
Technically, you could involve XSLT … but that would involve processes such as converting to XSL Formatting Objects and then to PDF rather than styling HTML per se.
Well, there are also CSS pre-processors like SASS, LESS and Stylus... that improves the syntax and complements CSS itself. That code from pre-processors is transpiled to CSS so any browser could execute it. But they aren't alternatives to CSS.
There are technologies like Jquery or other frameworks where you can just change the way you write CSS but there isn't a way in designing a page without CSS as all this uses it as a main framework for design.There are alternatives like Sass Scss but all this rely on css
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I've been wanting to make a website but I wanted to code it myself without using one of those website makers. Are there any ways of doing this? I would also like to publish it as well. Thanks.
1.Write your code and save it.
2.Purchase a domain and host it with ehost or something like that.
3.Upload your file. That's it.
[ehost provide hosting with free domain]
This is not technically an appropriate question for SO. However, you need to learn the basics of HTML. Start at W3 Schools. http://www.w3schools.com
You mentioned that you already know HTML. If you are just making static content, that will suffice. I strongly recommend learning CSS. While it is not technically necessary, it will make your life much easier. When you want to publish it, you will have to pay for a domain and a hosting service. Google Domains can help you with this.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
How does minifying codes come into place in terms of web designing?
I understand the importance of minifying in order to reduce load speed. I write my html and css codes with indentation. How I'm doing it right now is that on my local computer, I have my original codes. Then when I'm ready to upload it to a live site, I will minify it and copy/paste the code there.
So now I have 2 version of the website: original & minified.
Is this the correct way to do it, or should I write my code in the "minified" form? It'd be pretty much a mess and impossible to code if I wrote in the minified form.
Please tell me how you guys are doing it!
Write your code in a clear, maintainable way. So, keep indenting, etc.
Minify your code when you deploy it. You are doing it by running a tool yourself. Many people do it as part of their build/deploy process. So you might have one command that minifies all your assets and deploys them to your server.
But if you don't have a build/deploy tool right now, then the way you're doing it is probably the way to go. Put "learning about build tools and adopting one" on your to-do/self-improvement list. You'll be glad you did.
minifying is not a part of you web design process. you need to write your code nice and pretty. then use a tool to minify your css and javascript, probably as a part of your build process.
I´m using http://gulpjs.com/ and some of its packages. It can watch my readable css (or less) and pipes it each time I save automatically through some methods like minify or prefixing (automatically adds browser specific css for older browsers which don´t support css3)
maybe check this tutorial if you want to dig deeper http://www.sitepoint.com/introduction-gulp-js/
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
How do people go about developing gigantic .css file? Do they use some tools or they really code it line by line?
For example, here is one .css file that has 20K lines.
http://dkmstj1aljhw5.cloudfront.net/styles/dc3de668.app.css
The file you posted link to is probably generated from many smaller css files, and served as one big file, to reduce number of requests to server. Newer web frameworks usually provide some kind of a tool for managing assets.
Okay this is quite a broad question, but please see my answer below.
First of all typically very large CSS files can be part of a framework such as bootstrap for example.
On the other hand there are some CSS files that are long just by their nature. I have written a CSS file that has been 24000 lines before. This consisted of 8 separate files, all minimised into a single cached CSS file.
I hope this helps!
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
Hi I am trying to work out if it is worth using LESSCSS.
After much research and playing I see that it is not supported by older browsers and needs to be compiled before it is used. Is it even worth using? I know that it makes css easier write, but is it even worth it if what you are writing is not what will be on live when it is used?
Thanks
In fact, there are two ways of using LESSCSS :
Client-side : the .less file is sent to client and is executed by the browser, uses javascript and requires recent browser.
Server-side : the .less files are compiled to plain .css files, which are sent to the client.
The second one requires more configuration of the server, but requires nothing more than CSS compatibility from the client.
You can find more details on the LESSCSS main page, at the bottom of "usage" section : here.