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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:46:32+00:00 2026-05-26T01:46:32+00:00

CSS: #content { width:630px; } .all_friends { background:url(../img/friends.png) no-repeat; margin-left:15px; height:123px; width:615px; padding-bottom:20px; }

  • 0

CSS:

#content {
    width:630px;
 }

.all_friends {

background:url(../img/friends.png) no-repeat;
margin-left:15px;
height:123px;
width:615px;
padding-bottom:20px;
}


.all_awards {
background:url(../img/awards2.png)no-repeat;
height:126px;
width:581px;
padding-bottom:20px;
margin-left:20px;
}

HTML:

<div id=content>
  <h4>Friends</h4>
   <p>Friends description text</p>
   <div class="all_friends"></div> 

  <h4>Awards</h4>
   <p>Awards description text</p>
   <div class="all_awards"></div>
</div>

In IE7/8, I just don’t understand why the image in “Friends” content block displays in IE7/8, but there in the “Awards” content block, no image displays. I don’t want to put the Awards image as a inline “img” tag, (since it works in the other content block) but that is only way IE will display it. Does anyone know how I can fix this? I’ve had this problem before in IE and I HAD to add the img tag in the markup, but it doesn’t make sense that it works in one content block with the identical rules (exc. image and size) and not show up in the other. I checked here and here, and here, I modified my markup, but nothing is working.

This is crazy. You try to keep your CSS and HTML separate, and sometimes a lot of time is wasted on trying to do these things only to find out that they can not be done…. (rant over)

Thanks!

  • 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-26T01:46:32+00:00Added an answer on May 26, 2026 at 1:46 am

    Try to put a space between background:url(../img/awards2.png) and no-repeat;. It’s the only relevant difference I can see between those two style blocks, unless the image url is wrong.

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

Sidebar

Related Questions

my html code <div id=content_main></div> css #content_main { width:1024px; height:150px; background:url('../images/Orange.jpg'); background-repeat:no-repeat; background-size:1024px 150px;
here is my code <div id=content_main2> <div id=content_main2_left><img src=../images/logo.png></div> </div> css #content_main2 { width:800px;
I have this CSS code: #header { width: 100%; background: yellow; } #content {
<div id=content> <div id=outer> <div id=header>Transport</div> <div id=image> <img src=../images/img1.jpg style=width:300px;height:300px/> </div> <div id=right_content>large
I have the following less.css ( http://lesscss.org/ ): #content { overflow: hidden; width: 100%;
My CSS file is acutally a PHP file which is served with content-type text/css
I am trying to come up with a better way of storing/parsing CSS/JS content
I need a div css boxes every time with html-php content, when its in
Does the css content property break the rule of content and separation because css
Which browsers have support for CSS :before { content: x; }? I could not

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.