Forums / Templates, Stylesheets, Page Layout / Centre the Category Image

Centre the Category Image

Views: 1,261

Results 1 to 12 of 12
8 May 2010, 8:24 PM
#1
wotnow avatar

wotnow

Zen Follower

Join Date:
Jan 2010
Location:
Broome
Posts:
331
Plugin Contributions:
0

Centre the Category Image

Hi I hope someone can help me with centering the Category Image .. on my page.

Site is http://www.broomebeads.com.au/index.php?main_page=index&cPath=18

I already have the product info centred module for my product pages and I have tried playing with the css .categoryImg img I have tried text-align:center and margin: 0 auto and was hoping some kind person would know. The only way I can move it is with padding and all my category images are different sizes.

Thanks

Amanda McInerney
Kimberley Web Design

http://www.kimberleywebdesign.com.au/

8 May 2010, 8:43 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Centre the Category Image

What you had commented out works

.categoryImg img{ margin: 5px auto; text-align:center; padding: 0 0 0 175px; }

But why are you padding 175px?

Zen-Venom Get Bitten

8 May 2010, 11:04 PM
#3
wotnow avatar

wotnow

Zen Follower

Join Date:
Jan 2010
Location:
Broome
Posts:
331
Plugin Contributions:
0

Re: Centre the Category Image

Hi I dont have anything commented out except the padding which I used to see if I was in the right place and with text align centre and auto margin it is not working. Thanks for your help.

Amanda McInerney
Kimberley Web Design

http://www.kimberleywebdesign.com.au/

8 May 2010, 11:10 PM
#4
wotnow avatar

wotnow

Zen Follower

Join Date:
Jan 2010
Location:
Broome
Posts:
331
Plugin Contributions:
0

Re: Centre the Category Image

Sorry can I also ask which page has the text for the front page "Hello as you can see, I cant find it. Thanks

Amanda McInerney
Kimberley Web Design

http://www.kimberleywebdesign.com.au/

8 May 2010, 11:20 PM
#5
wotnow avatar

wotnow

Zen Follower

Join Date:
Jan 2010
Location:
Broome
Posts:
331
Plugin Contributions:
0

Re: Centre the Category Image

Sorry finally found where I edited the text, went there before but missed it .. sorry to trouble you.

Amanda McInerney
Kimberley Web Design

http://www.kimberleywebdesign.com.au/

9 May 2010, 1:13 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Centre the Category Image

Try adding this to your stylesheet.css file

#categoryImgListing {
        text-align: center;
        }

Zen-Venom Get Bitten

9 May 2010, 7:16 AM
#7
domaindude avatar

domaindude

New Zenner

Join Date:
Jan 2009
Posts:
33
Plugin Contributions:
0

Re: Centre the Category Image

wotnow:

Hi I hope someone can help me with centering the Category Image ... I have tried playing with the css .categoryImg img I have tried text-align:center and margin: 0 auto...

I wanted to do this too. Try using text-align: center on the categoryImgListing style. Should work :smile:

9 May 2010, 7:17 AM
#8
domaindude avatar

domaindude

New Zenner

Join Date:
Jan 2009
Posts:
33
Plugin Contributions:
0

Re: Centre the Category Image

Oops, just saw that kobra already suggested this.

Did it work?

9 May 2010, 11:36 AM
#9
wotnow avatar

wotnow

Zen Follower

Join Date:
Jan 2010
Location:
Broome
Posts:
331
Plugin Contributions:
0

Re: Centre the Category Image

Thank you so much for that .. worked like a dream. Can I trouble you further to explain how to centre the text under it

I have tried modifying the #categoryDescription, #indexProductListCatDescription (line 275)

{

margin-top: 10px;

margin-right: auto;

margin-bottom: 10px;

margin-left: auto;

} but that didnt work.

Amanda McInerney
Kimberley Web Design

http://www.kimberleywebdesign.com.au/

9 May 2010, 12:44 PM
#10
domaindude avatar

domaindude

New Zenner

Join Date:
Jan 2009
Posts:
33
Plugin Contributions:
0

Re: Centre the Category Image

Have you tried text-align: center on the #categoryDescription, #indexProductListCatDescription style?

9 May 2010, 12:45 PM
#11
wotnow avatar

wotnow

Zen Follower

Join Date:
Jan 2010
Location:
Broome
Posts:
331
Plugin Contributions:
0

Re: Centre the Category Image

Hey worked it out .. had a stupid space in between the # and the class

#categoryDescription.catDescContent {
margin:10px auto;
text-align:center;}

Thanks for your help everyone

Amanda McInerney
Kimberley Web Design

http://www.kimberleywebdesign.com.au/

20 Jul 2011, 5:12 PM
#12
zc_newbie_1 avatar

zc_newbie_1

New Zenner

Join Date:
Nov 2010
Location:
Miami, Florida
Posts:
57
Plugin Contributions:
0

Re: Centre the Category Image

H,

I went to includes/templates/MY_TEMPLATE/css to center my image but I could not seem to find:

#categoryDescription.catDescContent {
margin:10px auto;
text-align:center;}

I read that I may need to add this:
#categoryImgListing {
text-align: center;
}

But I'm not sure where exactly it should go.

Please help.