Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Reply
Highlighted
Tuned Listener
Posts: 67
Registered: ‎11-29-2011

Style overwrite issue

Hi,

 

I have a textbox in my ContactDetails page and I have added a customized css class. But it seems the style is not applied. The page source code is as below

 

  <div class="textcontrol" >
<input name="ctl00$MainContent$ContactDetails$QFTextBox4" type="text" value="2/3/2012 1:50 PM" id="ctl00_MainContent_ContactDetails_QFTextBox4" class="label_style_textbox" />
  </div>

As above, I have defined a class label_style_textbox. But it is not applied to the textbox. It seems it always picks up the textcontrol calss.

 

Could anyone give me any help?

 

Thanks a lot!

 

Highlighted
Tuned Listener
Posts: 67
Registered: ‎11-29-2011

Re: Style overwrite issue

here is my style defined

 

.label_style_textbox input
{
    border: 1px solid Red;
    color: Red;
}

Highlighted
Employee
Posts: 51
Registered: ‎12-16-2011

Re: Style overwrite issue

Remove input from your selector and it should be OK.

 

.label_style_textbox
{
    border: 1px solid Red;
    color: Red;
}