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, ...Hardcode in Search linkHardcode in Search link
Previous
 
Next
New Post
7/19/2007 3:37 PM
 

dnn-fellows

I don't know why there are so many hardcodes in dnn... (I've said that before... in all the modules...)
For instance the Search link...
I've a table cell where I've put in the search control.
I've set the following css code for that.

HTML-code
<td class="W196 VeAlMi HoAlLe Srch" id="Srch"><dnn:SEARCH runat="server" id="dnnSEARCH" Submit="<br />Zoek&nbsp;&raquo;" CssClass="SrchLink" /></td>

CSS-code
.W196 {width:196px;}
.VeAlMi {vertical-align:middle;}
.HoAlLe {text-align:left;}
.SrchLink {color:#e5e5e5;}
a.SrchLink:link {color:#e5e5e5;}
a.SrchLink:visited {color:#e5e5e5;}
a.SrchLink:hover {color:#ffffff; text-decoration:none; cursor:hand; cursor:pointer;}
a.SrchLink:active {color:#e5e5e5; text-decoration:none;}
#Srch .NormalTextbox {width:100%; color:#3f3f3f; height:16px; border:#cccccc 1px solid; font-size:10px; vertical-align:middle; background-color:#f2f2f2;}

How does this code rendered?

<td class="W196 VeAlMi HoAlLe Nwrp Srch" id="Srch"><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="SrchLink" href=" __doPostBack('dnn$dnnSEARCH$cmdSearch','')"><br />Zoek »</a>

</td>

As you can see I wanted that the text Zoek » is set on the following line...
What did I see?
First there is a &nbsp; between the NormalTextbox and the text Zoek »
Because of the fact that the NormalTextbox is set to 100% (to fill the cell of the table)
In IE I've a blanco line between the NormalTextbox and the text Zoek » (of course because that extra blanco space &nbsp;)
In FF I've not a blanco line between the NormalTextbox and the Text Zoek »
As you can see also the </td> is set not after Zoek »</a> but two lines under that... (but I think that gives no extra white spaces).

Why, why, why?.... Is this not bad practice? ... You could say... it is a bug...


Vriendelijke groeten
Gilbert Vanden Borre
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Hardcode in Search linkHardcode in Search link


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