Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

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, ...DNN Search token adding a space?DNN Search token adding a space?
Previous
 
Next
New Post
3/10/2009 11:19 AM
 

How can this space be removed from the DNN Search token?

<span id="dnn_dnnSEARCH_ClassicSearch">
  <input name="dnn$dnnSEARCH$txtSearch" type="text" maxlength="255" size="20" id="dnn_dnnSEARCH_txtSearch" class="NormalTextBox" onkeydown="return __dnn_KeyDown('13', ' __doPostBack(%27dnn$dnnSEARCH$cmdSearch%27,%27%27)', event);" />&nbsp;
  <a id="dnn_dnnSEARCH_cmdSearch" class="SearchBtn" href=" __doPostBack('dnn$dnnSEARCH$cmdSearch','')"><img src='/Portals/NuEra/Skins/NuEra/images/search.gif' border='0' /></a>
</span>

Thanks

 
New Post
3/11/2009 6:40 AM
 

<dnn:SEARCH runat="server" CssClass="SearchBtn" id="dnnSEARCH" Submit="<img src='/search.gif' border='0' />" showWeb="False" showSite="False" />

With this token it adds this space as per which I don't want shown in this skin... but it goes to here:

.../SearchResults/tabid/1779/Default.aspx?Search=xyz

If I just add the code to the skin as previously outlined but with the space removed which is what i want - then it won't go to this page but just reloads the current page.

Is there a way to do this, and to have better control over the input and the button as separate items?

 
New Post
3/11/2009 7:03 AM
Accepted Answer 

You can play with setting the search classes to a font size of 1px which virtually eliminates the space.  Try setting the "dnn_dnnSEARCH_ClassicSearch" in the skin.css to font-size: 1px and see if that works.  You may have to play with the search classes there to get it working.  You'll just have to be certain to set the search input class to the proper font size to override the 1px setting, too.  This approach has worked for me in the past.


JOHN GIESY
DotNetNuke Hosting Expert

DotNetNuke 7 Hosting $70 /year
DNN4Less.com Team DotNetNuke  

New Post
3/11/2009 8:03 AM
 

Thanks Rick

I actually used font-size: 0px... which sorts it in FF, but IE and Safari appear as though it's 1px so a slightly odd spacing (it's pushing the search button down).  Will accept that for now so thanks!

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DNN Search token adding a space?DNN Search token adding a space?


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