Solved

alignment problem of hidden input field inside a <td> in IE

Posted on 2008-09-30
2
624 Views
Last Modified: 2012-05-05
Hi,

I am using a RadDatePicker  in my application and I put it inside a table. But it does not look the same on firefox and ie7. Here is the image as it apprears on IE7: http://i62.photobucket.com/albums/h116/ikaruga7/table.jpg

As I noticed, the spaces (above and below) each textfield are caused by the hidden fields. I attached here a sample code I created which demonstrate this issue. Please try to look them on IE7 and firefox to see what I mean. I am also attaching here the css of the table's td.


Sample Code:
=========
asd
<table>
<tr>
<td><input style="visibility: hidden;display:block; float:right;margin:0;width:1px;height:1px;overflow:hidden;border:0;padding:0;" id="RadDatePicker_Compare_From_Start_Date" name="RadDatePicker_Compare_From_Start_Date" type="text" value="2003-05-01" /><span id="RadDatePicker_Compare_From_Start_Date_dateInput_wrapper" class="radInput_Office2007"><input id="RadDatePicker_Compare_From_Start_Date_dateInput_text" class="radEnabledCss_Office2007" style="width:62px;" /><input style="visibility:hidden;float:right;margin:-18px 0 0 0;width:1px;height:1px;overflow:hidden;border:0;padding:0;" id="RadDatePicker_Compare_From_Start_Date_dateInput" name="RadDatePicker_Compare_From_Start_Date$dateInput" type="text" value="2003-05-01-00-00-00" /><input id="RadDatePicker_Compare_From_Start_Date_dateInput_ClientState" name="RadDatePicker_Compare_From_Start_Date_dateInput_ClientState" type="hidden" /></span>
</td>
</tr>
</table>
asd
=========
 
 
TD CSS:
=========
font-family: Verdana, Geneva, ms sans serif;
font-size: 10px;
font-weight: bold;
white-space: nowrap; 
vertical-align: middle;
text-align: left;
padding: 2px 4px 2px 4px;
=========

Open in new window

0
Comment
Question by:JaimeJegonia
2 Comments
 
LVL 5

Accepted Solution

by:
crush83 earned 500 total points
ID: 22604687
input#RadDatePicker_Compare_From_Start_Date_dateInput_ClientState {
  display: none;
}

^ try this I guess.
0
 
LVL 44

Expert Comment

by:scrathcyboy
ID: 22610429
in CSS --

INPUT.text  {  padding:0px; margin:0px; border:0px }

that should equalize IE and FF display positioning.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question