Results 1 to 10 of 22

Hybrid View

  1. #1
    Join Date
    Apr 2008
    Posts
    193
    Plugin Contributions
    0

    Default Editing CSS in Dreamweaver, trying to put a background image.

    I知 using a template override and im editing the CSS. I知 using Dreamweaver to edit it so I can see all the CSS styles and there names in the CSS Styles window.

    What styles controls the background image on the page?

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

    Default Re: Editing CSS in Dreamweaver, trying to put a background image.

    There are a couple of possibilities depending on exactly how your page display is set up. It could be the body {} declaration you need to add your background to, or #mainWrapper {}, or possibly others.

    The property you want to use is

    background-image: url(../images/yourbg.gif);

    and possibly also specifying background-repeat: and background-position:.

    I don't know how Dreamweaver works, but if it doesn't show you the class/id of the element, you might try the Firefox Web Developer extension to get information (it also allows you to temporarily edit CSS and see the results instantly.)

  3. #3
    Join Date
    Apr 2008
    Posts
    193
    Plugin Contributions
    0

    Default Re: Editing CSS in Dreamweaver, trying to put a background image.

    I致e been trying to figure this out for a while now and ive made the following changes to the css, but nothing seems to work;

    #navMainWrapper, #navSuppWrapper, #navCatTabsWrapper {
    margin: 0em;
    background-color: #abbbd3;
    background-image: url(../images/tile_back.gif);
    padding: 0.5em 0.2em;
    font-weight: bold;
    color: #ffffff;
    height: 1%;
    background-repeat: repeat;
    }

    .centerBoxWrapper {
    border: 1px solid #9a9a9a;
    height: 1%;
    margin: 1.1em 0;
    /* create free space at the bottom of the box in which to display the image */
    padding-bottom: 20px;
    /* add the image to the boxes background */
    background-image: url(file:///Macintosh%20HD/Applications/MAMP/htdocs/gemstones/includes/templates/newtemplate/images/backgroundfade.jpg);
    /* position the image at the bottom and center of the box */
    background-position: center bottom;
    /* EITHER set the image to not repeat */
    background-repeat: no-repeat;
    /* OR set it to repeat horizonatally */
    background-repeat: repeat;
    }

    .leftBoxHeading, .centerBoxHeading, .rightBoxHeading {
    margin: 0em;
    background-color: #abbbd3;
    background-image: url(file:///Macintosh%20HD/Applications/MAMP/htdocs/gemstones/includes/templates/newtemplate/images/backgroundfade.jpg);
    padding: 0.5em 0.2em;
    }

  4. #4
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Editing CSS in Dreamweaver, trying to put a background image.

    the url to the image should be relative to the stylesheet...so you want it to look like:
    Code:
    /* add the image to the boxes background */
    background-image: url(../images/backgroundfade.jpg);
    which reads like "to get to the image go up one directory, over to the images directory and there you will find the image"
    Last edited by barco57; 11 May 2008 at 08:32 PM. Reason: clarification
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  5. #5
    Join Date
    Apr 2006
    Location
    France
    Posts
    53
    Plugin Contributions
    0

    Default Re: Editing CSS in Dreamweaver, trying to put a background image.

    sorry doubled reply took me too long
    Last edited by pots; 11 May 2008 at 08:35 PM. Reason: replied to late

  6. #6
    Join Date
    Apr 2008
    Posts
    193
    Plugin Contributions
    0

    Default Re: Editing CSS in Dreamweaver, trying to put a background image.

    By putting the folowing code into
    #navMainWrapper, #navSuppWrapper, #navCatTabsWrapper {

    I can make a background image for the navigation bar and footer, but I still cant find where to put it for the main background pages.

    code:
    background-image: (../images/backgroundfade.jpg);
    background-repeat: repeat;
    background-position: center bottom;

    putting the code into .centerBoxWrapper does nothing.

  7. #7
    Join Date
    Apr 2008
    Posts
    193
    Plugin Contributions
    0

    Default Re: Editing CSS in Dreamweaver, trying to put a background image.

    Is there a resource anywhere that tells you what bits of the CSS do what?

    This is not very helpful as it only explains what the rules do, not what they are affecting;
    http://www.zen-cart.com/wiki/index.p...ts_-_Annotated

 

 

Similar Threads

  1. Put a background image on all products pictures
    By xergos055 in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 3 Nov 2008, 08:34 PM
  2. Where do I put my background image?
    By shamis in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 20 Dec 2007, 05:37 PM
  3. how do I put a background image in the header?
    By touchclothing in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Mar 2007, 10:16 AM
  4. how to put background image to left column
    By vr4indian in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 16 Oct 2006, 02:58 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