filter: glow(***);
Browser |
|
---|---|
Type |
|
The glow filter add the glow effect to the element.
#example {
filter: glow(color=red, strength=100);
}
Attribute | Value | Explanation |
---|---|---|
color | color code or name | the color of the glow |
strength | 1 - 255 |
the strength of the glow
1 = weakest 255 = strongest |
Example
<img src="image/friend.gif" alt="IMG" width="170" height="140">
<img src="image/friend2.gif" alt="IMG" width="170" height="140">
- Output
-
<div style="font: bold 170% sans-serif; width: 100%;">
Example text
</div>
- Output
-
Example text
<div style="width: 90%; padding: 10px; filter: glow(color=red);">
<img src="image/friend.gif" alt="IMG" width="170" height="140">
</div>
- Output
-
<div style="width: 100%; filter: glow(color=red);">
<img src="image/friend2.gif" alt="IMG" width="170" height="140">
</div>
- Output
-
<div style="font: bold 170% sans-serif; width: 90%; padding: 10px; filter: glow(color=red);">
Example text
</div>
- Output
-
Example text
<div style="width: 90%; padding: 15px; filter: glow(color=#ffff00, strength=30);">
<img src="image/friend2.gif" alt="IMG" width="170" height="140">
</div>
- Output
-
<div style="font: bold 170% sans-serif; width: 90%; padding: 15px; filter: glow(color=#ffff00, strength=15);">
Example text
</div>
- Output
-
Example text