Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Dec 2009
    Posts
    2
    Member #
    20581
    Hi, this is my first post and wanted to know if anyone can help me out with this;

    I am just learning CSS and working with it in DW CS3. The problem I am having is getting my background image to show behind the text of the sidebar. The background shows up fine in Design View in DW but when I test it out on a browser it does not show up in either FF or Safari (I am using a MAC). This is something very simple but I can't figure it out. I tried changing the format of the file but that did not do anything. I am actually using a CSS template as a guide and following it exactly

    any help would be greatly appreciated
    as I have spent half my day on this simple task

    thank you

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    Give us the actual URL to the site so we can compare it between browsers.


  4. #3
    Senior Member
    Join Date
    Dec 2009
    Location
    Chicago, IL
    Posts
    114
    Member #
    20579
    Liked
    2 times
    try putting this in your #sidebar declaration:

    background: #d8dadf url(/images/sidebg.gif) left top repeat-x;

    and delete all other background styling. but make sure that you check your background image path. right now you are using a root relative path, but if you're testing locally there is no root in which to be relative, unless you are running it through a local web server. so if your style sheet is at the root level of the project, the above statement should be:

    background: #d8dadf url(images/sidebg.gif) left top repeat-x;

    see the difference? always make sure that when calling an image from a stylesheet that the path is relative to the stylesheet and not the html document.

  5. #4
    Junior Member
    Join Date
    Dec 2009
    Posts
    2
    Member #
    20581
    wow okay, that makes sense and it works now, thanks a lot for the replies I appreciate it, I tried the statement you provided gatortek and it works


    thanks a million
    I will be using this forum more often you guys know what your talking about

  6. #5
    Senior Member
    Join Date
    Dec 2009
    Location
    Chicago, IL
    Posts
    114
    Member #
    20579
    Liked
    2 times
    no problem, I'm glad it worked out for you


Remove Ads

Posting Permissions

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

Search tags for this page

sidebar background image css

,
sidebar background image html
Click on a term to search for related topics.
All times are GMT -6. The time now is 11:05 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com