Reputation: 19
I need do something like that responsive with material ui and grid but i don't know how
Upvotes: 0
Views: 8857
Reputation: 3476
Solution by Image - Using Grid
I wrote in the code how to do it like you ask for.
By using grid, (there is a default grid columns).
And if you want to learn more about grid you can play some nice game: https://cssgridgarden.com
body {
background-color: #000;
}
.block {
height: 38px;
width: 391px;
display: grid;
grid-template-columns: 1fr 20px 1fr;
grid-template-rows: 1fr;
background-color: rgb(255, 255, 255);
}
hr {
margin: auto 20px;
border: 1.5px solid rgb(150, 150, 150);
}
.text {
margin: auto 0;
font-size: 22px;
color: rgb(175, 175, 175);
}
<div class="block">
<hr />
<div class="text">or</div>
<hr />
</div>
Upvotes: 1
Reputation: 2644
That is not React, that is HTML and or CSS. In HTML you can use
<hr />
With CSS you can use borders.
Upvotes: 2