How to Create CSS Image Sprites

How to Create CSS Image Sprites

In this article, you will learn How to Create CSS Image Sprites. Example:- <html> <head> <title>CSS Image Sprites</title> <style> #navlist { position: relative; } #navlist li { margin: 0; padding: 0; list-style: none; position: absolute; top: 0; } #navlist li, #navlist a { height: 44px; display: block; } #home { left: 0px; width: 46px; background: url('home.png') 0 0; […]
Read Full Article
How to Create Rounded Corners using CSS

How to Create Rounded Corners using CSS

In this article, you will learn How to Create Rounded Corners using CSS. You can also make a circle shape with this property. Example: <html> <head> <title>Rounded corners</title> <style> .corners1 { border-radius: 50px / 15px; background: #73AD21; padding: 20px; width: 200px; height: 150px; } .corners2 { border-radius: 15px 50px 15px 50px; background: #73AD21; padding: 20px; […]
Read Full Article
How to Create Image Border using CSS

How to Create Image Border using CSS

In this article, we will explain How to Create Image Border using CSS.because sometimes we need a border with an image. Example:- <html> <head> <title>Image Border using CSS</title> <style> #borderimg { border: 10px solid transparent; padding: 15px; border-image: url(border.png) 30 round; } </style> </head> <body> <h1>border-image </h1> <p>Here, the middle sections of the image are repeated to create the […]
Read Full Article