Re: CSS
- From: "Vinay Khaitan" <vkhaitan@xxxxxxxxx>
- Date: Fri, 7 Nov 2008 18:31:26 +0530
All the CSS can be applied to any of tag produced by asp.net
Just keep in mind some tricks.
The asp:Menu generates so much code, but it also gives ID of content
elements at design time. Those are asp.net IDs .
They are converted at runtime to html id attribute. That attribute is
Control.ClientID .
You can use this id to write CSS . e.g.
#<%#Contro.ClientID %> { background-color: red }
also, you can directly add class or cssclass attribute to most of the
controls.
--
Vinay Khaitan
[Windows Forms Layout Control]
http://www.smart-components.com/
----------------------------------------------------------------
"Mike Gleason jr Couturier" <nospam@xxxxxxxxxxxxxxx> wrote in message
news:uDo9JUCQJHA.764@xxxxxxxxxxxxxxxxxxxxxxx
"gerry" <germ2@xxxxxxxxxxxxxxxx> a écrit dans le message de news:
%23QLP1OCQJHA.3932@xxxxxxxxxxxxxxxxxxxxxxx
imo - for any .net controls the only thing they need to know is the
CssClass attribute.
Yes but they complain that, let's say, the asp:Menu generates plenty of
HTML they never heard of...
At the end, while writing this, I see that maybe they only are too lazy to
look at the HTML produced by the dynamic pages!
Mike
.
- References:
- Prev by Date: Re: Javascript alert
- Next by Date: Re: Javascript alert
- Previous by thread: Re: CSS
- Next by thread: RE: CSS
- Index(es):
Relevant Pages
|