Found 8895 Articles for Front End Technology

JavaScript Program to Count rotations required to sort given array in non-increasing order

AmitDiwan
Updated on 13-Mar-2023 16:24:04

95 Views

We will be writing a program to count the number of rotations required to sort an array in non-increasing order. The program will use a loop to traverse the array and keep track of the maximum element found so far. When a smaller element is found, we will increment the rotation count and update the maximum element. In the end, the rotation count will be returned as the result of the program. This program will help us efficiently sort the array and determine the number of rotations required to achieve a non-increasing order. Approach The approach to counting rotations required ... Read More

How to center the contents of an HTML table?

Asif Rahaman
Updated on 13-Mar-2023 11:25:39

2K+ Views

In HTML the tag displays the contents as a table. By default, the alignment of the contents within the HTML tables is toward the left side. In this tutorial, we will understand how to center the contents of the HTML table. Use Of The tag As the name suggests, the tag helps align the texts within any container. To center align the texts, we need to use the texts within the and the tags. However, this is not a recommended process. We should use this process only when we only have to design using HTML ... Read More

How to center a <div> using the Flexbox property of CSS?

Asif Rahaman
Updated on 13-Mar-2023 11:22:42

3K+ Views

We can center a in css using justify-content property and align-item property of flexbox. They are popular because they are responsive and easy to use. In this article, we shall learn how to center using the Flexbox properties. Use The align-items And The justify-content Property The most popular method to center the div using the flexbox is the combination of justify-content and align-items properties of flexbox. The justify-content property would center align the div horizontally. The align-items property center aligns the div vertically. If you want to center align only in one direction, i.e., either vertically ... Read More

How to center a <div> using CSS grid Property?

Asif Rahaman
Updated on 13-Mar-2023 11:15:45

18K+ Views

The CSS grid is one of the most widely used elements in CSS. This element is similar to flexbox. CSS grids are two-dimensional layout systems on the web. We can place the elements in rows, columns, or both with the help of a grid. In this article, we shall understand how to center a div using the CSS grid property only. We shall use the place-items and align-items properties to achieve the same. Use Place-items property Grid-container class sets the display property to the grid to create a grid container, and the place-items property is set to the center to ... Read More

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

375 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

Advertisements