adc

clicks

text around a cricle using html and css

 On the other hand, bending and setting text on a circle without using Photoshop ... but setting text on web type using HTML and CSS might be a challenge. ... tried the simple and reversed arc, let's put some text around a circle.

 

 
HTML
Before we start writing code first, we need to create a primary structure of the HTML document, so that the browser can understand and start working. The basic HTML structure looks like the following.
After writing the primary structure of the HTML document, you will also write the tags and content you need. After that, you can see the output in your browser. We know that HTML Sudu Mae is used for exposing content in a basic format. To complete our content we need to use CSS, which is an HTML insert and it creates an engaging user interface.


<!DOCTYPE html>

<html>

<head>

               <title>text around a circle </title>

               <link rel="stylesheet" type="text/css" href="style.css">

</head>

<body>

               <div class="container">

                              <div class="circle"></div>

                              <h1>Text Around A Circle</h1>

                              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod

                              tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,

                              quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo

                              consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse

                              cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non

                              proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

               </div>

</body>

</html>


CSS


Now, we have time to improve the HTML content, for that, we need to add CSS to the HTML file. CSS can be added to HTML documents in a total of three ways, here we are using outside CSS design using CSS will arrive here after typing and see the output in your browser.


body{

               margin: 0;

               padding: 0;

               font-family: sans-serif;

               background: url(bg.jpg);

               background-size: cover;

}

 .container{

               position: absolute;

               top: 50%;

               left: 50%;

               transform: translate(-50%, -50%);

               width: 600px;

               padding: 30px;

               background: #fff;

               box-sizing: border-box;

               border-radius: 10px;

               box-shadow: 0 15px 50px rgba(0,0,0,0.2);

}

 .circle{

               width: 200px;

               height: 200px;

               background: url(fg.jpg);

               background-size: cover;

               border-radius: 50%;

               float: left;

               shape-outside: circle();

               margin: 45px 25px 25px 0;

 }

p{

               margin: 0;

               padding: 0;

               text-align: justify;

               font-size: 19px;

}


Source Code


Watch Vieos

 Youtube Channel

 

text around a cricle using html and css text around a cricle using html and css Reviewed by easycoding on August 21, 2020 Rating: 5

No comments:

Powered by Blogger.