Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 March 27th, 2008, 12:45 PM
Authorized User
 
Join Date: Nov 2006
Posts: 93
Thanks: 0
Thanked 1 Time in 1 Post
Default CSS anomolies in ASP.NET

Hi, I'm new to ASP.NET so please forgive my ignorance.

I am working on a little web application and want to control
the look and feel of all of the pages in the application. To do
this I set up a CSS file to be refereced by all of the pages.
The only problem I am having so far is setting the width of anchor
tags. I used:

a.menu {text-decoration:none;
  width:130px;
  border:solid 1px black}

where the anchors I use in my menu have their class set to "menu".
This works perfectly with an HTML page, but the ASP.NET page
ignores the width attribute. It does observer the text-decoration
and border attributes. This makes all of my menu selection boxes
a different width, very ugly.

ASP.NET does observe the "width" attribute other places. Is there
any explanation why it ignores width in an anchor tag?

Thanks,
Dave

What you don't know can hurt you!
__________________
What you don\'t know can hurt you!
 
Old March 27th, 2008, 03:06 PM
Authorized User
 
Join Date: Sep 2007
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Maybe your HTML page is serving different DOCTYPE than ASP.NET page? That could explain the difference.





Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET 3.5 Advanced CSS Question aspcoder BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 April 28th, 2008 03:58 AM
CSS for XML in ASP.NET toddw607 CSS Cascading Style Sheets 1 July 19th, 2007 01:34 PM
CSS for XML in ASP.NET toddw607 ASP.NET 2.0 Basics 3 June 19th, 2007 09:29 AM
CSS and ASP.net conflict joecoleman ASP.NET 2.0 Basics 2 June 1st, 2006 07:55 AM
Styles.CSS in ASP.NET rajen CSS Cascading Style Sheets 2 July 22nd, 2005 04:54 PM





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