Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2009
    Posts
    6
    Plugin Contributions
    0

    Default help with image overlay

    I posted this in another section but I dont think it was the right place.

    I have designed the way i want the website to look in photoshop but I am very new to code so im not sure how to go about this.

    the website is
    http://unplugyourhouse.com/

    the image in the top left corner is how i want the header to look. So I have a blue background (that I want to fade to the lime-ish beige color under the navigation bar) the logo itself, and the navigation bar.

    How do I take my logo image and allow it to overlay the navigation bar? how do i make the header background blue, and how do i get it to fade to the limeish beige color?

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: help with image overlay

    Make a background image in Photoshop, say 10 pixels wide x the height of your header. Do a gradient from blue to beige, and save it as /includes/templates/your_template/images/header_bg.gif.

    In your stylesheet,

    #headerWrapper {background: url(../images/header_bg.gif) repeat-x;}

    will set the gradient background,

    #logo {margin-bottom: -15px;}

    will bring the navbar up under the logo, and

    #top_nav {padding-left: 250px;}

    will move the navbar content to the right to clear the logo. Adjust as required.

    You may also need to add
    position: relative;
    to the #logo rule to keep it on top of the navbar.
    Last edited by gjh42; 26 Feb 2009 at 07:57 PM.

  3. #3
    Join Date
    Feb 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: help with image overlay

    Thanks so much for the super quick response!

    I got the navigation in the correct location now and I have created the photoshop slice. Is there something i need to write in the stylesheet to tell it to repeat the header_bg.gif?

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: help with image overlay

    CSS background-images automatically repeat horizontally and vertically unless you tell them not to.
    The repeat-x in the code I posted tells the image to repeat horizontally only.

  5. #5
    Join Date
    Feb 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: help with image overlay

    ah thanks!

 

 

Similar Threads

  1. v150 overlay text on image
    By xr3461 in forum General Questions
    Replies: 4
    Last Post: 18 Apr 2013, 08:10 AM
  2. v139h overlay soldout image help needed
    By tony_sar in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 6 Apr 2012, 05:40 PM
  3. Product Image Overlay by attribute selection
    By azzoor in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 6 Feb 2011, 12:44 PM
  4. Product listing image - a text overlay
    By simlqd in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 4 Feb 2011, 10:46 PM
  5. popup image as an overlay not working properly in IE
    By gems14k in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 2 Oct 2006, 11:01 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