<head> <link rel="stylesheet" type="text/css" href="mtitek.style.3.css" /> </head>The file "mtitek.style.3.css" may contain some declarations like the following:
body { margin: 0px 5px 0px 5px; padding: 0px 5px 0px 5px; font-family: Verdana, Arial, sans-serif; font-size: 14px; font-weight: normal; }
<head> <style type="text/css"> #container a:link, #container a:visited { color: #607080; text-decoration: underline; } </style> </head>
p { padding: 0px; }Refers to the "p" elements:
<p>CONTENT</p>
p.class1 { padding: 0px; }Refers to the "p" elements whose value of the "class" attribute is "class1":
<p class="class1">CONTENT</p>
.class2 { padding: 0px; }Refers to all elements whose value of the "class" attribute is "class2":
<p class="class2">CONTENT</p> <h class="class2">CONTENT</h>
#id1 { padding: 0px; }Refers to all elements whose value of the "id" attribute is "id1":
<p id="id1">CONTENT</p>
* { padding: 0px; }Refers to all elements:
<p>CONTENT</p> <h1>CONTENT</h1>
+--------------------------------------+ | | | +-------+ | | |CONTENT| | | +-------+ | | | +--------------------------------------+ <------>.<-----------> margin | padding | |-> border
#paddingEx1 { padding-top: 0px; padding-right: auto; padding-bottom: 0px; padding-left: auto; }
<div id="paddingEx1">CONTENT</div>You can use padding shortcut if you want to define values for all sides; its effect is determined by the number of values provided.
#paddingEx2 { padding: 0px; }
#paddingEx3 { padding: 0px auto; }
#paddingEx4 { padding: 0px auto 0px; }
#paddingEx5 { padding: 0px auto 0px auto; }
#borderWidthEx1 { border-top-width: 0px; border-right-width: auto; border-bottom-width: 0px; border-left-width: auto; }You can use border-width shortcut if you want to define values for all sides; its effect is determined by the number of values provided (see padding shortcut).
#borderWidthEx2 { border-width: 0px auto 0px auto; }
#borderStyleEx1 { border-top-style: solid; border-right-style: dashed; border-bottom-style: double; border-left-style: inset; }You can use border-style shortcut if you want to define values for all sides; its effect is determined by the number of values provided (see padding shortcut).
#borderStyleEx2 { border-style: solid dashed double inset; }
#borderColorEx1 { border-top-color: #ff0000; border-right-color: #ff0000; border-bottom-color: #ff0000; border-left-color: #ff0000; }You can use border-color shortcut if you want to define values for all sides; its effect is determined by the number of values provided (see padding shortcut).
#borderColorEx2 { border-color: #ff0000 #ff0000 #ff0000 #ff0000; }
#borderEx1 { border-width: 0px; border-style: solid; border-color: #ff0000; }The shortcut has the following syntax: border: <border-width> <border-style> <border-color>;
#borderEx2 { border: 0px solid #ff0000; }
#marginEx1 { margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; }You can use margin shortcut if you want to define values for all sides; its effect is determined by the number of values provided (see padding shortcut).
#marginEx2 { margin: 0px auto 0px auto; }