I am just learning html and style sheets so I am not sure of how everything works. I am trying to create a style sheet with the following class:
body.standard_format {
background-color: #ffffff;
margin-left: 0;
margin-top: 0;
margin-height: 0;
margin-width: 0;
font-family: verdana, helvetica, sans-serif;
font-size: 10pt;
color: #000000;
}
For some reason when I call this class:
<body class="standard_format">
nothing happens. If I try and break them up:
body.standard_format {
background-color: #ffffff;
margin-left: 0;
margin-top: 0;
margin-height: 0;
margin-width: 0;}
body.text_font: {
font-family: verdana, helvetica, sans-serif;
font-size: 10pt;
color: #000000;
}
and call both in the body:
<body class="standard_format" class="text_font">
only the second format stays.
My questions are:
Can I not call two in one section?
Why won't the font and margins format work together?
body.standard_format {
background-color: #ffffff;
margin-left: 0;
margin-top: 0;
margin-height: 0;
margin-width: 0;
font-family: verdana, helvetica, sans-serif;
font-size: 10pt;
color: #000000;
}
For some reason when I call this class:
<body class="standard_format">
nothing happens. If I try and break them up:
body.standard_format {
background-color: #ffffff;
margin-left: 0;
margin-top: 0;
margin-height: 0;
margin-width: 0;}
body.text_font: {
font-family: verdana, helvetica, sans-serif;
font-size: 10pt;
color: #000000;
}
and call both in the body:
<body class="standard_format" class="text_font">
only the second format stays.
My questions are:
Can I not call two in one section?
Why won't the font and margins format work together?