Wednesday, November 9, 2022

[FIXED] How to create horizontal lines on the side with a circle between them

Issue

i want to draw like this with css and made it with different methods but it is not responsive and something went wrong can anyone help me to do it

i did it at last like this but also something went wrong


Solution

Is that what you want ? If yes.. there you go ^^

#container {
   display: flex;
   align-items: center;
}

.line {
  background-color: black;
  height: 2px;
  width: 50px;
}

#circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid black;
}
<div id="container">
  <div class="line"></div>
  <div id="circle"></div>
  <div class="line"></div>
</div>



Answered By - Alexis
Answer Checked By - Marie Seifert (PHPFixing Admin)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.