nsForum logo

Welcome Guest ( Log In )

 
Reply to this topicStart new topic
> Centering Category Image
regina3196
post Aug 15 2008, 06:26 PM
Post #1





Group: Verified NS Member
Posts: 23
Joined: 8-July 08
Member No.: 1,396



Hi. I am trying to figure out how to center an image I've placed on a category page.

It's a large image and we want to use it essentially as the category's header. I placed the image inside the "full description" section of the "Edit Category Details" and it displays nicely except it is not centered inside the store page. You can see what I mean here:

http://logoschoolgear.com/bishopguilfoyle.aspx

I've tried several things, but nothing works. I know I need to put some code in the css file, but I can't figure out what the code should be.

Any help would be greatly appreciated.

Thanks!
Go to the top of the page
 
+Quote Post
AndyT - MC
post Aug 15 2008, 11:42 PM
Post #2





Group: Verified NS Member
Posts: 979
Joined: 22-October 07
From: St. Louis, MO
Member No.: 170



Take it out of the table and add this to the image:

CODE
style="display:block;margin:0 auto"


that basically means put it on it's own line and set the left/right margins automatically (i.e. center it)
Go to the top of the page
 
+Quote Post
regina3196
post Aug 16 2008, 07:28 AM
Post #3





Group: Verified NS Member
Posts: 23
Joined: 8-July 08
Member No.: 1,396



QUOTE (AndyT - MC @ Aug 16 2008, 01:00 AM) *
Take it out of the table and add this to the image:

CODE
style="display:block;margin:0 auto"


that basically means put it on it's own line and set the left/right margins automatically (i.e. center it)

Thank you so much! It works perfectly.

- Regina
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
Tags
No Tag inserted yet

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version    Network Solutions © 2010 Time is now: 17th March 2010 - 10:37 PM
Domain Names | Web Hosting | Web Design | Shopping Cart Software | Online Marketing | SSL Certificates