Found 10710 Articles for Web Development

How to center a table with CSS?

Asif Rahaman
Updated on 13-Mar-2023 11:08:17

191 Views

The tag is used to create the traditional component called tables in HTML. For designing web pages, it is essential to understand how to improve the overall visualization of the design. Aligning the table in the center is one such important aspect. This tutorial will teach us how to center the table with CSS. Use The margin-left and margin-right Properties This is a popular method to center align the table element in HTML and CSS. CSS's margin-left and margin-right properties are used to set an element's left and right margins, respectively. The margins create space outside the element's border, ... Read More

How to center a div within another div?

Asif Rahaman
Updated on 26-Jun-2024 13:38:06

6K+ Views

To center a div is one of the most important aspects of front-end development. In this article, we will center a div inside another div using HTML and CSS. We will have a parent div which shall have the child div. Our task would be to place the child div at the center of the parent div. Different ways to Center a Child div There are mltiple ways to center a child div, here we will show each approach with complete code. CSS transform and position Property CSS Grid ... Read More

How to Build a Card component using Tailwind CSS?

Asif Rahaman
Updated on 13-Mar-2023 10:53:44

771 Views

The card component in Tailwind CSS is an important concept in web page design used especially in e-commerce websites, blogging websites, etc. .Tailwind CSS is famous for building attractive websites. This article will explain how to build card components using Tailwind CSS. How To Add single Card Component In Tailwind CSS Tailwind CSS offers us a very convenient way to add card components. The card components can also hold other sub-components like video, audio, images, etc. Also, we can easily customize the overall design using the properties available. It is also possible to add animations and hover effects to ... Read More

How to Build a Bounce Ball with HTML, CSS, and JavaScript?

Asif Rahaman
Updated on 13-Mar-2023 10:40:10

2K+ Views

While designing webpages using plain HTML, CSS, and JavaScipt, programmers often prefer developing advanced CSS designs to make the website attractive. Creating animations using keyframes and other techniques is one of the most popular techniques nowadays. However, we can also use the JavaScript code to create animations such as the bouncing ball effect. This method gives us more control over the animations. This article will first explain how to build a bouncing ball using HTML and CSS. We will also learn how to write JavaScript code to achieve similar animations. Create Bounce Ball Using Keyframes It is very difficult to ... Read More

How to bind an animation to a division element using CSS?

Asif Rahaman
Updated on 13-Mar-2023 10:32:24

376 Views

Division Element as know as is normally used for grouping the HTML element and then by using CSS we style them. An animation is a graphical element with visual effects to make it much more attractive. In HTML and CSS, we commonly name the element as . This article will explain how CSS binds animations to the division elements. Use The keyframes Method To Define The Animation The keyframe method is the most commonly used method to create animation effects in CSS. Example .container { ... Read More

How to Become a Full-Stack Web Developer in 2023?

Asif Rahaman
Updated on 13-Mar-2023 10:27:27

277 Views

Becoming a full-stack developer is the dream of many engineering students. Full stack development means building a web 2.0+ application with dynamic web pages consisting of databases, videos, images, etc. This article will discuss how to become a full-stack web developer in 2023. Learn The Basics Of Web development The first and foremost important step to becoming a full-stack developer is to learn a few basic languages which are popularly used to build web applications. HTML − This is a markup language used to design the skeleton of the web application. Among several versions available, you should consider ... Read More

How to avoid a new line with a tag?

Asif Rahaman
Updated on 13-Mar-2023 10:25:33

3K+ Views

While using a tag, the browser often places the items within the container in the next line. For example, programmers need to place the headers in a single line to create the navigation component. We can use the inline, inline-block, flex-box properties, etc., to avoid new lines with the tag. This article will explain how to avoid a new line with a tag by following approaches like inline property, flex-box property, etc. Use inline Property One popular method to avoid new lines with tags is to use the inline property. This property forces the new lines to stay the same ... Read More

Get the relative timestamp difference between dates in JavaScript

Rushi Javiya
Updated on 10-Mar-2023 16:53:36

4K+ Views

Have you ever seen notifications on any website showing the time stamp? It shows something like “12 minutes ago”, “2 days ago”, “10 hours ago”, etc. It is related to the timestamp difference between two dates or times. Also, some apps show that this device's last login was 22 hours ago. So, there are many uses to get the timestamp difference between two dates. In this tutorial, we will learn different approaches to get the relative timestamp difference between two dates. Use the getTime() method with the date and create a custom algorithm In JavaScript, we can ... Read More

How to check input file is empty or not using JavaScript/jQuery?

Rushi Javiya
Updated on 10-Mar-2023 16:52:40

7K+ Views

In JavaScript, while working with the form elements, we need to validate the input fields and form elements when a user enters the value. In this tutorial, we will work with the file input. We will also learn to validate the file input. Sometimes, we may be required to check if the file is selected in the input field, then only enable the submit button; otherwise, disable the submit button. So, it will not allow users to submit the form or file without selecting it. Validate the file input using JavaScript In JavaScript, we can access the file input ... Read More

How to check if the clicked element is a div or not in JavaScript?

Rushi Javiya
Updated on 10-Mar-2023 16:51:11

8K+ Views

Have you ever worked with the modal or seen it on any website? When you click outside the modal, it closes the modal. We must detect whether users have clicked on or outside the modal element in such cases. If users click outside the modal element, we need to close the modal element. In this tutorial, we will learn different ways to detect the click on the div element. Use the onClick attribute to check if the clicked element is a div In HTML, we can add the onClick attribute to any HTML element and assign it the ... Read More

Advertisements