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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:08:05+00:00 2026-06-15T19:08:05+00:00

#test {background-image: url(‘/Skins/slickv2/csdlrsite/shared/1dpt_img_mainpic.png’); width: 200px; height: auto; background-repeat : no-repeat;} this is not displaying

  • 0
#test {background-image: url('/Skins/slickv2/csdlrsite/shared/1dpt_img_mainpic.png');
                  width: 200px; 
                 height: auto; 
     background-repeat : no-repeat;}

this is not displaying the image . but if we change the height option to some value it is working , can any one help me in solving this problem.

  • 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-15T19:08:07+00:00Added an answer on June 15, 2026 at 7:08 pm

    The height:auto auto sizes the div to the height of the content. A background image is not content, so the div height is set to 0.

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

Sidebar

Related Questions

I have defined styles for <li> #mainNav{clear:both;background-image: url(../images/bg_menu.jpg);width:975px;height:43px;color:#fff;margin-top:-25px;} #mainNav ul{list-style: none;padding: 0;margin: 0;} #mainNav
I have my current code: #content img[src=/img/test.gif] { background-image:url(dark-img.png) !important; } From my understanding
This is my CSS .test { background-image:url('images/smiley.gif'); background-repeat:repeat; } This is my HTML: <div
I have this in SCSS: @include background(image-url(test.jpg) no-repeat center top); How can i change
$(function(){ $(#mainContainer #container:last-child).css(background-image,url('/images/content-title.png') no-repeat) }) code above didn't work , nothing happend $(function(){ $(#mainContainer
In richfaces has rich:inputNumberSpinner. It has two class following: .rf-insp-inc { background-image: url(/test/facesx/rfRes/spinnerArrowTop.png?v=4.2.0.Final&db=eAH7z8DAAAAEAAEA&ln=org.richfaces.images); }
<style> #test{ background-color:#b10515; width=440px; } </style> <script> ... ... cell[k]=document.createElement('td'); var cont = document.createElement('a');
There are known Style Attribute XSS attacks like: <DIV STYLE=width: expression(alert('XSS'));> Or <DIV STYLE=background-image:
This is my code : HTML <div class="sfondo-interne-8601"> <div style="height:1200px; width:900px;"> Test </div> </div>
<style> .menu_bkg { position: absolute; top: 0px; width: 100%; height: 314px; background-repeat: no-repeat; background-position:

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.