You might have noticed that many linked images have borders around them. This happens because all linked images automatically have borders, just as all linked text automatically has underlines. The earlier HTML specifications allowed for a border attribute, which was used to specify the size of an image’s border, as in the following example:
<img src="map.gif" width="575" height="328" alt="Click your state"
usemap="#usa" border="0" /><br />Click the state in which you
currently live.
The value of the border function is indicated in p, where the conventional is 1 for connected images and 0 for nonlinked images. If you preferred to make it greater, you would use a larger wide range, such as 4. In this example, the value is 0. This changes the border off definitely, developing it hidden.
With that said, the W3C on the border function and now wants that you change the display of location with style sheets. One objective for this is that style sheets offer significantlymore control over your location. For example, if you have several images on your website and wish to turn the location off for all of them, instead of such as “border=0” to each of the img brands on the website, you can add the following value to the page’s style sheet:
img {border-width: 0;}
Actually, you could use border-style: none; instead of border-width: 0; and it would also create the boundary unseen. Extra design piece qualities relevant to region are detailed next.
border-width Manages the dimension the region, independently (border-left-width, borderright dimension, and so on) or as a whole (border-width). Principles can be specified long systems (0 or 1, for example) or key terms (thin, wide, or medium).
border-color Manages the border’s shade by specifying between one and four values. When you specify one value, that shade is set for all four boundary sides. When two values are specified, the top and base sides take on large in the first value and the eventually left and right sides take on the second. When three values are specified, the top is set to the first, the eventually left and right are set to the second, and the end is set to the third. When four values are set, the top, right, base, and eventually left sides are set, respectively, as in the following example: img {border-color: #ccc #666 #333 #999;}. To specify a value for only one part, add the side’s name (top, base, right, or left) to the home, as in “border-top-color.”
border-style Changes the design of the boundary. Alternatives include:
none
dotted
dashed
double
solid
groove
ridge
inset
outset
As you can see, another highly effective element of the boundary qualities is that they can be changed either as a whole (so that all four sides look the same) or independently. To improve you will independently, you basically add the part requirements (top, base, right, or left) to the boundary home, after “border” and before any last typical. To provide you an concept how this is done, consider the following example and Determine. Here, I’ve designed a category known as “headshot” and then set the boundary qualities in my design piece.

.headshot {border-style: double;
border-left-style: none;
border-right-style: none;
border-width: 10px;
border-left-width: 0px;
border-right-width: 0px;
border-color: #C00;}
After including that design announcement to my design piece, I can add the category referrals to my img tag to finish the process.
<img src="jsmith.gif" alt="John Smith, CEO" class="headshot" />
<img src="map.gif" width="575" height="328" alt="Click your state"
usemap="#usa" border="0" /><br />Click the state in which you
currently live.
The value of the border function is indicated in p, where the conventional is 1 for connected images and 0 for nonlinked images. If you preferred to make it greater, you would use a larger wide range, such as 4. In this example, the value is 0. This changes the border off definitely, developing it hidden.
With that said, the W3C on the border function and now wants that you change the display of location with style sheets. One objective for this is that style sheets offer significantlymore control over your location. For example, if you have several images on your website and wish to turn the location off for all of them, instead of such as “border=0” to each of the img brands on the website, you can add the following value to the page’s style sheet:
img {border-width: 0;}
Actually, you could use border-style: none; instead of border-width: 0; and it would also create the boundary unseen. Extra design piece qualities relevant to region are detailed next.
border-width Manages the dimension the region, independently (border-left-width, borderright dimension, and so on) or as a whole (border-width). Principles can be specified long systems (0 or 1, for example) or key terms (thin, wide, or medium).
border-color Manages the border’s shade by specifying between one and four values. When you specify one value, that shade is set for all four boundary sides. When two values are specified, the top and base sides take on large in the first value and the eventually left and right sides take on the second. When three values are specified, the top is set to the first, the eventually left and right are set to the second, and the end is set to the third. When four values are set, the top, right, base, and eventually left sides are set, respectively, as in the following example: img {border-color: #ccc #666 #333 #999;}. To specify a value for only one part, add the side’s name (top, base, right, or left) to the home, as in “border-top-color.”
border-style Changes the design of the boundary. Alternatives include:
none
dotted
dashed
double
solid
groove
ridge
inset
outset
As you can see, another highly effective element of the boundary qualities is that they can be changed either as a whole (so that all four sides look the same) or independently. To improve you will independently, you basically add the part requirements (top, base, right, or left) to the boundary home, after “border” and before any last typical. To provide you an concept how this is done, consider the following example and Determine. Here, I’ve designed a category known as “headshot” and then set the boundary qualities in my design piece.
.headshot {border-style: double;
border-left-style: none;
border-right-style: none;
border-width: 10px;
border-left-width: 0px;
border-right-width: 0px;
border-color: #C00;}
After including that design announcement to my design piece, I can add the category referrals to my img tag to finish the process.
<img src="jsmith.gif" alt="John Smith, CEO" class="headshot" />



0 comments:
Post a Comment