Computer Science, asked by jaswanthRao3091, 1 year ago

How to style images with CSS?

Answers

Answered by purva2705
2

l don't know css style image

Answered by sougatap57
0

Answer:

We can style the image in CSS by using various properties like border, border-radius, width, box-shadow, and more.

Explanation:

The way I have designed the image is where we don't require such property like box-shadow.

Here is a code:-

<!DOCTYPE html>

<html>

   <head>

       <title>

           CSS style Image

       </title>

       <style>

           img{

               border:5px solid white;

               border-radius:50px;

           }

       </style>

   </head>

   <body bgcolor="yellow">

       <img src="images/chrysanthemum.png">

   </body>

</html>

The output of the code:-

The image will obtain a different shape other than rectangle. It will have the border of 5px and the color of the border will be white.

conclusion:- We can design the image depending on the requirement of the  page.  

Similar questions