473,770 Members | 2,781 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

98 New Member
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 1409
Frinavale
9,735 Recognized Expert Moderator Expert
The background image???
Sep 7 '10 #2
jagdeep gupta
98 New Member
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 Recognized Expert Moderator Expert
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
jagdeep gupta
98 New Member
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 Recognized Expert Moderator Expert
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
talhakarkun
12 New Member
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
ZiadElmalki
43 New Member
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
1653
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 installing and configuring PHP and have
0
1802
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 script: Description Given a table 'mailer' that has a column: emailaddr varchar(255) Create a new table to hold a count of email addresses by their domain name limited to those domains that have at least 100 addresses in the list and add a...
1
1718
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 align it correctly this time. Ok... this is what I want it to get done. Where the X and Y are, I need to have showing is the values, $250.00 and $216.00, respectively. What it needs to do is... go back two months from the current date that they...
0
1252
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 empty alt attribute in the resulting image tag. - Not much of a problem you might think, but the image is contained in a table cell where the title attribute is set and thus the image's empty alt tag overrides this title tag. Has anyone else had...
1
2306
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 => array("pipe", "r"),
1
1669
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 to my database and I don't know to modify the script that I have from the coders. they are made in python (i can modify them only to change the category from where i want the data to be extracted, but if I change the website they don't work and I...
2
2148
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 visible - 'a100', 'a200', 'a300' for the first 'layer'; 'b100', 'b200', 'b300' for the second; 'c100, 'c200', 'c300' for the third ... etc I'm writing the javascript functions to hide and show the appropriate divs and its getting out of hand pretty...
1
2581
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 save event from the menustrip. in the saved location the file shows as no preview available and when i tried to open the file it shows out of memory. can any one say where I am going wrong.... my codes private void...
1
1139
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 hasn't taught us much about visual basic so I don't know what he wants us to do. Any ideas will be greatly appreciated.
0
9591
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10228
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
10057
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...
0
9869
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8883
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...
1
7415
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6676
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
5449
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2816
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.