Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8403929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:27:53+00:00 2026-06-09T22:27:53+00:00

I am trying to include a background image using a relative link in the

  • 0

I am trying to include a background image using a relative link in the css.

My tree looks like this

/_css
/_css/gcrm.css
/_images
/_images/bg-grad1.gif

The css I am using to use to call it is like so

background-image: url(../_images/bg-grad1.gif);

It displays as expected in Visual Web Developer however when I put it on the web, no background. When I inspect element in Chrome this is the linked file

mysite.com/_css/../_images/bg-grad.gif

Unfortunately I cannot link to it with the / root as I am trying to setup SSL and my hosting company has allowed us to use as shared cert that mirrors the site 1 level deep in the domain tree.

I must be missing something incredibly simple but I can’t figure out what it is to get it working.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:27:54+00:00Added an answer on June 9, 2026 at 10:27 pm

    Your url looks fine in regards to your file structure. Assuming this is your file structure:

    /_css/
        ...
        gcrm.css
        ...
    
    /_images/
        ...
        bg-grad1.gif
        ...
    

    From the fact that it’s actually outputting the .. in the url in the code, maybe you need to enclose the url in quotes:

    background-image: url("../_images/bg-grad1.gif");

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to include an image in an email, which is being sent using
I'm trying to stretch a background image so it always fills the window. Using
I'm trying to create a CSS3 button which includes an image using multiple background.
I'm trying include this barcode source code Stefanhafeneger - Barcode github.com to my project
I am trying to include <% @using System.Web.Script.Serialization%> but it is giving me error
I am trying to include css sprites in my webapp. The thing is I
I'm trying to format my ListBoxItem template to include a image. I can add
I am trying to scale an image without using the function gluScaleImage which is
I'm trying to decide the best way to include an image that is required
I'm trying to animate only the y position of a background image. Code works

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.