HTML/CSS - How can I align something to the centre with things either side?
Go to solution
Solved by Jobgh,
Set these rules to the parent:
display: grid; grid-template-columns: 1fr 1fr 1fr;
Then, group your elements into three divs. Buttons on first, text on second, buttons on last.
Finally, set:
text-align: center;
On the center div, and set:
text-align: right;
on the last div.
-
Featured Topics
-
Topics
-
0
-
3
-
0
-
4
-
ColossusRev ·
Posted in New Builds and Planning2 -
Trembletop ·
Posted in Graphics Cards3 -
2
-
R41D ·
Posted in Troubleshooting0 -
0
-
Caroline ·
Posted in Storage Devices0
-
-
play_circle_filled
Latest From GameLinked:
Are you excited for Doom: The Dark Ages? - Gamers 2 Gamers
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now