470,567 Members | 1,518 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,567 developers. It's quick & easy.

asp:Panel issues with FF & Netscape.

1
Hi Guys,

I like to know if there is any better solution to this issue.

I am a front end developer using CSS and asp.net technologies

I have a .net page and I am using an external CSS file.
After adding the following code

What I see is that its fine on IE 6 & 7 but on firefox and netscape the 2 links given below shift to the center.

<asp:Panel id="TrailMarker" CssClass="TrailMarker" Runat="server">
<asp:HyperLink id="lnkAboutUs" CssClass="TrailMarker" runat="server">About Us</asp:HyperLink>&gt;
<asp:HyperLink id="Hyperlink1" CssClass="TrailMarker" runat="server">Our Profile</asp:HyperLink>
</asp:Panel>
The CSS class for this is
div.TrailMarker{
padding: 0px;
padding-left: 2%;
margin-top: 0px;
text-align: left;
vertical-align:top;
height: 20px;
background-color: #333333;}

I found out a fix on it, by adding the inline styles but my client wants external reference only.

My fix is as follows - look at the inline style I embedded
<asp:Panel id="TrailMarker" CssClass="TrailMarker" Runat="server" style="padding: 0px;padding-left: 2%;margin-top: 0px;text-align: left;vertical-align:top;height: 20px;background-color: #333333;">
<asp:HyperLink id="lnkAboutUs" CssClass="TrailMarker" runat="server">About Us</asp:HyperLink>&gt;
<asp:HyperLink id="Hyperlink1" CssClass="TrailMarker" runat="server">Our Profile</asp:HyperLink>
</asp:Panel>

Somehow my client wants an external source (the reason for this while printing the page all these inline style cause shifting of text and increase/decrease in font size.)
Can anybody please give me a better solution.

Thanks.

Abdul Haq
Sep 19 '06 #1
0 2480

Post your reply

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

Similar topics

1 post views Thread by Harry | last post: by
6 posts views Thread by sklett | last post: by
2 posts views Thread by Mark Rae | last post: by
1 post views Thread by Pietro | last post: by
1 post views Thread by Gary Coutts | last post: by
2 posts views Thread by Darren Carter | last post: by
1 post views Thread by livre | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.