setting css properties of items

  • Thread starter Thread starter Brian Henry
  • Start date Start date
B

Brian Henry

I have my styles.css file filed with the styles used for the site, now how
would i specify a control to have a certain style id from that styles.css
file in code?

i thought mycontrol.style would do it but that seems to only be making one
at a time changes, i want to be able to say this control is using the style
ControlStyle1B from styles.css and if it's not validated property I want to
use ControlStyle1F and so on.. how would i programaticly set the style id
form the css file? thanks
 
Brian said:
I have my styles.css file filed with the styles used for the site,
now how would i specify a control to have a certain style id from
that styles.css file in code?

i thought mycontrol.style would do it but that seems to only be
making one at a time changes, i want to be able to say this control
is using the style ControlStyle1B from styles.css and if it's not
validated property I want to use ControlStyle1F and so on.. how would
i programaticly set the style id form the css file? thanks

HTML Control:
myControl.Attributes("class") = "ControlStyle1B"

Web Control:
myControl.CssClass="ControlStyle1B"
 
thats the one i was looking for, thanks

Jos said:
HTML Control:
myControl.Attributes("class") = "ControlStyle1B"

Web Control:
myControl.CssClass="ControlStyle1B"
 
Back
Top