@0abdulrahmanSubmitted over 1 year ago
Abdulrahman Muhammad
@0abdulrahmanAll comments
- @0abdulrahmanPosted over 1 year ago
The circles in the bg are visible, but for some reason frontendmentor doesn't show it in the screenshot although I took another one. Meh, doesn't matter.
0 - @DJSO4Submitted over 1 year ago
Hi!
I have a few questions:
- What is the way to always position a given container in the middle of the page?
- I couldn't find a solution for displaying on mobile devices. Are there any settings in CSS that are usually "universal"?
I hope I managed to do it at least a little bit. I did it myself, without the help of "ready codes"
@0abdulrahmanPosted over 1 year ago- To center an element in the page there's more than one method, common methods are:
- Using flexbox:
display: flex; justify-content: center; align-items: center;
- Using margin:
margin: 0 auto; transform: translate(-50%, -50%);
- You can customize the design on mobile devices using the @media queries by setting a max (or min) width to apply certain styles within this width. Try Googling "CSS Media Queries".
Marked as helpful1