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
Started by wagnerguy on 15 Nov 2008, 2:37 PM · Views: 920
Zen Follower
How to I center my image, its the same place where the "Have You Got Yours" image was on main page?
thanks
Totally Zenned
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
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.
Totally Zenned
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
Zen Follower
thanks folks, but I i am using the overide system, did you guys see a mistake somewhere?
Totally Zenned
<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
Tell staff why this post should be reviewed.