CSS border default value
When writing a border rule you'll usually specify the colour, width and style (in any order).
For example,
will give you a black solid border, 3px thick. However the only required value here is the border style.
If you were to write just
Well, the default width for a border is medium (equivalent to about 3 to 4px) and the default colour is that of the text colour within that border. If either of these are what you want for the border then you can leave them out of the CSS rule.
When writing a border rule you'll usually specify the colour, width and style (in any order).
For example,
border: 3px solid #000
will give you a black solid border, 3px thick. However the only required value here is the border style.
If you were to write just
border: solid
then the defaults for that border will be used. But what defaults?Well, the default width for a border is medium (equivalent to about 3 to 4px) and the default colour is that of the text colour within that border. If either of these are what you want for the border then you can leave them out of the CSS rule.
Other Topics
CSS : Comments,CSS : Why, whatand need of
CSS,CSS : Background image Trick,CSS : Forcing Grayscale Printing,CSS : Two classes together,CSS : Border default value,CSS : Document for printing,CSS : Image replacement technique,CSS : Box model hack alternative,CSS : Centre aligning a block element,CSS : Class selector,CSS : Sticky Footer Layout,CSS::STYLING FORMS, mechanical Engineering, English books,Photoshop tutorials,Harry potter,Best 100 english books,Mechanical-old-question-paper,CSS : Id Selector
No comments:
Post a Comment