473,396 Members | 2,010 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,396 software developers and data experts.

CSS problem

18
I have a menu problem. This menu is a llayer where it contain 5 hyperlink controls and between each hyperlink there is an image control. Unfortunately it works perfect in IE but not in Firefox.

Below is the CSS:
Expand|Select|Wrap|Line Numbers
  1. #topMenu
  2. {
  3.  
  4.     position: relative;
  5.     right: 2px;
  6.     top: 47px;
  7.     text-align: right;
  8.     height: 41px;
  9. }
  10.  
Below is the code in HTML:
Expand|Select|Wrap|Line Numbers
  1.  
  2.     <div id="topMenu">
  3.              <asp:HyperLink CssClass="mainMenuLink" ID="lnkBtn1" runat="server" >LinkButton</asp:Hyperlink><asp:Image ID="Image1" CssClass="imageLink" runat="server" Height="41px" ImageAlign="AbsBottom" /><asp:HyperLink ID="lnkBtn2" CssClass="mainMenuLink" runat="server">LinkButton</asp:HyperLink><asp:Image ID="Image2" CssClass="imageLink" runat="server" Height="41px" ImageAlign="AbsBottom" /><asp:HyperLink ID="lnkBtn3" CssClass="mainMenuLink" runat="server">LinkButton</asp:HyperLink><asp:Image ID="Image3" CssClass="imageLink" runat="server" Height="41px" ImageAlign="AbsBottom" /><asp:HyperLink ID="lnkBtn4" CssClass="mainMenuLink" runat="server">LinkButton</asp:HyperLink><asp:Image ID="Image4" CssClass="imageLink" runat="server" Height="41px" ImageAlign="AbsBottom" /><asp:HyperLink ID="lnkBtn5" CssClass="mainMenuLink" runat="server">LinkButton</asp:HyperLink>
  4.                       </div>
  5.  
PLease Help ASAP thx!!
Jan 4 '08 #1
4 1564
I have a menu problem. This menu is a llayer where it contain 5 hyperlink controls and between each hyperlink there is an image control. Unfortunately it works perfect in IE but not in Firefox.

Below is the CSS:
Expand|Select|Wrap|Line Numbers
  1. #topMenu
  2. {
  3.  
  4.     position: relative;
  5.     right: 2px;
  6.     top: 47px;
  7.     text-align: right;
  8.     height: 41px;
  9. }
  10.  
Below is the code in HTML:
Expand|Select|Wrap|Line Numbers
  1.  
  2.     <div id="topMenu">
  3.              <asp:HyperLink CssClass="mainMenuLink" ID="lnkBtn1" runat="server" >LinkButton</asp:Hyperlink><asp:Image ID="Image1" CssClass="imageLink" runat="server" Height="41px" ImageAlign="AbsBottom" /><asp:HyperLink ID="lnkBtn2" CssClass="mainMenuLink" runat="server">LinkButton</asp:HyperLink><asp:Image ID="Image2" CssClass="imageLink" runat="server" Height="41px" ImageAlign="AbsBottom" /><asp:HyperLink ID="lnkBtn3" CssClass="mainMenuLink" runat="server">LinkButton</asp:HyperLink><asp:Image ID="Image3" CssClass="imageLink" runat="server" Height="41px" ImageAlign="AbsBottom" /><asp:HyperLink ID="lnkBtn4" CssClass="mainMenuLink" runat="server">LinkButton</asp:HyperLink><asp:Image ID="Image4" CssClass="imageLink" runat="server" Height="41px" ImageAlign="AbsBottom" /><asp:HyperLink ID="lnkBtn5" CssClass="mainMenuLink" runat="server">LinkButton</asp:HyperLink>
  4.                       </div>
  5.  
PLease Help ASAP thx!!
From what I see, it looks like you have the "HyperLink" optimized for "ASP" (Active Server Pages) which does not work with Mozilla Firefox. Why not replace the "<asp:" with a basic HTML "<a href" for the image and hyperlinks? What software are you using to create the web pages?
Jan 4 '08 #2
drhowarddrfine
7,435 Expert 4TB
Most people don't use ASP.NET so posting asp code doesn't help. You need to post the generated html or give a link.
Jan 4 '08 #3
malmus
18
I am using VS.Net 2005. I take you adviceand replace them to see what happens thx
Jan 4 '08 #4
I am using VS.Net 2005. I take you adviceand replace them to see what happens thx
I see. Microsoft VS.Net does not play nice with other products and browsers. It is optimized code for Microsoft based applications. Microsoft even has some "proprietary HTML" which only Microsoft products, such as IE, can process.

If you want cross-platform compatibility you will want to look at other Web Page Editors or learn to write in basic HTML, PHP and CSS code. It's not too hard until you want to get really fancy.
Jan 4 '08 #5

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

Similar topics

11
by: Kostatus | last post by:
I have a virtual function in a base class, which is then overwritten by a function of the same name in a publically derived class. When I call the function using a pointer to the derived class...
9
by: Sudesh Sawant | last post by:
Hello, We have an application which communicates using remoting. There is a server which is a Windows Service. The server exposes an object which is a singleton. The client is a Web Application...
117
by: Peter Olcott | last post by:
www.halting-problem.com
0
by: James Griffiths | last post by:
Here is a report I've written about a printing problem that is being experienced by a particular company for whom I had developed a A97 system. After upgrading to Win XP and AXP, some printing...
18
by: Ian Stanley | last post by:
Hi, Continuing my strcat segmentation fault posting- I have a problem which occurs when appending two sting literals using strcat. I have tried to fix it by writing my own function that does the...
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
2
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was...
9
by: AceKnocks | last post by:
I am working on a framework design problem in which I have to design a C++ based framework capable of solving three puzzles for now but actually it should work with a general puzzle of any kind and I...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
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...
0
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...
0
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,...

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.