473,808 Members | 2,797 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Background image in master page is not displayed

98 New Member
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 3221
MrMancunian
569 Recognized Expert Contributor
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 Recognized Expert Moderator Expert
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 Recognized Expert Top Contributor
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
5313
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, but the image doesn't load. This only occurs when loading the page using the https url. #ContentHeaderMiddle { background:#333333 url(/images/headings/orange.gif) no-repeat scroll; height: 72px; width: 698px; color: #FFFFFF;
4
9738
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 I built a two column layout with nested navigation and content divs. The background image is centered via "background: ... center;", the divs are centered over it via "margin: 0 auto 0 auto;". The problem I'm having in IE6 is inconsistent...
6
3377
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 banner, text, navigation buttons to see this behavour. thanks,
2
3326
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 have set the background to display an image that is located in a directory called "images" which is just off the root directory. Here's the problem: Any page that is not located in the root directory (where the master page is located) cannot...
4
3141
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 know I can create a new master page, but I'd like to just change the master page from the content page if possible. thanks!
5
20159
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 "background-image". In some aspx files this background image are lost. for example: background-image:url('../App_Themes/images/image2.gif '); Any solution for this?
5
3169
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 doesn't work since it isn't a server side control. 2) /Images/logo.gif doesn't work, not sure why. 3) Images/logo.gif doesn't work - This can work specify the style of the td element instead of the CSS class but then it isn't part of the theme. 4)...
3
2747
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 Math.floor((Math.random() % 1) * n); } document.documentElement.style.background="url('photo"++".jpg') repeat-y 890px 0 background-attachment: fixed" </script> This is working fine in explorer - but does not bring up the image in safari or mozilla ... any...
1
3957
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 directory contains a subdirectory "/images" each of which contains a different image with the same filename "entryimage.jpg" Here's the css class I've got that is not relative: ****************** .bgentrypagepic { background-image:...
0
10628
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10373
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9195
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5547
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5685
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.