Wordpress 2.5+ introduced a new image gallery system and correspondingly a new way to align images which was relatively intricate compared to the old one. The main problem I faced using the new system until now was that I couldn't make Wordpress align the images properly for me. I thought I was the only one facing this problem but a helpful post by Daniel made it clear that there are perhaps more users facing the same problem. I am sharing the fix just in case someone comes searching through to find a fix for this problem. All you need to do is add the following piece of CSS code to your theme stylesheet and you are good to go. This will make Wordpress aware of all alignments.img.centered {
display: block;
margin-left: auto;
margin-right: auto;
} img.alignright {
padding: 4px;
margin: 0 0 2px 7px;
display: inline; }
img.alignleft {
padding: 4px;
margin: 0 7px 2px 0; d
isplay: inline; }
.alignright { float: right; }
.alignleft { float: left; }
Web 2.0, Internet, Technology, News, Images, Videos, Mobile, Politics, Games, Movies, Entertainment, Music, iPhone
Categories
- News (29)
- World Technology (20)
- iPhone (17)
- Jailbreak/Unlock (13)
- Windows (13)
- iPhone 3GS (13)
- Sony (10)
- Google News (6)
- iPhone OS 3.0 (6)
- UltraSnow (4)
- AMD (3)
- Android (3)
- BlackBerry (3)
- Intel (3)
- Nokia (3)
- Palm (3)
- Software Downloads (3)
- Window 7 (3)
- AlienWare (2)
- Guides (2)
- LG (2)
- Mac (2)
- Purplera1n (2)
- Purplesn0w (2)
- Software (2)
- iPad (2)
- iPod (2)
- redsn0w (2)
- Acer (1)
- Adobe (1)
- Apple (1)
- Asus (1)
- Dell (1)
- EVGA (1)
- Flipboard (1)
- Free (1)
- Games (1)
- HTC (1)
- LG Windows Phone (1)
- Logitech (1)
- NFS (1)
- Nintendo (1)
- Razer (1)
- Reviews (1)
- Samsung (1)
- Security (1)
- SideKick (1)
- WordPress (1)
- Xbox 360 (1)
- iPhone 3GS Review (1)
- iPhone 4 (1)
Labels: WordPress
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment