Solved

Datefield opens behind the box below it

Posted on 2012-03-30
1
301 Views
Last Modified: 2012-03-30
I have a cold fusion "datefield" like the one below. Right below it on the form I have another field... when the calendar icon is clicked for this field it opens "behind" the field below it so you cannot read the month.

Does anyone have a tip on how to make this open in front the other field? Maybe a div with a z index would work? Thanks.

   <cfinput type="datefield"
            name="mydatefield"
            value="#mydatefield#"
            message="Date field must be a valid date"
            required="no"
                  validate="date"
            validateAt="onSubmit"
            size="50"
            maxlength="10">
0
Comment
Question by:earwig75
1 Comment
 
LVL 52

Accepted Solution

by:
_agx_ earned 500 total points
ID: 37788572
I think you answered your own question ;-) It's an IE bug and yes the standard fix is to tweak the z-index.  Example

http://www.experts-exchange.com/Software/Server_Software/Web_Servers/ColdFusion/Q_26381936.html
The solution is to sandwich your CFINPUT statement between
<div style="position:relative; z-index:1">
</div>

http://stackoverflow.com/a/556879
http://www.experts-exchange.com/Software/Server_Software/Web_Servers/ColdFusion/Q_23699575.html
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Sometimes databases have MILLIONS of records and we need a way to quickly query that table to return the results me need. Sure you could use CFQUERY but it takes too long when there are millions of records. That is why SOLR was invented. Please …
Recently while working on a project I got a very annoying cfdocument has no body error message. I had never seen this error before. So I checked the code. The code was pretty simple; it was Just showing me the cfdocumnt tag and inside that tag a …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

832 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