Looking back, the recent Bootstrap vs Bulma post left me wondering why you really need either. Two years ago, I did a post on what CSS Grid is and I figured that you can consider this to be an continuation of that. Continue reading Styling a webform with CSS Grid
This is going to be a fairly quick post. I was reading some developer documentation recently and noticed that the blockquote element in HTML has an attribute for citing the source for that blockquote.
Recently, I was talking about how a random tweet got me thinking about CSS image carousels and at the end of that post, I mentioned that the second version of the image carousel would allow you to link to individual slides. I figured that it was time to show how to do that.
Have any questions, comments, etc? Feel free to drop a comment, below.
Recently, I was doom-scrolling twitter when I came across a tweet that claimed that you can build an image carousel using just two lines of CSS. I liked the tweet and then thought to myself “I can’t sleep, right now. Why not try it out?”
CSS Tip 💡
Create image Carousel using two lines of CSS. pic.twitter.com/PLIyTaXZkV
— Pratham (@Prathkum) February 10, 2022
It turned out that I needed a few more than two lines of CSS, but it was still somewhat simple. Continue reading Two ways to make a pure CSS image carousel
Making your forms look less “straight out of the box” is sometimes just as simple as adding a border-radius to things. In this quick post, I figured that I would show the power of it. Continue reading How to use border-radius to round the corners of inputs, buttons, and divs
I am slightly surprised that I haven’t done a post on this, yet. My intention with this blog post is to simply show how to layer text on-top of an image. Continue reading How to add text on-top of an image
Lazy loading is a method for optimizing a website by loading images (or iframes) on demand. If properly implemented, the browser should load the images that are at the top of the page first and wait to load the rest until the user starts to scroll down the page. This is something that is relatively easy to implement but more difficult to test. While writing the examples for this post, I opened the browser console, switched to the network tab, and watched the images load. If you want the effect to be more pronounced, you can throttle the speed of your network connection but it didn’t help to much in my case. Continue reading Three ways to load lazily
Last week, we talked about CSS sprites and a large benefit of it was that the user didn’t need to retrieve as many image files from the server. This week, we are going to look at how to not need to retrieve ANY image files from the server. The method is something called data URLs. I used this concept five years ago with my TNO encryption demo. Let’s take a look at a quick demo.
In the simple demo above, I base64 encoded a JPEG file and just included the full content of the file (using the
data:[<mime type>][;charset=<charset>][;base64],<encoded data> syntax). Let’s looks at one more example.
This one works the same basic way but instead of using a JPEG file, I’m using a PNG file.
So, why use this method? The big reason is to have one fewer asset to load into the page. You are still requiring the client to download the same amount of stuff but it is via one HTTP request instead of two. I have also seen people use this method to more easily include graphics in HTML email messages.
Easy enough, right? 🙂 Have a question, comment, etc? Feel free to leave a comment.
One of the goals for JWS.app was for it to pull in activity from a bunch of sources and update itself. That is the reason why I created the “superfeed”. Let’s start by looking at its current state.
Getting the content from the photo blog, the blog, dev, github, and the two tumblr blogs and interleaving the content was tricky enough. When it came to displaying the updates, I just used an unordered list in version 1. I couldn’t immediately think of an alternative. In previous weeks, we have leveraged Bulma. I figured that we could use it again.
This might be my favorite option, so far. This example uses Bulma‘s Cards. My goals were for long-form posts (like this) to be more prominent and to do something mildly similar to Microsoft’s Metro design language.
I am not completely sure if the Bulma Card solution is best option or not but I do think that there is a next step to this. Previously, we looked at the Notifications API and that got me thinking about incorporating push notifications. I might need to add some sort of Modal (to have something to link to), though.