473,322 Members | 1,671 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,322 software developers and data experts.

the image is not shown proper at some pc but shows proper at some other pcs

The image is not shown proper at some pc but shows proper at some other pcs.

Expand|Select|Wrap|Line Numbers
  1. <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
  2.  
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4.  
  5. <html xmlns="http://www.w3.org/1999/xhtml" >
  6. <head runat="server">
  7.     <title>Untitled Page</title>
  8. <script language="javascript" type="text/javascript">
  9.  
  10. </script>
  11. </head>
  12. <body bgcolor="#3399cc">
  13.     <form id="form1" runat="server">
  14.     <div>
  15.         &nbsp; &nbsp;&nbsp;
  16.         <table align=center  border="2" cellpadding="0" cellspacing="0" style="width:94%; height: 100%" id="TABLE1" onclick="return TABLE1_onclick()">
  17.             <tr>
  18.                 <td   colspan="100px" style="height: 286px; background-attachment: fixed; background-position-y: center; background-image: url(image/slam11.jpg); color: #ffcccc; background-repeat: no-repeat; background-color: #ffcccc; width: 161px;">
  19.  
  20.                 </td>
  21.                 <td style="background-image:url(image/nice.jpg); height: 286px; background-repeat: no-repeat; width: 539px;"></td>
  22.  
  23.             </tr>
  24.             <tr>
  25.             <td style="background-image:url(image/slam-book.gif); width: 161px; height: 43px;background-repeat: no-repeat; background-color: #ffffff;">
  26.  
  27.             </td>
  28.             <td style="background-color:#ffcccc; height: 43px; width: 539px;">
  29.                 <br />
  30.                 &nbsp; &nbsp;&nbsp;<asp:LinkButton ID="mhome1" runat="server"  BackColor="#ffcccc" ForeColor="#400040" Font-Underline="False" OnClick="mhome1_Click">Home</asp:LinkButton>
  31.                 &nbsp; &nbsp;&nbsp;
  32.  
  33.             <asp:LinkButton ID="mslams1" runat="server"  BackColor="#ffcccc" ForeColor="#400040" Font-Underline="False" OnClick="mslams1_Click">Slams</asp:LinkButton>
  34.                 &nbsp; &nbsp;&nbsp;
  35.                     <asp:LinkButton ID="mfriends1" runat="server"  BackColor="#ffcccc" ForeColor="#400040" Font-Underline="False">Friends</asp:LinkButton>
  36.                 &nbsp; &nbsp;&nbsp;
  37.  
  38.                     <asp:LinkButton ID="mmyprofile1" runat="server"  BackColor="#ffcccc" ForeColor="#400040" Font-Underline="False" OnClick="mmyprofile1_Click">My Profile</asp:LinkButton>
  39.                 &nbsp; &nbsp;&nbsp;
  40.                 <asp:LinkButton ID="mpreviewslambook1" runat="server" BackColor="#ffcccc" ForeColor="#400040" Font-Underline="False" OnClick="mpreviewslambook1_Click">Priview Slambook</asp:LinkButton>
  41.               &nbsp; &nbsp;&nbsp;
  42.                     <%--<asp:LinkButton ID="meditprofile1" runat="server" BackColor="#DAEFF5" ForeColor="#400040" Font-Underline="False">Edit Profile</asp:LinkButton>
  43.  
  44.                     <asp:LinkButton ID="mslambookinbox1" runat="server" BackColor="#DAEFF5" ForeColor="#400040" Font-Underline="False" >Slambook Inbox</asp:LinkButton>
  45.  
  46.                     <asp:LinkButton ID="meditslambook1" runat="server" BackColor="#DAEFF5" ForeColor="#400040" Font-Underline="False">Edit Slambook</asp:LinkButton>
  47.  
  48.  
  49.                --%>
  50.                      <asp:LinkButton ID="msettings1" runat="server" BackColor="#ffcccc" ForeColor="#400040" Font-Underline="False" OnClick="msettings1_Click">Settings</asp:LinkButton>
  51.                 &nbsp; &nbsp;&nbsp;
  52.  
  53.                      <asp:LinkButton ID="mlogout1" runat="server" BackColor="#ffcccc" ForeColor="#400040" Font-Underline="False">Logout</asp:LinkButton>
  54.  
  55.             </td>
  56.             </tr>
  57.             <tr>
  58.                 <td style="width: 161px; height: 327px; font-weight: bold; background-color: #ffcccc;">
  59.                     &nbsp; &nbsp; &nbsp;
  60.                 <asp:LinkButton Id="home" runat="server" Text="Home" ForeColor="#000040" OnClick="home_Click"></asp:LinkButton><br />
  61.                     <br />
  62.                     &nbsp; &nbsp; &nbsp;
  63.                     <asp:LinkButton ID="slama" runat="server"  ForeColor="#000040">Slams</asp:LinkButton><br />
  64.                     <br />
  65.                     &nbsp; &nbsp; &nbsp;
  66.                     <asp:LinkButton ID="friends" runat="server"  ForeColor="#000040">Friends</asp:LinkButton><br />
  67.                     <br />
  68.                     &nbsp; &nbsp; &nbsp;
  69.                     <asp:LinkButton ID="myprofile" runat="server"  ForeColor="#000040" OnClick="myprofile_Click">My Profile</asp:LinkButton><br />
  70.                     <br />
  71.                     &nbsp; &nbsp; &nbsp;
  72.                     <asp:LinkButton ID="editprofile" runat="server" ForeColor="#004040" OnClick="editprofile_Click">Create Profile</asp:LinkButton><br />
  73.                     <br />
  74.                     &nbsp; &nbsp;&nbsp;
  75.                     <asp:LinkButton ID="slambookinbox" runat="server" ForeColor="#000040">Slambook Inbox</asp:LinkButton><br />
  76.                     <br />
  77.                     &nbsp; &nbsp;&nbsp;
  78.                     <asp:LinkButton ID="editslambook" runat="server" ForeColor="#000040" OnClick="editslambook_Click">Edit Slambook</asp:LinkButton><br />
  79.                     <br />
  80.                     &nbsp; &nbsp;&nbsp;
  81.                     <asp:LinkButton ID="previewslambook" runat="server" ForeColor="#000040" OnClick="previewslambook_Click">Priview Slambook</asp:LinkButton><br />
  82.                     <br />
  83.                     &nbsp; &nbsp;&nbsp;
  84.                     <asp:LinkButton ID="seachefriend" runat="server" ForeColor="#000040">Search Friends</asp:LinkButton><br />
  85.                     <br />
  86.                     &nbsp; &nbsp; &nbsp;
  87.                     <asp:LinkButton ID="invitefriend" runat="server" ForeColor="#000040">Invite Friends</asp:LinkButton><br />
  88.                     <br />
  89.                     &nbsp; &nbsp;&nbsp;
  90.                      <asp:LinkButton ID="settings" runat="server" ForeColor="#000040" OnClick="settings_Click">Settings</asp:LinkButton><br />
  91.                     <br />
  92.                     &nbsp; &nbsp;&nbsp;
  93.                      <asp:LinkButton ID="logout" runat="server" ForeColor="#000040" OnClick="logout_Click">Logout</asp:LinkButton><br />
  94.                     <br />
  95.                     <br />
  96.                     <br />
  97.                     <br />
  98.                     <br />
  99.                     <br />
  100.                     <br />
  101.                     <br />
  102.                     <br />
  103.                     <br />
  104.                     <br />
  105.                     <br />
  106.                     <br />
  107.                     <br />
  108.                     <br />
  109.                     <br />
  110.                     <br />
  111.                     <br />
  112.                     <br />
  113.                     <br />
  114.                     <br />
  115.                     <br />
  116.                     <br />
  117.                     <br />
  118.                     <br />
  119.                     <br />
  120.                     <br />
  121.                     <br />
  122.                     <br />
  123.                     <br />
  124.                     <br />
  125.                     <br />
  126.                     <br />
  127.                     <br />
  128.                     <br />
  129.                     <br />
  130.                     <br />
  131.                     <br />
  132.                     <br />
  133.                     <br />
  134.                     <br />
  135.                     <br />
  136.                     <br />
  137.                     <br />
  138.                     <br />
  139.                     <br />
  140.                     <br />
  141.                     <br />
  142.                     <br />
  143.                     <br />
  144.                     <br />
  145.                     <br />
  146.                     <br />
  147.                     <br />
  148.                     <br />
  149.                     <br />
  150.                     <br />
  151.                     <br />
  152.                     <br />
  153.                 </td>
  154.  
  155.                 <td style="height: 327px; background-color:#fff5ee; width: 539px;">
  156.         <asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
  157.             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
  158.             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
  159.             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  160.             &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  161.             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  162.             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  163.             <br />
  164.             <br />
  165.             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  166.             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  167.             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  168.             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  169.             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  170.             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  171.             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  172.             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  173.             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  174.             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  175.             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  176.             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  177.             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  178.             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  179.             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  180.             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  181.             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
  182.             <br />
  183.             <br />
  184.             <br />
  185.             <br />
  186.             <br />
  187.             <br />
  188.             <br />
  189.             <br />
  190.             <br />
  191.             <br />
  192.             <br />
  193.             <br />
  194.             <br />
  195.             <br />
  196.             <br />
  197.             <br />
  198.             <br />
  199.             <br />
  200.             <br />
  201.             <br />
  202.             <br />
  203.             <br />
  204.             <br />
  205.             <br />
  206.             <br />
  207.             <br />
  208.             <br />
  209.             <br />
  210.  
  211.  
