Which snippet of css is commonly used to center a website horizontally?
Answers
Thanks for asking the question!
Which snippet of css is commonly used to center a website horizontally?
1. margin :auto 0;
2.margin: 0 auto;
3.margin: center;
4.site-align: center;
ANSWER::
1. margin :auto 0; is the answer.
Extra Information - CSS is used for centering text or images . There are more kinds of centering :-
1.Centering lines of text
2.Centering a block of text or an image
3.Centering a block or an image vertically
Hope it helps!
Margin: auto 0 snippet of CSS is commonly used to center a website horizontally.
Explanation:
- Auto is the keyword which basically tells browser to set the left and the right margin by some margin.
- margin: auto 0 tells browser to leave the right and left margin equally i.e. both the left and right margin would be set to zero “0” so that the alignment would be in the center. We can customize the margin according to our needs.
Learn more about snippet
A programmer writes a code snippet in which set of the three lines occurs 10 times in different pathway program what program concept should be used to shorten the code length
https://brainly.in/question/5524607
Write a program snippet to print "hello world " on the screen.which type of method does it use
https://brainly.in/question/4588841