473,387 Members | 1,347 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Background image in master page is not displayed

i m using two images in master page in same row one image is displayed but not other plz check out code:
Expand|Select|Wrap|Line Numbers
  1. <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%">
  2.   <tr>
  3.     <td   style="background-attachment: fixed; background-position-y: center; background-image: url('image/slam11.jpg'); color: #ffcccc; background-repeat: no-repeat; background-color: #ffcccc; "  class="style1">                
  4.     </td>
  5.     <td style="background-image:url(image/banner.jpg); width:auto; height: 217px; background-repeat: no-repeat;">
  6.     </td>
Aug 31 '10 #1
3 3193
MrMancunian
569 Expert 512MB
Check the difference between
Expand|Select|Wrap|Line Numbers
  1. background-image: url('image/slam11.jpg');
and
Expand|Select|Wrap|Line Numbers
  1. background-image:url(image/banner.jpg);
Do you see what I see? I see quotes in the first occassion, and no quotes in the second. I presume that's not right...

Steven
Aug 31 '10 #2
Frinavale
9,735 Expert Mod 8TB
Steven's correct, you are missing the single quotes.
Whenever I have issues with CSS I refer to w3schools.com for help. They have many articles on how to use CSS and it is a good starting point for trying to figure out what's wrong.

For instance, they have documentation on how to use the CSS background style.

-Frinny
Aug 31 '10 #3
JKing
1,206 Expert 1GB
Should still work without the quotes. Which background is displaying and which one isnt? Make sure you have the correct path and filenames.
Aug 31 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Curtis Morrison | last post by:
Can anyone lend some advice as to why I'm getting an object not supported error (no error code given) when loading a page with the following CSS Style using a background image? The page loads fine,...
4
by: Mimo Zus | last post by:
I'm hoping that someone can explain what's going on; better yet provide a workaround. I'm designing a centered CSS site based on a 550 pixel wide vertical background image. Onto this background...
6
by: Dan V. | last post by:
Why is the banner background image not always displayed on my web site (www.officeactivate.com) in the banner div in IE 6 but does fine in FireFox? You may have to move the mouse around on the...
2
by: news.sbcglobal.net | last post by:
I hope I can explain this well enough to understand. I have a master page that is used by almost all of the pages in my site. On the master page is a table. In one of the cells in this table, I...
4
by: David Lozzi | last post by:
Howdy, I have my master page, and I would like to change the background CSS class per the content page. Only the home page has a different background style, all other pages are using the same. I...
5
by: 3Dfelix | last post by:
I have a problem when using a Master page file in diferent aspx files. Some of this aspx are in different places. I have see that the problem is with styles definition on master file, when use...
5
by: Michael | last post by:
Is there a way to specify a background-image for a html table cell in a theme's css file. I know a lot of things I can't do... can't figure out one that I can do: 1) ~/ Images/logo.gif...
3
by: schof | last post by:
I am using the following code to call a random background image to be displayed on the far right hand side of the page ... <script type="text/javascript"> function random(n) { return...
1
by: miranda | last post by:
I have a different table background image to be displayed for pages residing under different directories. I want the css script to indicate the table background image relative to each page. Each...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.