Solved

drop down box problem in CF and CSS

Posted on 2008-10-08
5
155 Views
Last Modified: 2012-05-05
Hi,
I have many select boxes in my web pages.
I have style sheet for select without having width.
My select box values are coming from the database resultset. So, I can't fix the width.
My problem is :
IE doesn't accept my CSS. It means, the select values are getting truncated. So, i am not able to see full values. But Firefox works fine. I could see my entire values.
It would be wonderful if anyone give me the answer.
Thank you very much.
0
Comment
Question by:sharon212
  • 2
5 Comments
 
LVL 36

Expert Comment

by:SidFishes
ID: 22670486
without seeing some code it's impossible to help. please post only the relevant sections of css and the select
0
 

Author Comment

by:sharon212
ID: 22680701
Hi, thanks for your reply.
Here is my style sheet code for select :
select
{
    background-color: white;
    color: black;
    border: 1px solid gray;
    margin-right: 2px;
    font-family:Arial, Helvetica;
    font-weight: normal;
    font-size:12px;
    height:17px;
 }

This is select in CF code :
<td><select name="SSN_Documentation_Id" >            
    <option value="-1" SELECTED>Choose One</option>
      <cfloop query="request.ssndoc_resultset">
                <option value=request.ssndoc_resultset.documentation_ID>request.ssndoc_resultset.DocName#</option>  
             </cfloop>
     </select>
</td>

The problem is request.ssndoc_resultset.docname's letters would be more than 120. I don't want to fix the width in CSS.
If i do that all the select would get affected. Also I can't fix the width in the CF side. I will not know how the values would be.

In my webpage with these CSS and CF code the values are getting truncated. I would like to see full text from the dropdown. Thank you.
0
 
LVL 36

Accepted Solution

by:
SidFishes earned 125 total points
ID: 22680981
ok I see what you are looking for...

unfortunately, there is no simple way of getting this to work in IE...it's just the way it's built. You can do it with JS/CSS but it's not a simple thing

there's a code example here
http://www.webdeveloper.com/forum/archive/index.php/t-81818.html from arun0009
 but it's a fair amount of JS to deal with


0
 
LVL 7

Expert Comment

by:frankky
ID: 37136702
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

760 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

18 Experts available now in Live!

Get 1:1 Help Now