If you look at the web page you provided, there are id's associated with div tags, that surround the code that displays the boxes, such as:
This id is referenced in the css file, with a pound sign in front of the id name "#box_1": http://www.dbfnetwork.info/tinderbox/demos/fixed-3-4c/style.css
Here's the actual css code that created "box_1":
#box_1 {
margin:0 5px 2em 0;
padding:8px;
float:left;
width:150px;
background-color:#cccccc;
}:
The web author is using the "box model" which requires the author to define margins, padding, and width.
The css code for box 1 says:
1) float (or start) displaying the box at the left most part of the web page: float:left;
2) the box will have a width of 150 pixels (dots on the web page): width:150px;
3) the background of the box will be gray (stated in hex):
background-color:#cccccc;
4) the margin is the most complicated, it sets up the parameters for the box:
a) Margin denotes space around the "box".
b) You can specify the margin space in points (pt), inches (in), centimeters (cm), emphasis (em) or pixels (px).
c)The order you can specify the margin of the box is:
top, right, and then left.
d) So your box margin was: margin:0 5px 2em 0;
0 space from the top of the box;
5px of space from the right side of the box;
2em (twice the size of a text character) from the bottom
0 space from the left side of the box
5) Padding is the amount of space between the text or content and the border of the box, or if there isn't a border, than the space between the content of the box and the edge of the box itself (so the text isn't all swished together), 8px of space was requested between the text and box: padding:8px;
2006-12-09 05:29:20
·
answer #2
·
answered by edith clarke 7
·
1⤊
0⤋
i am a new yahoo user ,i sell some product on yahoo .
this is my yahoo store http://www.llpshop168.com ,if i bother you ,i hope you can forgive me ,thank you for your time .i hope you can give me some suggest about my product.
2006-12-10 03:32:21
·
answer #4
·
answered by shop l 1
·
0⤊
1⤋