Centering Avatars on SMF Profile - How to?

Started by Scratching my Head, May 05, 2012, 01:40:38 AM

Previous topic - Next topic

Scratching my Head

Hi. I want to center the Avatars on all users profiles. I am using SMF 2.0.2 - clean install no mods
(Well. One mod - Reflection Avatar)

I've enclosed a picture of what I am aiming for:









How and where would I code this, please? 
Would anyone be able to help me.




Hope everyone is well.


: o )

Storman™

I don't know what theme you are using but you probably need to amend the css in the theme's index.css file which you can find in:

Themes --> Your Theme --> CSS

There's probably an entry called "basic info img.avatar" that relates to the avatar class, however from memory I have a feeling that everything in that section is floated left so the css may need juggling in that area depending on how it is in your theme.

Can't see why you would want to do that though ..... .personally I prefer the lower picture that you posted.. ?

Scratching my Head

Ah. The theme. Yes. It's one I made modifying the default theme.

Don't know how, or why it works, and I'll leave it here because I raised the question, and found an answer.

In my .css file I added this bit of code:



}

.avatar { overflow: hidden }

{
margin: 0 auto !important;
}


And I got the desired results.

In my modified theme. Putting the same code in the default theme's .css didn't do anything. The avatar is still on the right.

Thus:




Thanks much for taking the time to respond. It's apreciated, and I am grateful.

Thank you.


Topic solved.

Advertisement: