the goat
03-12-2009, 11:16 PM
So I have a couple of sites where the image locator in posts just never worked for me, they were always on the left side unless I put my own html commands in. (which was hugely annoying because if I ever switched out of html they would disappear) I had been looking for the fix for a while and I finally came across what I was looking for. I thought I would share it in case anyone else was having the same frustrations.
I simply added this to my .css file and it now works like a charm:
img.centered, .aligncenter, div.aligncenter {
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;
display: inline;
}
.alignright {
float: right;
}
.alignleft {
float: left;
}
I simply added this to my .css file and it now works like a charm:
img.centered, .aligncenter, div.aligncenter {
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;
display: inline;
}
.alignright {
float: right;
}
.alignleft {
float: left;
}