10/8/2021

5 Css Tricks That Will Instantly Beautify Your Weebly Site

22

AWS Amplify - the fastest, easiest way to develop mobile and web apps that scale.

Aww, what a cute blog post title, right?

Will

Weebly's prices are similar to competitors like Wix or Squarespace, but its free plan option is one of the most generous among free website builders and for just $5 a month you can get up. For advanced CSS animations examples, I recommend this collection which features beautiful web design trends and various animation tips and tricks. Style Broken Images. Broken images don’t look good on a website, but it can happen every now and then that an image is missing from the server and can’t be displayed.

5 Css Tricks That Will Instantly Beautify Your Weebly Sites

Prettier is an “opinionated code formatter.” I highly suggest using it. They have a document going deeper into the reasons, but their three marketing bullet points say it best:

  • You press save and code is formatted
  • No need to discuss style in code review
  • Saves you time and energy

But Prettier doesn’t do all languages. Notably HTML. It’s great at JSX, and I’ve gotten really used to enjoying that. But then when I switch to a Rails .erb template or a WordPress site where I’m editing a .php file, or even a plain ol’ .html file… no Prettier.

5 css tricks that will instantly beautify your weebly sites

They have a development branch for it, but I haven’t tried that yet. For now, I was compelled to try an HTML prettification tool that’s been out in the wild and through the ringer. The VS Code plugin Beautify does it and has 6.5 million installs, so that seemed like a good bet.

5 css tricks that will instantly beautify your weebly sites

5 Css Tricks That Will Instantly Beautify Your Weebly Site Free

By using this plugin, that means you can configure it, rather than use VS Code’s internal version of it which is apparently non-configurable.

The problem is…

The first time I tried this, I found that it made my Prettier stop working. That was unacceptable to me as I want Prettier to be the top priority formatter. I’m not sure if it was running both of them but placing Prettier last, if it was running Beautify on its own instead, or exactly what, but I couldn’t figure it out at the time.

The trick for me was to tell it to only care about certain file types!

In my settings.json:

Now I can have Prettier doing all the languages it does, and fall back to Beautify for the HTML stuff that Prettier doesn’t do yet. So far so good.