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 7399345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:02:57+00:00 2026-05-29T04:02:57+00:00

I am trying to place a repeating gradient .png as a background-image for a

  • 0

I am trying to place a repeating gradient .png as a background-image for a div.

CSS:

background-image: url(./images/backbar.png) repeat-x;

I also tried it with quotes, and there was no change. This is what the dragonfly interface in Opera says:

#final_bar { 
    color: rgb(0, 0, 0);
    display: block;
}
nepan.css:43
.bar { 
    clear: both;
    margin-left: auto;
    margin-right: auto;
    width: 771px;
}
default values
div { 
    <strike>display: block;</strike>
}
Inherited from div
nepan.css:31
.wrapper { 
    <strike>color: rgb(40, 40, 40);</strike>
    font-family: "Arial", "Helvetica", sans-serif;
    font-size: 12px;
    line-height: 18px;
    text-align: left;
}

^The style property isn’t even showing up, so am I mistyping?

Now, as per the various questions:

  1. My HTML and CSS files are in the same directory (you will note that the image is used in the div–I did that to determine if the file was accessible – it is).

  2. I have tested this page in IE/Chrome/Firefox/Opera now. The image itself shows up as an individual image, except in Firefox.

  3. http://nepaninjas.com This code is live with the error at this time.

  • 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-05-29T04:02:58+00:00Added an answer on May 29, 2026 at 4:02 am

    Background-image explicitly lets you set the background image and nothing else. Utilizing the background property will let you apply multiple settings to the background in one line.

    background: url(./images/backbar.png) repeat-x;
    

    Here’s the spec for what you can specify in the background property:

    background: { background-color background-image background-repeat background-attachment background-position | inherit } ;
    

    Also, keep in mind that the path in the url is relative to the location of the CSS file itself. If you can I recommend utilizing the http root for your file paths. This allows your CSS to be more flexible if you were to restructure or move your CSS file the image paths will not subsequently need to be updated. So if you can manage I would recommend:

    background: url(/images/backbar.png) repeat-x;
    

    Provided your images are located in http://domain.com/images/

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

Sidebar

Related Questions

I'm trying to place 4 of my image containers into a new pane, having
I'm trying to place a nice border around an image that's 250x250, using only
I was trying to place some simple effects on an image using HBox using
I'm trying to fetch HTML/Text from a DIV and place it as-is (newlines and
(look also at my previous question ) I'm trying to repeat set of curlopt
I am trying to place a circlular div (border-radius:85) on top of a <li><a></a></li>
I'm trying to place this menu on the left hand side of the page:
I am trying to place a big number in a C++ variable. The number
I'm trying to place a class into a package where another public class is
I'm trying to place a control that I have created on my Canvas .

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.