Kieren Searle
UKDragon.com - KBlog
Getting rid of gaps under images
09/07/08
Getting rid of gaps under images
As images are inline a small gap will appear around them relative to other CSS objects.
For instance, if you want to display an image at the bottom of a div element then there will be a gap between the bottom of the image and the border of the div.
You can stop this behavior using the CSS code:
Code:
display: block; |
Trackback address for this post:
Comments, Trackbacks, Pingbacks:
No Comments/Trackbacks/Pingbacks for this post yet...
Leave a comment:
| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
| << < | > >> | |||||
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |
Search
Categories
KBlog
Archives
- July 2008 (1)
- June 2008 (2)
- May 2008 (5)
- April 2008 (6)
- March 2008 (6)
- February 2008 (6)
- January 2008 (5)
- More...
