Found 1564 Articles for CSS

How to disable resizable property of textarea using CSS?

Tapas Kumar Ghosh
Updated on 16-May-2023 09:33:13

655 Views

In CSS we can use the ‘resize’ property to resize the textarea box of a webpage. We can resize the height and width of the textarea box. In case if we set the resize value to none, the textarea box will not resize. In some situations, disabling the resizable functionality of a textbox area in HTML might be accessible if we wish to limit user interactions and control the layout of the input. The size of the text entry is important to the design and the layout of webpage or application is also required. In this article, we will create ... Read More

How to disable text selection highlighting using CSS?

Tapas Kumar Ghosh
Updated on 21-Jul-2023 14:17:44

6K+ Views

In CSS we can use select property to disable the text selection highlighting. But to disable that text, we have to apply some properties in CSS so that the text can’t be selected or highlighted. Let’s take an example to understand the difference between highlighting vs non-highlighting text. Tutorialspoint − The text is highlighted. Tutorialspoint − The text is not highlighted. Properties Used The following properties used in the example − user-select − This attribute defines whether the text element is selected by the user or not. This attribute is supported by the browser namely Chrome and ... Read More

Sorting Function in SASS

Rushi Javiya
Updated on 11-May-2023 13:58:32

146 Views

In this article, we will learn about the sorting function in Sass, but before moving forward, let’s have a basic idea about Sass; so sass is a powerful and popular preprocessor language for CSS that allows developers to write more efficient and maintainable stylesheets. One of the best advantages of Sass is the ability to use functions to streamline the development process. However, one function that Sass does not provide out of the box is a sorting function. Sorting is a common task in all programming languages and can be useful in many different contexts when working with stylesheets. Unfortunately, ... Read More

NeumorphismUI Form

Rushi Javiya
Updated on 11-May-2023 13:53:14

79 Views

NeumorphismUI is a design trend that has gained popularity recently, combining skeuomorphism with a modern twist. When applied to forms, NeumorphismUI is a design style worth considering. It can make the user interface feel more tangible and interactive, ultimately improving the overall usability of the form. In this article, we'll explore the different types of NeumorphismUI forms and provide examples and best practices for each. Example In this example, we created a login form to enhance the enhanced experience. First, we started by designing the form with a neumorphic style, which gives it a modern and elegant look. We ... Read More

Last-child and last-of-type selector in SASS

Rushi Javiya
Updated on 11-May-2023 13:50:11

3K+ Views

The SASS provides various features over the normal CSS to write easy and maintainable code, and advanced selectors are one of them. A SASS contains the last-child, and last-of-type selectors, which we will discuss in this tutorial. Last-child Selector in SASS The ‘last-child’ selector allows developers to select the last element inside the parent element. Also, it allows you to select the last HTML element regardless of the type of the element. If the last element contains the nested child elements, it also applies style to the nested element as they are a part of the last child element. Syntax ... Read More

How to set a Variable to equal nothing in SASS?

Tarun Singh
Updated on 10-May-2023 13:10:42

335 Views

SASS or Syntactically Awesome Style Sheets, is a very popular preprocessor scripting language among developers that are used to enhance the functionality of CSS. SASS allows the developers to use variables, nesting, mixins, and some other advanced features that are not available in CSS. One of the key features of using SASS is the feature of declaring variables, which are nothing but placeholders for the values that we can reuse throughout our web application stylesheet. Variables help save time and effort for the developers enabling them to update multiple values at once just by making the code more readable and ... Read More

How to rotate shape loader animation using CSS?

Tarun Singh
Updated on 10-May-2023 12:52:12

2K+ Views

In this article, we’ll see how to rotate shape loader animation using CSS. Loading animations of different shapes is an essential part of a web app as it helps the users stay engaged while they wait for a website to load. There are multiple animations that one can add to a web page or application, one popular type of loading animation is the rotating shape loader. This animation has good features in which a shape is spinning continuously until the web page is fully loaded. Moving ahead, we are going to use a different approach to rotate the shape loader ... Read More

How to design initial letter of text paragraph using CSS?

Tapas Kumar Ghosh
Updated on 10-May-2023 15:19:38

2K+ Views

We have seen in various chapters of many books guiding on how to design the first letter of word using CSS. In CSS we can use the ::first-letter pseudo-element to design the first initial letter of a text paragraph. This allows us to apply particular styles to the initial letter of the first line of a block-level element. For example, we may make the initial letter larger, a different font, or a different color from the rest of the text. Syntax p::first-letter{ property_name : value_name; } first-letter − The first letter is defined as the pseudo-element ... Read More

How to display a link using only CSS?

Tapas Kumar Ghosh
Updated on 10-May-2023 15:14:32

190 Views

To disable the link of any website, we use the properties of CSS like pointer-event set to none, and then the cursor can be set to default which will disable the active link and the users cannot access the links. Sometimes the link has to be disabled to bring some updates or security to the website. The government or organization is the best suited for this example, whenever they need any updation required in the backend of the website they simply disable the link. In this article, we will display how to display a link using only CSS. Syntax ... Read More

How to create animated banner links using HTML and CSS

Aman Gupta
Updated on 09-May-2023 16:58:35

4K+ Views

Overview We can create animated banners using the HTML and CSS, HTML provides the layout of the banner and CSS provides the styling of the banners with the animations. Sometimes in the banners which are made for advertisement purpose links are embedded to them, so to highlight the link to the user of the web page the developer makes the link animated so it can be visible throughout the web content and that should increase the interest of the users to click it. Syntax The syntax to create a link in the HTML is − Algorithm Step 1 − Create ... Read More

Advertisements