How-to articles, tricks, and solutions about COLOR

Colors in JavaScript Console

The console.log() method outputs a message to the web console. Read the tutorial and learn the simplest method of putting a single or multiple styles to it.

How and When to Use !important Rule in CSS

Learn how and why to use the !important rule in your CSS styles. See what cases are recommended and where is the right place to use it.

How to Add a Background-Color for the Text Width Instead of the Entire Element Width

On this page, you will find how to set a background-color for the text width instead of the width of the entire element. Choose the appropriate method and try examples.

How to Add a Fade out Text Effect with CSS

If you want to use beautiful effects for texts and make your Website more eye-catching, read our snippet, try examples and learn to create fade out text effect.

How to Add a Glass Background Effect to the Text

If you want to make your website eye-catching and creative read this snippet and learn to create a glass background effect for your text step by step.

How to Add Colors to Bootstrap Icons with CSS

Using icons is great for every website. If you face the difficulty of adding color to Bootstrap icons, add the CSS color property. Change also the font-size.

How to Build a Hex Color Generator in JavaScript

If you want to create your own color generator using JavaScript, then you’re welcome to our tutorial. In this snippet, we are going to build a hex color generator step by step.

How to Change Default Text Selection Color Using CSS

Use the CSS ::selection selector to change the default highlight color while selecting texts. Use only CSS and do cool tricks to have a better user experience. All with examples.

How to Change Link Colors with CSS

Learn about how to change hyperlink colors, inline and external methods with examples. See also how to give different styles to your anchor link and to change underline color with examples.

How to Change the Color of an <hr> Element

The HTML <hr> element is a block-level element and creates a horizontal line. In this snippet, find out how to style a horizontal line by adding a color to it.

How To Change the Color of an HTML5 Input Placeholder Using CSS

Learn How To Change the Color of an HTML5 Input Placeholder with CSS with W3docs tutorial. Try the code examples yourself. Fast solution.

How to Change the Color of PNG Image With CSS

Learn how you can change the color of PNG image with the filter CSS property values. See some examples and create your own code!

How to Change the Color of the First Word in a Text

In this tutorial, you can see how to change the color of the first word of a text. For that, use the CSS :before pseudo-element with the content property.

How to Convert RGB to Hex and Vice Versa

Read this tutorial and learn several methods that are used for converting the RGB value to Hexadecimal value easily with the help of JavaScript function.

How to Create a Drop Shadow for PNG Images

Shadows always give an image a fresh look and make it eye-catching. Learn How to Create a Drop Shadow for PNG image with W3docs online tutorial.

How to create a drop-down navigation menu with CSS

Learn how to create a drop-down navigation menu with <ul> tag. Create your code step by step and try examples!

How to Create a Multicolor Text with HTML and CSS

If you want to make your Web page more attractive using multicolor texts, read our snippet, find out 3 ways of creating ones and see examples.

How to Create a Shining Text Animation Effect

If you want to make your Website attractive and interesting for the visitors, read our snippet and learn to create a shining text animation effect.

How to Create an Anaglyphic Text Effect with CSS

If you want to add some 3D effects to your text, anaglyphic text effect is a great solution. Read this snippet, try our examples and create one for yourself.

How to Create an Animated Filled Text with CSS

If you are looking for ways for making your website more imaginative, read this snippet and learn to create an animated filled text due to our examples.

How to Create Drop Caps for the Text

If you want to give an original style to your Website, you can read this snippet and create a drop cap style for your texts via CSS first-letter pseudo element.

How to Create Thumbnail Images

If your Website contains lots of images and downloads slowly, read our snippet and learn to create thumbnail images, which will help you to solve this problem.

How to Remove Style Added with the .css() function Using jQuery

Read this tutorial and learn several ways of removing style added with the .css() function with the help of jQuery. Choose the best method for your case.

How to Set Background Color with HTML and CSS

Learn how to set a background color in general, how to have gradient and changing background colors with examples.

How to Use and Style Icons with Pure CSS: An Ultimate Guide

Style Font Awesome icon color, size, shadow, create buttons and lists, animate, rotate and position icons. All in one place with detailed examples.

1 2