http://fishcaro.crosswinds.net/day_44_css_tutorial.htm
border-color
property?
<HEAD>
<STYLE TYPE="text/css">
P#alert {font-size: 200%; color: "green"}
</STYLE>
</HEAD>
<BODY>
<P ID="alert">First paragraph!</P>
<P>Second paragraph!</P>
<P ID = "alert">Third paragraph</P>
<CENTER ID="alert">centered element</CENTER>
</BODY>
<HEAD>
<STYLE TYPE="text/css">
#alert {font-size: 200%; color: "green"}
</STYLE>
</HEAD>
<BODY>
<P ID="alert">First paragraph!</P>
<P>Second paragraph!</P>
<P ID = "alert">Third paragraph</P>
<CENTER ID="alert">centered element</CENTER>
</BODY>
<head>
<style type="text/css">
hr {color: sienna}
p {margin-left: 20px}
body {background-image: url("images/back40.gif")}
</style>
</head>
In particular, WHAT will be displayed on the web page? WHY
does this happen?
<head>
<style type="text/css">
<!--
hr {color: sienna}
p {margin-left: 20px}
body {background-image: url("images/back40.gif")}
-->
</style>
</head>
In particular, will any undesired material be displayed on the web page?
HOW has the problem been fixed?
<P STYLE="color: green; margin-left: 2 inches">
<P STYLE=color: green; margin-left: 2in>
<P STYLE="color: green; margin-left: 2in">
<P STYLE="color: green; margin left: 2in">
<P STYLE="color: green; margin: 2in">
<P STYLE="color: green; margin: 1in">
<P STYLE="color: green; margin: 0.5in">
<P STYLE="color: green; margin: 10px">
<P STYLE="color: green; margin-right: 2in">
<P STYLE="color: green; margin-top: 2in">
<P STYLE="color: green; margin-bottom: 2in">
<P STYLE="color: green; margin top: 2in">
background-position: 20% 80%
background-position: 20% 80%
background-position: 20 80
What do you suppose that the units of the 20 and 80 are, in
the second case?
background-position: 1in 2in
background-position: 1cm 2cm
background-position: 1mm 2mm
background-position: 10em 20em
background-position: 10ex 20ex
background-position: 10pt 20pt
background-position: 10pc 20pc
background-position: 10px 20px
Discuss each of these units: What do they stand for? What is
their description? (The "CSS Units" Reference section may be
helpful here.)background-position: 20 80
,
what unit gets used?background-position: 1in 2in
background-position: 20% 60%
border-style: solid dotted dashed double
border-style: solid dashed
border-style: solid dotted dashed
border-color: red green blue yellow
<LI>
)?<LI>
) in an unordered list.
Then try applying it to the <UL>
tag. What is the
difference in applying it in these two places?padding: 2cm 3cm"
) what does the first number (2cm)
specify? What does the second number (3cm) specify?
<head>
<style type="text/css">
H1 {background-color: red; padding: 1cm 2cm}
</style>
</head>
<body>
<H1>This is a heading! This is a heading!</H1>
</body>
Then, replace "padding" with margin and see what changes.