CSS

  • Thread starter Thread starter Mike Gleason jr Couturier
  • Start date Start date
M

Mike Gleason jr Couturier

Hi,

Our development team consist of course of programmers and those who do CSS
integration.

I'm afraid our ppl who do CSS, are purist that only did HTML/CSS and they
don't know the HTML ouput equivalent of let's say a asp:ImageButton tag....

Is there any resources or books to help our team of CSS guys integrate .NET
controls?

Thanks!
 
imo - for any .net controls the only thing they need to know is the CssClass
attribute.
 
gerry said:
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
 
Are you talking about runtime or designtime ?

The runtime html is all standard html - what HTML can they have not heard of
? so I assume you are talking about design time.

google for "asp.net css styling menu control"

You might want to look into the css adapters for more css friendly output.
 
this is the main problem with the asp webcontrols. they abstract the html,
and may change the rendered html based on browser agent or even a service
pack. also some of the controls render a span to which the class will be
attached, and not the underlying html element.

you can view source to see the html rendered, but be sure to do it with
several different browsers, and recheck after every sevice pack install.

if you are going to use css and want design control over your site, do not
use the webcontrols (repeaters ok), use the html controls instead.

also many of the controls can be replaced with simple html. your css
designers can probably do flyout and tree menus if you just render the menu
as a standard list: <ol><li>

note: warn you designers to not use id's for css selectors as these are not
reliable with asp.net controls

-- bruce (sqlwork.com)
 
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.
 
Yes thanks I know all that, but the CSS guys are like little girls, we have
to take their hands...
I just wondered if any web sites was dedicated to the integration of HTML
with .NET

Thanks guys
 
Back
Top