PermaLink Making ASP.Net Controls CSS Friendly11/25/2008 02:19 AM
I was trying to figure out how to make a vertical asp:menu stop taking up a line by itself and sit next to other elements and found the CSS Control Adapters for ASP.Net 2.0.  The asp:menu control emits <table> tags by default instead of <ul><li> tags that are more CSS friendly, but these adapters fix this.  Controls should never emit <table> tags or inline styles, so this is a nice thing to see from MS.
Unfortunately, the end result looks totally different from the non-CSS friendly version.  It also also sits on a line by itself...grrr.
p.s., one important thing to note is that the CSSFriendlyAdapters.browser file needs to go into a subfolder named App_Browsers in your project.  There are quite a few articles on the web that get the spelling of this wrong.
Comments :v
No comments.
Start Pages
RSS News Feed RSS Comments Feed CoComment Integrated
The BlogRoll
Calendar
April 2024
Su
Mo
Tu
We
Th
Fr
Sa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Search
Contact Me
About Ken
Full-stack developer (consultant) working with .Net, Java, Android, Javascript (jQuery, Meteor.js, AngularJS), Lotus Domino