Sep 7 '10 #1
7 1390
Frinavale
9,735 Expert Mod 8TB
The background image???
Sep 7 '10 #2
Expand|Select|Wrap|Line Numbers
  1. background-image:url(image/slam-book.gif
this one in above code
Sep 7 '10 #3
Frinavale
9,735 Expert Mod 8TB
Some browsers may not be able to handle .gif files (IE6 for example). Consider converting this image into a .jpg instead (you will lose any transparency in the image if you do)

-Frinny
Sep 7 '10 #4
Actually at some pc the content in one td(i.e. Image) is properly shown in centre but at some other it shows at very low position
Sep 8 '10 #5
Frinavale
9,735 Expert Mod 8TB
Try using CSS debugging tools to help you figure out what is going on.

If the image is strange in FireFox, download FireBug (an addon for FireFox which is a tool for debugging CSS and JavaScript).

If the image is strange in IE then you can try using the built in tools that come with IE8 (these tools work even if you are running in "IE-7 mode").

Other browsers come with their own tools.

These tools let you modify the CSS to change so that you can determine what you need to do to change the CSS to get the desired look.

-Frinny
Sep 8 '10 #6
just try this way to give image path in background..

background-image: url(../image/slam-book.gif);

u can change all image url on that pages like above examples..
Sep 9 '10 #7
What browsers don't support GIF? I think IE6 just has problems with transparencies in gifs.

There are some legal reasons not to use GIF. Mainly some compression algorithm in GIF is proprietary. Because of that PNG was created. For simple pictures you should prefer PNG or GIF.

Like Frinny said these is probably some kind of browser specific issue and you need to create css that targets whatever browsers seperately or modify the markup so it looks ok in all browsers.

A site I used to read a lot when I did web development stuff back in the day was quirksmode.

http://www.quirksmode.org/
Sep 23 '10 #8

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

Similar topics

1
by: Steve | last post by:
Hello, Recently I have installed and set up a brand new server: IBM xSeries eserver 306 Windows Server 2003 Standard SP1 IIS6 PHP 5.0.4 (using ISAPI module) I am decently familiar with...
0
by: | last post by:
I have this question for homework in an intro perl class, I was hoping for some quick help on this please...here is the question Using the Perl programming language, please prepare the following...
1
by: Paul Mendez | last post by:
I really need your assistance. I tried what you gave me and it did not work and I am thinking that the formatting that showed up when u saw my posting might have confused you. So I made sure to...
0
by: mortb | last post by:
Hi I've created an image control of my own as a decendant of asp:image My problem is that when rendered on the production server (not in my development environment though) this control renders an...
1
by: arielCo | last post by:
Hello, I'm attempting to use proc_open to launch, control and log CLI applications from my scripts, but my first tests are disheartening: <pre> <?php $descriptorspec = array( 0 =>...
1
by: madlen | last post by:
I have a list of sites from where I want to scrap the data from.. I can pay you to make some scripts for me. I have already bought some scripts for yellowpages but I want to add some more categories...
2
by: dusk | last post by:
Hi, I have a page with lots of hidden divs which are revealed based on choices made at each 'layer'. So I've used naming convention which represents the order in which each div becomes...
1
by: nivass | last post by:
Hi I am new to C# and have loaded the image in the picture box using menustrip and have displayed some text using picturebox_Paint and label. now i tried to save the image (with image and text) using...
1
by: texastoast | last post by:
I'm in a class for Intro to Visual Basic and I just wanted some ideas on a final project. The professor said that he doesn't want anything too basic like a calculator or a stop light. Also, he...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.