November 10, 2003Blogging > Movable Type and ImagesSo my text was butting up against my pictures. You could really see it when the image was left justified. I fixed it with this addition to my stylesheet: .blog img { The "blog img" part says that it only applies to images within the blog class, and not to images on other parts of the page. If you don't have a blog class, use whatever class you use for blog posts. Otherwise, just use "img", but it will apply to all images on your Web pages. That's OK, but be aware that it could cause spacing issues. The first value (0px) puts zero pixels at the top and bottom. That way the images align with the top of the paragraph. Then second value (6px) puts six pixels of space to the left and right. CSS is pretty flexible. You can also specify one value (which will apply in all four directions) or four values (for top, right, bottom and left - an easy way to remember the order is that it's clockwise starting from the top). Posted by lesjonesComments
Loved this post. It fixed the same problem I was having. Kept trying to do it in the image, by adding padding. This did it for all subsequent postings, too. Thanks. Posted by: Cartee at October 31, 2004 |
Search
Sponsors
Archives
Every post A&E - (205) Best Of - (54) Blogging - (252) Comic Books - (30) Dancing Baloney - (26) Dear Lazyweb - (17) E-commerce - (159) East Tennessee - (283) Economics - (93) Environment - (71) European Union - (38) Everything's Illegal - (5) Family Tree - Moore Side - (6) Food & Drink - (77) Funny Ha-Ha - (164) Guns - (390) Health Care - (43) Home Life - (263) John Kerry - (1) Johnia Berry - (48) Macular Degeneration - (11) Media Behaving Badly - (56) Middle East - (47) Misc - (105) Mortgage Crisis - (3) Municipal Wi-Fi - (17) News - (304) Nifty - (97) Photos - (34) Political Survival Kit - (16) Politics - (60) Polls - (19) Population - (31) PSAs - (11) Quotes - (195) Rocky Top Brigade - (38) Science - (126) Scratch Pad - (5) Seventies - (3) Social Security - (9) Star Wars - (54) Tech - (111) The Usual Suspects - (15) Timothy Treadwell - (6) Travel - (60) True Crime - (69) Word of the Day - (98) |