Feb 26, 2007 - 12:51 PM
This is an example:
Because borders are attached to boxes, you want to specify which border to display: top, bottom, left or right. The first parameter specifies the thickness, the second that it should be dotted and the last is the rgb color code.
The length of the line will depend on - in this case - the width of your box, which you can set with the width property.
You can probably do something with the
element as well (which is by nature a line - a horisontal rule), but since this one is styled so differently in various browsers, I think it is not worth trying.
Feb 26, 2007 - 12:58 PM
Feb 26, 2007 - 01:14 PM
The translation is very easy:
and in styles.css:
border-bottom: 1px dotted #80c080;
I hope that was what you meant.