Forums / Templates, Stylesheets, Page Layout / Centering "Have You Got Yours" image on main page

Centering "Have You Got Yours" image on main page

Locked

Started by wagnerguy on 15 Nov 2008, 2:37 PM · Views: 920

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
15 Nov 2008, 2:37 PM
#1
wagnerguy avatar

wagnerguy

Zen Follower

Join Date:
Aug 2008
Posts:
334
Plugin Contributions:
0

Centering "Have You Got Yours" image on main page

How to I center my image, its the same place where the "Have You Got Yours" image was on main page?

thanks

15 Nov 2008, 2:56 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: Centering "Have You Got Yours" image on main page

wagnerguy:

How to I center my image, its the same place where the "Have You Got Yours" image was on main page?

thanks

Wa,
Locate this:
includes/templates/classic/css/stylesheet.css
Add this to the bottom of the stylesheet.css

IMG {
display: block;
margin-left: auto;
margin-right: auto; }

Oh, NO Mr. Bill
The dreaded classic template

Please take time to click on the tab at the top of this page called Tutorials/FAQ

  1. Search for override system
  2. Will need for any future upgrades of your nice site
  3. The site makes me want to chop on my big brother who use to pound on me!! LOL

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

16 Nov 2008, 10:36 AM
#3
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

Re: Centering "Have You Got Yours" image on main page

The code posted in the previous post will most likely center ALL your images regardless of what page they are on or whether you want them centered or not lol though you really should listen to haredo's advice on overides :)

Add this into your stylesheet instead:

#indexDefaultMainContent {
    margin: auto;
    text-align: center;
    }
```:D

HunnyBee Design
"A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

16 Nov 2008, 7:16 PM
#4
wagnerguy avatar

wagnerguy

Zen Follower

Join Date:
Aug 2008
Posts:
334
Plugin Contributions:
0

Re: Centering "Have You Got Yours" image on main page

thanks folks, but I i am using the overide system, did you guys see a mistake somewhere?

16 Nov 2008, 7:33 PM
#5
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

Re: Centering "Have You Got Yours" image on main page

<link rel="stylesheet" type="text/css" href="includes/templates/classic/css/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/classic/css/stylesheet_css_buttons.css" />
<link rel="stylesheet" type="text/css" media="print" href="includes/templates/classic/css/print_stylesheet.css" />

The stylesheets are being pulled from the classic folder, this is not using the override system as anything in the classic folders will get over-written....and changes lost....with future upgrades. You need to create your own custom folders for your template wherever you see a classic folder and use those instead.

Glad you got it centered :D

HunnyBee Design
"A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe