advertisement
Login | Register   
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Partners & Affiliates
advertisement
advertisement
advertisement
advertisement
Average Rating: 4.3/5 | Rate this item | 7 users have rated this item.
CSS: Spacing and Areas (cont'd)
Border Top Width
{border-top-width: XXunits/thin/medium/thick}
The border-top-width property lets you set the width of an element's top border.

It is illegal to use negative values for border-top-width. Different Web browsers interpret thin, medium, and thick differently, but the width of thin is always smaller than medium, which is always smaller than thick.

The border-top-width property should be used in conjunction with the border-style property to ensure that CSS-enabled browsers process it correctly.

Example:


P {border-top-width: 1cm}
advertisement

If you are using a CSS-enabled browser, this paragraph has a 1-centimeter-tall top border.



Previous Page: Border Top Next Page: Border Bottom
Page 1: ClearPage 10: Border Bottom
Page 2: FloatPage 11: Border-Bottom- Width
Page 3: HeightPage 12: Border Right
Page 4: WidthPage 13: Border Right Width
Page 5: Border ColorPage 14: Border Left
Page 6: Border StylePage 15: Border Left Width
Page 7: Border WidthPage 16: Border
Page 8: Border TopPage 17: Margin
Page 9: Border Top WidthPage 18: Padding
Please rate this item (5=best)
 1  2  3  4  5
advertisement