Solved

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

Posted on 2008-09-30
2
621 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

757 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now