Margin with four values
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'> <head> <title>margin</title> <style rel='stylesheet' type='text/css'>
div#wrapper { background: yellow; border: 1px solid #fff; margin: -1px; width: 122px; } div.margin { width: 100px; height: 100px; background: pink; border: 1px solid pink; } div#top-right-bottom-left { margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px; } div#top-right-bottom-left-1 { margin: 10px 10px 10px 10px; } </style> </head> <body> <div id='wrapper'> <div id='top-right-bottom-left' class='margin'></div> <div id='top-right-bottom-left-1' class='margin'></div> </div> </body> </html>
|
|
|
|
|
HTML code for linking to this page:
Related in same category :
-
-
-
-
-
-
|