It’s easy to add borders to a table but making the table rounded is a bit trickier. Wood-made rounded tables are very common but it’s rare when it comes to making them with HTML & CSS. I used the “border-radius” property to make the rounded corners but it did not work. So I took a deep dive and come up with a couple of solutions to make a table rounded with CSS (not wood). In this post, I will show you a couple of ways to make rounded tables with CSS. Also, I will show you different types of rounded […]
Read More →You can rotate text, images, and other HTML elements using the CSS transition property. The transition has a “rotate” function that can make rotation an element clockwise or anticlockwise. In this post, I will try to make you understand the CSS rotate function in depth. And will give you some real examples. So you can take these ideas to implement on your project without much spending time on it. Let’s start. Rotate a text using CSS In order to rotate a text, your first instinct should be to give it a class or ID so you can target it easily […]
Read More →There are a couple of ways you can align text to the bottom of a div using CSS. In this post, I will show you a couple of ways to do it. CSS for aligning text to the bottom The first and easiest way is using flexbox. Only two lines of CSS can make it happen. I have a CSS class of container for the div and that’s why I used the selector above. See my HTML markup below. Example 2: Using CSS position In this example, I will use the same HTML markup. And align the text to the […]
Read More →There are two main ways you can position text over an image. Such as: (1) Placing the text over the image using the CSS position property, (2) Creating a background image for the text. In this post, I will show you both ways to place the text over an image. Also, I will answer some of the related questions that you need to know. Let’s get started. How to place text with an image using the CSS position property? To demonstrate the purpose, I have the following HTML. Using the above HTML, my image and text look like the screenshot […]
Read More →In this post, I will show you a couple of examples to create space between flex items. Also, I will show you how to offset the space on mobile devices. Let’s get started. How to create space between flexbox items? To create space between flexbox items, you can use flex-basis which is very similar to the width property. As you see in the above screenshot, I have two items in the flexbox container. Before I write or explain any CSS, let’s see the HTML markup for the above layout. To create space between the items, I have flex-basis of 48% […]
Read More →In this post, I will show how you can align an image on the right side of a div using CSS. You will also learn to align the image on the top-right, middle-right & bottom-right corners. Let’s get started. How to align an image on the right side? When we say about the right-aligned image, we generally mean to place it on the right-hand side and want the image to consume the full available height. But there are some cases, in which you may also need to arrange the image on the top, middle & bottom right. This is what […]
Read More →To reverse columns on mobile or any other screens, you can use flexbox & its order property. If this does not make sense, I will show you now. But when actually do you need to reverse columns? I am happy to ask because this is exactly what I will show you now. Let’s imagine you have the following layout on a large device. As you see in the above screenshot, I have two rows. Each row contains two columns. Each of the right columns contains images. You will see this kind of layout a lot. Even you may have built […]
Read More →There are hundreds of ways to create a preloader for your website. But in this post, I will show you how to create a gorgeous preload spinner only using HTML, CSS & a few lines of JavaScript. However, you can also convert/implement this preloader on a WordPress website. First, let’s see the preloader that we are going to build. In the live preview/example, the preloader loads for 3 seconds to show you. But on a real website, we want the preloader to disappear after the page finishes loading. And this time is not fixed or static. This DOM loading time […]
Read More →The background slider is very useful when you want to create a hero section on your web page. You can create a slider with background images in many different ways. Such as using slider plugins, jQuery libraries, frameworks, etc. However, in this post, I will show you how to create a background slider only using HTML, CSS & JavaScript. To create this slider, I did not use any dependencies. So you do not need any plugins, JavaScript libraries, or any help from 3rd party sources. See the live preview of the slider in the link below. End of this post, […]
Read More →The <hr> is an HTML tag that stands for “Horizontal Rule.” To change the hr color, you need to write some CSS. By default, it gets style from the browser. In this post, I will show you how to change <hr> tag color, how to add a gradient border to it, and how to increase its thickness. Let’s get started. How to style the <hr> tag using CSS? There are various ways you can make a custom style for this <hr> tag. See a couple of them below. Change the color of the hr tag Lorem ipsum dolor sit amet […]
Read More →