... in just one cell of a table? I can do a global change on the page by redefining html 'a' element colors in a .css file andlinking it, but that changes the link colors everywhere, including those in the standard asp:Menu components. The contents of one cell on my master page contains the body of the client pages. I'd like to redfine 'a' elements for just that one cell, so it affects the body of the client pages but not the menus and everything else. Any clues for the clueless? Post Edited (Harvey Birdman) : 1/16/2008 11:59:29 PM GMT
I've got a sneaking suspicion you want to do this inside grid rows... If so I have done that, you just need to encapsulate styles with your values. As an example, I'll still declare a style section in the page header: #MyDataGrid { text-align:center; margin:auto; width:100%; yada yada... } Then I use any style I want when the DataGrid <ItemTemplate> renders. Need something more specific? Was my assumption off?
Hate to be the bearer of bad news... No, not in a grid. Good bid, though. I'm looking at Css Control Adapters (check out the downloads at asp.net). If I can override the change in the menus that happens when I apply the style to the whole page, that would be an acceptable workaround. I'd prefer to applythe change to just the area I want, rather than applying it page-wide and then overriding it in the menus... but such are the compromises one makes when working with pre-defined frameworks. Know what I mean?
Hey, Mark - You were right in your first snippet. The correct way to define the A tagin a named elementwas illustrated there - it's the same as it is in my old ASP stuff, too, I just wasn't thinking when I was looking at it. As they say where I used to live in Mass. - 'light dawns on Marble Head...' Post Edited (Harvey Birdman) : 1/17/2008 5:20:55 AM GMT
This is the "A" section of the CSS I'm using for my Master Pages (ASP.NET) and my classic ASP pages: You can see it in action: http://sdknuts.net
Hi, Mark - Like I said, I know how to doit just the way you're describing. How do I apply those changes to just one cell in a table, though? Any idea? Since it's a basic HTML element, defining a css class and then assigning that class to the table doesn't help -it's not aclass-based style element. At least as far as I know...
My kids watch some fun stuff on PBS and... There are these characters who sing a very cool song... "What's gonna work? Teamwork!"