Using the border-width property, you can set all four borders at once, as follows:
The following are examples of code for using the border-width property in various ways: /* All borders are set the same, to 2em. */ BODY { border-width: 2em } /* Top and bottom = 1em; right and left = 2em. */ BODY { border-width: 1em 2em } /* Top = 1em, right = 2em, bottom = 3em, left = 2em. */ BODY { border-width: 1em 2em 3em } /* All borders are set and are applied in top/right/bottom/left order. */ BODY { border-width: 1em 3em 5em 7em } |