HTML & CSS
How to set ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
How to set a
5px width indentation
outside the element
using CSS?
padding:5px;
margin:5px;
spacing:5px;
outer-spacing:5px;
insets:5px;
Explanation
Click here for more information!
CSS Margins
indentation
margin
html
css
outside
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
Related Content
Specify the option in which the indentation parameters are set correctly.
Which CSS property sets the outer left indentation of the element?
Which CSS should be added to allow the link to appear on the top: <a href="#" title="Test" style="margin-top:50px;">Test</a>
With which property can you control the amount of indentation of the first line of a block of text?
There is HTML with a nested stylesheet: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Margin test</title> <style type="text/css"> #div1 { position: absolute; width: 200px; height: 100px; border: none; padding: 0; background: green; } #div2 { margin-top: 20%; border: none; padding: 0; background: red; color: red; } </style> </head> <body> <div id="div1"> <div id="div2">*</div> </div> </body> </html> What will be the margin-top value for the block with identifier div2 calculated in pixels?
H
TML & CSS
Quiz
Login to learn HTML & CSS
or
Read more about
HTML & CSS Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Keep exploring
HTML & CSS quizzes
How to make a shadow for text in gray?
Which of the following is true about the pseudo-class :visited?
What is the difference between pseudo-elements :after and ::after?
What is the font-variant property for?
Which color will word "text" has? <style> p{ color: green !important; } #p{ color: blue; } </style> <p id="p" style="color: red">text</>
How to change the color of a link to blue when the cursor moves over it?
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment