Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Left *and* right justified images in logowrapper?

Left *and* right justified images in logowrapper?

Started by 4lex on 7 Aug 2011, 7:20 AM · Views: 617

Results 1 to 3 of 3
7 Aug 2011, 7:20 AM
#1
4lex avatar

4lex

New Zenner

Join Date:
Aug 2011
Posts:
16
Plugin Contributions:
0

Post #1 by 4lex

Hi. I've had practically no experience of CSS and am floundering I must admit.

What I'm trying to achieve is a uniform white bar as defined in stylesheet.css (below) with one image justified left and one right. I'm sure this must be easy enough, but I'm making it look hard, can anyone help?

#logoWrapper{
	background-image: url(../images/logoleft_105.jpg);
	background-image: url(../images/logoright_105.jpg) right;
	background-repeat: no-repeat;
	background-color: #ffffff;
	height:105px;
	}

I'm afraid I don't have the site up currently as I'm trying to migrate it to another host. Appreciate any pointers on the image location thing.

Alex

7 Aug 2011, 11:33 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Post #2 by stevesh

You can't have two background images in the same rule. Stylesheets are loaded top to bottom, so the second background-image will override the first.

One way to do waht you want to do would be to insert the images into tpl_header.php using regular HTML (<img>) and give each its iown class, say, right and left. Then style those classes in the stylesheet:** .left {float:left;}**

8 Aug 2011, 2:22 AM
#3
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Post #3 by rstevenson

Or, if your site is fixed width, just combine the two of them into one image and use that in the background.

Rob

Breakfast: the most important donut of the day.