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
-
0
-
0
-
bleedpurple ·
Posted in Storage Devices1 -
geoffery ·
Posted in Troubleshooting1 -
IPQ ·
Posted in Troubleshooting1 -
Joey__ ·
Posted in Troubleshooting4 -
83y ·
Posted in Troubleshooting0 -
JordanH015 ·
Posted in Troubleshooting8 -
2
-
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