Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Search input styleSearch input style
Previous
 
Next
New Post
5/16/2007 2:44 PM
 

I'm wondering how I go about changing the style of the search input module such as the width of the textbox?  Thanks,

Scott W.

 
New Post
5/16/2007 4:17 PM
 

You will have to use CSS in the skin for that, I think NormalTextBox is the class for the textbox, but you could also check the page source to verify

 
New Post
5/16/2007 4:58 PM
 

Here is the page's source:

<input name="dnn$ctr414$SearchInput$txtSearch" type="text" maxlength="200" size="35" id="dnn_ctr414_SearchInput_txtSearch" class="NormalTextBox" style="width:150px;" />

It has an element ID, it has a class and it has an inline style.  I'm not sure what's going on.  My skin's CSS file doesn't even have a class for NormalTextBox.

Below is the the search input section in my skin's CSS:

/**/

.SearchButton

{background: transparent;padding: 0px 0px 12px 49px; cursor: hand; font-size:1px;margin: 0px;#dnn_dnnSEARCH_txtSearch { text-align: left; vertical-align: middle; height:12px; background: transparent; width: 107px; color: #333333; padding: 0px 2px 2px 2px; border: 0px solid #FFFFFF; cursor:text; font-size: 11px; margin: 0px;}

.bclangfontsize

 

 

 

}

{font-size: 10px;color: #000306;background-color: #DFE3E6;

.bctoppad

 

}

{padding-top: 8px;

.bctoppad01

 

}

{padding-top: 12px;

/**/

 

 

 

 

 

}

 

 
New Post
5/16/2007 6:54 PM
 

Hmmm.. If it has an inline style you cannot overwrite this with any of the CSS files since inline styles have the highest priority.

This is not the case in the default DNN skin so I guess this has been added in the skin's ascx file and you will have to remove it there...

 
New Post
5/17/2007 1:17 PM
 

Scott,

Try this class:

#dnn_dnnSEARCH_txtSearch.NormalTextBox

It should work!

Cuong Dang
Engage Software
St. Louis, MO
314.966.4000



The leading provider of DotNetNuke support, training and custom development.


Cuong Dang
Co-founder: Enliven, dnnGallery
LinkedIn | Twitter
I'm the author of DNN and Web Standards Wrox Blox

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Search input styleSearch input style


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out