Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   Always Center Images (http://forum.bytesforall.com/showthread.php?t=18156)

theadventurebite Aug 11, 2012 02:35 PM

Always Center Images
 
Is there a way to make Atahualpa default to the images being centered?

I center hundreds of photos a week and am sick of doing it manually. Ideas?

Thanks!

Dani

theadventurebite Aug 11, 2012 02:51 PM

I think I figured it out! Wahoo!

Any reason this would be bad to use:

Code:

padding: 5px;
border: solid 1px #d5d5d5;
display: block;
margin-left: auto;
margin-right: auto;
background-color: #FFFFFF;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;

Thanks!

juggledad Aug 12, 2012 05:08 AM

where did you use it?

theadventurebite Aug 12, 2012 06:10 AM

I used it in the Images in Post section.

It's also tweaking all the comment/category images and adjusting images on Pages as well but I think I can still make it work with some tweaks.

Is there any way to override it in certain cases?

juggledad Aug 12, 2012 09:10 AM

sure, just code a CSS insert with the particular post ID as part of the selector

theadventurebite Aug 12, 2012 04:36 PM

I'm not sure how to do that?

juggledad Aug 12, 2012 05:19 PM

best way is to use firebug in firefox and examine the img. Then you will see it's parent HTML elements, one which should be a div with a class of 'post-id-nn' where nn is the post id


All times are GMT -6. The time now is 03:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.