This will have a solid border. |
And you will get a long, solid border
[This will have a solid border. |
Let’s use the width property we learned earlier in this section
This will have a solid border.
Div>
And now we have a much better fit!
This will have a solid border.
The “double” border style works the same way:
This will have a double
border.
You get a nice little double border:
| This will have a double border.
.Border-Width
you decide how thin or thick your border will be. The possible values
sorder-width can take are number of pixels, thin, medium and thick. If
e border-width to “thin”, you will get a thin border:15.14
15.13.4, Margin-Bottom
Same as above, but defines the bottom margin. The default is 0.
15.14, PADDING
15.141, Padding-Left
“The padding properties are much like the “cellpadding” property of a table,
‘except these let you define the padding for the left, right, top, and bottom
individually rather than all at once, The possible values that it can take are
“number of pixels, percentage value and auto. Here is an example of the
padding-left property :
This has a left padding
of 50 pixels.
will get the padding from the left inside the border:
Computer Application - U1
g property lets you decide the amount of the space between
of text. The default is normal, but you can use number of
ave a little fun as shown below:Cascaaty
And you would get the following:
Try it a4
This has a line over the top.
lines
This is also used as a method for taking the underline off of your link text
Click Here|
:
Now your link will have no underline!
ie) fF
15.21,
=" —» |
|
|
So now you can put those links without underlines on your page and surprise you
everyone!
THIS CHANGES EACH LETTER TO LOWERCASE.
The above code will produce the following output:
.
Th
15.20. LINE-HEIGHT “
Possible Valu “
normal
number of pixels
percentage
This lets you change the amount of space between lines of text. The possible
Values that line-height property can take are normal, number of pixels and
percentage. If you want each line to be 30 pixels apart, you could write ths:
_|
| This text has 30 pixels
between each line
.
the following lines:«
600
Pixels and see if anyone will scroll an entire page to read the next b=
—
Ty it at ope 18.17
linet
15.21. TEXT-INDENT a
Possible Values: 9
number of pixels r.
percentage
This defines the i
gules that Nant property pecs Li cnpincet ite se a
you tieed to indent a section by 30 pixels, do me pixels and percentage. if Be
Rw “— ‘30px">This text is indented
30 pixels on the L
‘And this is what you get:
. ; =
indented 30 pixels on the first line.
40.22. FONT-FAMILY L
‘The font-family property defines the type of font shown on the screen The
default name is whatever the browser uses normally, which tends to be Times {
‘New Roman (name of the font). If you want to change ‘the font to Arial, for i‘.
instance, you would write this:
The font for this section is Arial.
}
+
7
And you would get the text with an Arial font:
The font for this section is Arial.
‘omputer for this to work. So
The viewer must have the font jnstalled on their c
stick with the most common fonts for the most part.
f the font shown on the soreen- ‘The default
entage OF number of pixels. TO change
wuld do this:
15.22.1 Font-Size
The font-size property defines size 0
is medium but it can take values 1” perc
your font to a size of 40 pixels, you Wo3
1818
Computer Applicatio
And get thist Biase
The font is 40 pixels in size.
15.22.2 Font-Style
It might be simpler to just use the
tag, but since the propert
| take normal, italics, oblique as its values. For example:
ne
y exists, it can
font-style:italic">The font is italic.
code results into following:
is italic.
Font-Variant
ly use I see for this one so far is that it lets you write in small caps if
to, The default is normal. If you want to write in small caps, do this:
Jets you control how bold the font is. The values it can take are
‘bolder, lighter and any value as a multiple of hundred from 100 to
er values (100-900) don’t seem to have any difference from one
how bold you can be!
OR
t property we'll go over is the color property. I probably have shows
already, but just in case I didn’t.
color property changes the forground color of a section, which is wv=l?
30, to change the color of some text:
s plain