Found 8894 Articles for Front End Technology

How can I vertically center a div element for all browsers using CSS?

AmitDiwan
Updated on 21-Nov-2023 21:37:07

831 Views

To vertically center a div element for all browsers using CSS, use the Flexbox. CSS3 provides another layout mode Flexible Box, commonly called as Flexbox. Using this mode, you can easily create layouts for complex applications and web pages. Unlike floats, Flexbox layout gives complete control over the direction, alignment, order, size of the boxes. The tag is a container for elements in HTML. We can place any type of content inside the div. The elements are first added and then CSS is used to style them. We can now only center the div vertically, but it can be ... Read More

How to remove the space between inline-block elements?

AmitDiwan
Updated on 17-Oct-2022 09:46:24

589 Views

We can easily remove the space between inline-block elements. Before moving further, let us first create an HTML document and add inline-block elements with space −Example DOCTYPE html> Inline block elements li { display: inline-block; width: 150px; font-size: 18px; } li:nth-child(1) { ... Read More

How to remove the space between inline/inline-block elements in HTML?

AmitDiwan
Updated on 16-Oct-2022 16:52:20

1K+ Views

We can easily remove the space between inline-block elements. Before moving further, let us first create an HTML document and add inline-block elements with space. Inline-block elements with space We will set the style for inline block element using the display property with value inline-block − nav a { display: inline-block; background: blue; color: white; text-decoration: none; font-size: 35px; } We have set the above style for the below given element − Tutorials point ... Read More

How to avoid jQuery function conflict with any other JavaScript library

Naveen Singh
Updated on 12-Oct-2022 11:47:03

827 Views

In this tutorial, we will learn how to avoid jQuery function conflict with any other JavaScript library. For the jQuery function, the $ symbol is simply an identifier. A $ followed by a selector indicates that it is a jQuery selector. It is given a shorter identification as $ to save time while writing longer syntax. It includes all of the functions needed by a jQuery object, such as animation(), show(), hide(), show(), CSS, and many others. Furthermore, $ is superior in terms of memory to jQuery because $ takes a byte while jQuery uses 6 bytes for the same ... Read More

How to display the file format of links using CSS?

Riya Kumari
Updated on 04-Apr-2023 10:40:38

285 Views

While browsing through a web page, you come across various documents which can be downloaded. Sometimes, you need to download a document but in different file format. However, you may have a problem in finding the document of your desired file format because there are various links each containing different file formats. It can be .docx, .png, .txt, .pdf etc.; Generally, file formats are not specified along with the links. So, we cannot know the type of file format just by looking the links. To solve the problem, you need to display the file format of the downloading links. In ... Read More

Voca: The Ultimate Javascript library for String Manipulation

Naveen Singh
Updated on 11-Oct-2022 14:24:39

360 Views

Voca is a JavaScript library that is used for manipulating strings. In this tutorial, we will take multiple examples to show how you can use the different functions available in Voca. Features of Voca Before we see all the examples, let's highlight some features that Voca brings to the table − It provides a multitude of functions that can be used to manipulate, query, escape, format strings. It also provides a detailed and searchable documentation. It supports a wide range of environments like Node, js, Safari 7+, Chrome, Firefox etc. It doesn't require any dependencies How to Install ... Read More

Logging HTTP Requests and Errors using Morgan.js

Naveen Singh
Updated on 11-Oct-2022 14:18:24

2K+ Views

Morgan is a middleware that is available for Node.js which is used when we want to log HTTP requests. It is mainly used in Express projects. Morgan helps us simplify the logging work of HTTP requests that come and sent from an application in a single statement. In normal situations, developers often write all the logging code by hand and then end up logging what to store, how to save, and where everything is saved. It helps in gathering logs from your server and also prepares them for reading. It also has many predetermined defaults built-in to help the developers. ... Read More

TaffyDB – A JavaScript Database for Your Browser

Naveen Singh
Updated on 15-Jun-2023 14:48:55

252 Views

TaffyDB is a lightweight and powerful in-memory database that can be used in both browser and server-side applications. It is open-source and free to use. In this tutorial, we will take a couple of examples to show how you can use TaffyDB to store some data, execute some queries on the data, and also perform important operations on the data. Let's Start with a Simple Example Let's start with a very basic example in which we will create some data and then try to print that data on the browser. The first step for us is to have TaffyDB. For ... Read More

Working with HTML5 Canvas Elements using Easel.js

Naveen Singh
Updated on 15-Jun-2023 15:16:14

184 Views

The popularity of HTML5 Canvas elements is well known, as they allow web developers to create animations, full-fledged applications, interactive charts as well. But sadly, it is very hard for someone to understand canvas, especially if he/she has come from the Flash animation background. In this tutorial, we will explore the Easel.js library, which allows us to work with HTML5 Canvas elements. The syntax of Easel.js is similar to ActionScript and it even has features like Display List, Stage, Graphics which ultimately makes the use of canvas easier for the Flash developers. Now that we have a little idea about ... Read More

Validating a Form with Parsley.js

Naveen Singh
Updated on 15-Jun-2023 15:07:51

1K+ Views

In this tutorial, we will show how you can use Parsley.js, which is a JavaScript library that is mainly used to validate forms. Parsley helps in validating the forms in a very subtle and easy manner, and it is one of the widely used form validation libraries out there. Features of Parsley.js There are plenty of reasons why Parsley is a good choice for validating your JavaScript forms. Some of them are mentioned below. Intuitive DOM API − The DOM API allows you to use simple English inside your HTML tags, and Parsley will do the rest. There's no ... Read More

Advertisements