Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 25th, 2009, 05:28 PM
Authorized User
 
Join Date: Apr 2008
Posts: 26
Thanks: 6
Thanked 0 Times in 0 Posts
Default Wrox Blog - Browser Issues

Hi,

The blog website I am working on is messed-up in Firefox. I added following to main default.aspx. But no matter what changes I do to firefox.css it doesn't pick up by the Firefox browser. It seems the following code does not trigger in Firefox browser. What am I doing wrong?


<!--[if Firefox]><link runat="server" rel="stylesheet" href="~/App_Themes/firefox.css" type="text/css" />
<![endif]-->

<!--[if IE ]>
<link runat="server" rel="stylesheet" href="~/App_Themes/maincss.css" type="text/css"/>
<![endif]-->
 
Old February 25th, 2009, 06:17 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Conditional comments, using the <!--[ ... ]> syntax are an IE-only thing and will have no effect on other browsers. In your case, Firefox sees the text as a comment and ignores it.

What's the need to distinguish between browsers? Isn't there a cross browser solution available to your problem?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
norman001 (March 2nd, 2009)
 
Old March 2nd, 2009, 05:48 PM
Authorized User
 
Join Date: Apr 2008
Posts: 26
Thanks: 6
Thanked 0 Times in 0 Posts
Default Wrox Blog - Browser Issues

I found out my problem in CSS file. Width needs to be declared specially when creating tab style menus..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Wrox Blog in C# madAlan BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 22 June 12th, 2011 04:09 AM
Wrox Blog Problem ddormody BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 4 September 27th, 2008 09:38 AM
Wrox Blog tblessed23 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 16 May 14th, 2007 04:08 PM
Wrox Blog: Viewing individual blog entries Tawanda BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 7 May 7th, 2007 12:06 PM
FCKeditor in wrox blog nakori BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 June 11th, 2006 02:48 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.