CSS

How to Prevent Text from Wrapping Using CSS

If you have a lot of text in a paragraph or span element, and you want to keep the text on one line using CSS, then the following code will help you to prevent text from wrapping...

CSS: 2 Ways to Hide/Disable Horizontal Scrollbar

Suppose, you have a textarea with variable height, but fixed width. Now, you want to hide horizontal scrollbar using CSS. The two methods discussed below would help you to disable...

How to change cursor on hover to hand using CSS

Are you looking for a way to change the mouse pointer on hover into a hand pointer? This guide will show a basic way and some browser-specific ways for doing this. Simple Way...

CSS: Combine Gradient and a Background Image on the Same Element

The following code snippet will explain a way to combine gradients and a background image on the same element using plain CSS3. Note: Use transparent image before applying the...

How to Center a div inside another div in CSS

Are you looking for a way to center a div inside another div using CSS? This guide will thoroughly discuss the ways to center a <div> element inside another <div>....

CSS: How to vertically align text next to an image?

Let’s discuss below the ways to align text next to an image vertically. Table of Contents Method 1 Method 2 Method 3 Method 4 Video Tutorial & Demo Method # 1 HTML...