I want to round the corners of this image. Here is what I have in my body.....
<body>
<h1 style="float:left; width:37%;"><font color="#99CC00"><font face="Verdana">MrEpicGaming4U</font></h1>
<div style="float:left; class="websiteart"><img src="website_art.png" height= "100" width= "300"/></div>
<h1 style="float:right;"><font color="#99CC00"><font face="Verdana">The Art of Gaming</font></h1>
</body>
How can I do this?
Thanks
You can use css border-radius
.websiteart img{
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
border-radius: 20px;
}
You can also use border-radius
with the "em" notation, which I like most because I find it easier. Example:
-moz-border-radius: 0.5em;
-webkit-border-radius: 0.5em;
-khtml-border-radius: 0.5em;
border-radius: 0.5em;
In this case, you will obtain a perfectly rounded corners.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.