Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Aug 2011
    Posts
    16
    Plugin Contributions
    0

    Default Left *and* right justified images in logowrapper?

    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?

    Code:
    #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

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Left *and* right justified images in logowrapper?

    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;}

  3. #3
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Left *and* right justified images in logowrapper?

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

    Rob

 

 

Similar Threads

  1. I'm trying to put images to the left and right of my slideshow
    By strugglingnovice in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 Jul 2010, 08:12 PM
  2. Seperate Sidebox Content Background Images for left and right sideboxes.
    By Jordin in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Jan 2010, 10:31 PM
  3. Adding Background images to RIGHT and LEFT
    By spectreman in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 20 Jun 2009, 04:24 AM
  4. I want product listing images centered, but the other two columns left-justified?
    By tlyczko in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 31 Oct 2008, 04:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg