Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 27th, 2008, 05:40 PM
Authorized User
Join Date: Apr 2008
Location: , , .
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP.NET 3.5 Advanced CSS Question

Hi Again,

I thought I would put this into another post to seperate it.

3 Questions (building on the knowledge from your book):

I'm looking at your website Imar ( imar.spaanjaars.com ) and I see that you have the rounded corners for your horizontal navigation. Now my question is, when I was doing it before learning ASP.NET, I would use the sliding doors technique, essentially placing the images such as
.nav a {
 background: url(images/left_corn.gif) no-repeat top-left;

Is there anyway to do that with asp.net menu controls? I'm looking through the properties window and maybe I'm just blind but I can't seem to find anywhere to attach an image. If there isn't a way through the properties window, would I just do it the same way as before?

2) How do you achieve even width drop down menus using the menu control that line up with the static root elements for the navigational structure? In normal HTML/CSS/JAVASCRIPT programming you would set the a elements to block and then you could adjust the width? How do you achieve the same thing with these controls?

3) You mentioned in Chapter 7, using CSS friendly adapters. How do you go about using them? They give you a template to use but what if i don't want to use that template and want to use another? How do you go about it?

Thanks for your time. I'm pretty new to the Microsoft world as you can tell, but from seeing what you are capable of, I'd say its far superior to PHP or any other server side programming language.


Reply With Quote
  #2 (permalink)  
Old April 28th, 2008, 03:58 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts

Hi again,

1) My "rounded corners" are the easiest ever: http://imar.spaanjaars.com/Images/Menu/FAQsNormal.gif ;)

The Menu control exposes a number of control Styles as demonstrated in chapter 7. The style has a CssClass property that you can use to define classes in external style sheets.

2) If I understand you correctly, the answer is the same as 1): use CssClass and assign a class.

3) Choose File | New Website | My Templates | Tutorial on ASP.NET CSS Friendly Control Adapters to set up a tutorial site. This site serves the following four purposes:

1) Help you understand how the control adapter architecture works in ASP.NET 2.0.
2) Provide you with a set of sample adapters that are CSS friendly.
3) Enable you to immediately begin using these sample adapters in your own sites.
4) Get you started building your own custom control adapters.

Hope this helps,


Imar Spaanjaars
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS anomolies in ASP.NET David_0223 ASP.NET 2.0 Basics 1 March 27th, 2008 03:06 PM
CSS for XML in ASP.NET toddw607 CSS Cascading Style Sheets 1 July 19th, 2007 01:34 PM
Advanced Themes, Skins and CSS adam_kahtava ASP.NET 2.0 Professional 1 April 3rd, 2007 07:25 PM
Looking for advanced CSS dimo414 BOOK: Professional CSS: Cascading Style Sheets for Web Design 0 May 29th, 2006 10:57 PM

All times are GMT -4. The time now is 11:16 PM.

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