Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by Devesh Chauhan
Page 2 of 5
Difference between -webkit-box-shadow & box-shadow in CSS
The CSS box-shadow property is used to add shadow effects around an element's frame. While most modern browsers support the standard box-shadow property, older webkit-based browsers required the -webkit-box-shadow vendor prefix. Syntax /* Standard syntax */ selector { box-shadow: h-offset v-offset blur spread color inset; } /* Webkit prefix syntax */ selector { -webkit-box-shadow: h-offset v-offset blur spread color inset; } Box-shadow Property The box-shadow property creates one or more shadow effects on elements. Each shadow is specified with X and Y offsets, blur radius, ...
Read MoreHow to specify double border using CSS?
The CSS border-style property allows us to create various border effects, including double borders. A double border creates two parallel lines around an element, providing a distinctive visual effect that can enhance your web design. Syntax selector { border-style: double; border-width: value; border-color: color; } Border Style Values ValueDescription noneNo border solidSingle solid line doubleTwo parallel solid lines dashedDashed line border dottedDotted line border groove3D grooved border ridge3D ridged border Example: Basic Double Border Here's how to create ...
Read MoreHow to set default value to align content in CSS ?
CSS align-content property is used to distribute space between or around items in a flexbox or grid container. The default (initial) value of this property is normal, which behaves differently depending on the layout context. Syntax selector { align-content: value; } Possible Values ValueDescription normalDefault value, behaves as stretch in flexbox startItems pack from the start of the container endItems pack from the end of the container centerItems pack in the center space-betweenEqual space between items space-aroundEqual space around items space-evenlyEqual space between and around items stretchItems stretch to ...
Read MoreWhy do we have External CSS and JS files
In this article we will learn about CSS and JS files, explore their functions, different ways of using them in HTML documents, and understand why external CSS and JS files are preferred over inline and internal approaches. CSS (Cascading Style Sheets) CSS stands for Cascading Style Sheets and is used to apply styles to websites and webpages. It makes webpages look more organized, presentable, and appealing to users. CSS handles visual aspects like background colors, font sizes, colors, layout dimensions, and much more. There are three ways of using CSS in HTML documents − Inline ...
Read MoreHow to make div elements display inline using CSS?
To make div elements display inline using CSS, you have several effective approaches. By default, div elements are block−level elements that take up the full width of their container and start on a new line. Converting them to inline elements allows multiple divs to appear on the same line. Syntax /* Method 1: Using display property */ div { display: inline; } /* Method 2: Using flexbox */ .container { display: flex; } /* Method 3: Using CSS Grid */ .container { display: ...
Read MoreProtected variable in Python
In programming the concept of protected variable is used to create an access control system. In this system, we establish a hierarchy or level of access control. This concept solidifies the basis of object-oriented programming. The technical meaning of a protected variable remains the same but the syntax and behaviour may vary between different programming languages. Python follows the conventional logic of accessing and manipulating the attributes and methods, but the representation and degree of enforcement of access control is a little different. Understanding Protected Variables in Python Protected variables in python manages the internal use of the attributes and ...
Read MorePython Program to Extract Strings between HTML Tags
HTML tags are used to design the skeleton of websites. We pass information and upload content in the form of strings enclosed within the tags. The strings between the HTML tags determines how the element will be displayed and interpreted by the browser. Therefore, the extraction of these strings plays a crucial role in data manipulation and processing. We can analyse and understand the structure of the HTML document. These strings reveal the hidden pattern and logic behind the construction of a webpage. In this article, we will be dealing with these strings. Our task is to extract the ...
Read MorePython Program to Extract String Till First Non-Alphanumeric Character
Python strings are sequence of characters that represent information or data. A normal string can contain various characters that are enclosed within single or double quotes but an Alphanumeric string only consist of digits and letters. Both alphanumeric and non-alphanumeric strings are used and applied in various scenarios including password protection, data processing and validation, formatting etc. Specific patterns can be identified and extracted. We can also provide different combinations using these types of strings. We will perform an operation based on these strings. Our task is to extract a string till first non-Alphanumeric character is encountered. Understanding the ...
Read MorePython program to extract N largest dictionaries keys
A python dictionary is a data structure that can be used for numerous operations making it a prolific programming tool. It stores data in the form of key-value pairs i.e., each data can be labelled with a unique key. Keys in dictionaries are identifiers that are associated with different values, these values can be accessed, modified and deleted. Based on the task, keys can be sorted and extracted in different orders. In this article, we will be discussing a similar concept of extracting N largest dictionaries keys. We will operate on these unique keys and extract the relevant data. ...
Read MorePython Program to Extract Mesh Matching Strings
Pattern recognition is an important programming concept. It allows us to retrieve specific data that satisfies a particular condition or match a particular sequence. This principle is helpful in various fields including language and image processing. String matching helps us to extract meaningful information from a large collection of data. In this article, we will be discussing a similar concept of extracting mesh matching strings from a given list of strings. Mesh matching focuses on the extraction “similar” strings of equal length, let’s discuss this problem in detail. Understanding the Problem The main concept is to extract similar ...
Read More