Quizzes
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
basis
:
Content language: English
Русский
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?
basis
← Prev
1
Next →
Sign Up Now
or
Subscribe for future quizzes