+ 1
Help me please)
At one point I decided to make a circle on my website and write text in it. But the text went beyond the circle. How to fix it?
12 Respuestas
+ 3
It seems like you want to set the text to the center of the circle.
Just add below code to the `#circle`:-
display: flex;
justify-content: center;
align-items: center;
+ 3
Set z-index:0; to the circle and z-index:1; to the text element in css.
+ 3
div#circle {
background: lightblue;
border: solid 1px;
border-radius: 100%;
width: 100px;
height: 100px;
display:grid;
place-items:center;
}
p{
margin:auto;
text-align:center;
}
0
Ok, I'll try.
0
How can I write this into the rules?
0
This does not work(
0
show us your code
0
Here's the code. I decided to make a visual circle this way. Nothing but a circle and text
0
It helped, thanks!
0
By the way, if you write a lot of text, it starts to come out. OK. Here you can fix it yourself
0
It's not that hard to make. I have created my whole jacket website from Stretch. I am sharing the website you can visit it and if you any help let me know. Visit: https://themoviesjackets.com/category/marlboro-jacket/