Controls the size of your images. If you don't provide the width or heigh it will be determined automatically change the # to whatever the dimensions are.
add
style="background:red; border:3px solid orange;color:black"
to the tag befor the >
<b style="background:red; border:3px solid orange;color:black">Special Bold Text</b>
Example: Bold text Bold text with the style properties added
You can add extra style properties to any tag.
Top
Css is used add style properties
to the tags. For example the tag for bold text is <b> (bold) the in the style sheet it looks like:
<style>
b{
font-size:12px;
color:orange;
border-bottom:2px dashed purple;
}
</style>
All tags can be used in your stylesheet.
Here a snippet of the code for the <i> (italics), <u> (underlined), <b> (bold) tags
<style>
i{
color:green;
background:yellow;
font-size:15pt;
}
u{
color:red;
background:black;
font-size:15pt;
border-bottom:3px solid green;
}
</style>
This means that ALL italics on the page will be green with a yellow background and be size 15px.
ALL underlined text will be red with a black background, be size 15 and have a solid green, 3px thick, border
ALL bold text will be hotpink with no background and be the tahoma font Top
<style>
body{
scrollbar-base-color:purple;
}
</style>
Change TAGNAME to the tag you want to add scrollbar properties to. If you use body that will change all the scrollbars on the page Top
<style>
.layout{
overflow:auto;
position:absolute;
top:#px;
left:#px;
height:#px;
width:#px;
}
</style>
and the actuall div code is:
Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout Text in the layout
Ok let's break down the css code line by line.
</style>
.layout{
overflow:auto;
.....
First remember the .layout is the class name.
The next line means that if there is more text than can fit into the space then there will be a scrollbar, and if it all fit there will be no scrollbar.. Other options are none or yes
...
position:absolute;
...
This means that it will be floating. No matter where in your code you put the actual div code, it will float to whatever position you put it at. Simple as that.
...
top:#px;
left:#px;
...
The # of pixels from the top and the # of pixels from the left it will be located.
....
height:#px;
width:#px;
}
</style>
The height and the width. Duh.
Top