473,398 Members | 2,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Form Question

Hi,

I allways have problems with form elements.
I was creating a design where I want a drop down list width to be 100%
of the width of the div where it is placed.

<div id="myDiv">
<asp:DropDownList ID="search" runat="server" Width="100%">
</div>

The CSS is:

#myDiv {width=200px;}.

It works in IE and doesn't work with Firefox. Why?

Forms and its elements make me crazy all the time.
Testing it for both browsers made it even worse.

Thanks,
Miguel

Nov 19 '05 #1
2 1201
its not a supported standard would be my bet. IE supports a lot of
tags/values that aren't valid in other browsers.
Look it up... w3c.org I think...

--
Curt Christianson
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Miguel Dias Moura" <md*REMOVE*moura@*NOSPAM*gmail.com> wrote in message
news:ur**************@TK2MSFTNGP14.phx.gbl...
Hi,

I allways have problems with form elements.
I was creating a design where I want a drop down list width to be 100% of
the width of the div where it is placed.

<div id="myDiv">
<asp:DropDownList ID="search" runat="server" Width="100%">
</div>

The CSS is:

#myDiv {width=200px;}.

It works in IE and doesn't work with Firefox. Why?

Forms and its elements make me crazy all the time.
Testing it for both browsers made it even worse.

Thanks,
Miguel

Nov 19 '05 #2
in
<asp:DropDownList ID="search" runat="server" Width="100%">

the width is rendered as a inline style which works in both browsers,
except, that asp.net (version 1 and 1.1) does not render inline style
commands if the browser is not IE. the easiest fix is to use a css style to
get around this asp.net limitation.

-- bruce (sqlwork.com)
"Miguel Dias Moura" <md*REMOVE*moura@*NOSPAM*gmail.com> wrote in message
news:ur**************@TK2MSFTNGP14.phx.gbl...
| Hi,
|
| I allways have problems with form elements.
| I was creating a design where I want a drop down list width to be 100%
| of the width of the div where it is placed.
|
| <div id="myDiv">
| <asp:DropDownList ID="search" runat="server" Width="100%">
| </div>
|
| The CSS is:
|
| #myDiv {width=200px;}.
|
| It works in IE and doesn't work with Firefox. Why?
|
| Forms and its elements make me crazy all the time.
| Testing it for both browsers made it even worse.
|
| Thanks,
| Miguel
|
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Philippe C. Martin | last post by:
Hi, I am trying to change the data in a form field from python. The following code does not crash but has no effect as if "form" is just a copy of the original html form. Must I recreate the...
25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
11
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that...
15
by: http://www.visual-basic-data-mining.net/forum | last post by:
Does anyone have any idea how to transferring data from TextBox1 in form1 to textBox2 in form2..... That means after i fill in any data in textBox1 and click Next button... It will bring me to...
3
by: Kaur | last post by:
Hi, I would appriceate any help to correct the code error that I am getting for the onclick event of a cmd button. I have two forms. Main Form "frmQuestion" and form 2 "SfrmQuestion"....
27
by: Chris | last post by:
Hi, I have a form for uploading documents and inserting the data into a mysql db. I would like to validate the form. I have tried a couple of Javascript form validation functions, but it...
1
by: MrHelpMe | last post by:
Hello experts, I need a hand. On my asp submit page I have the following code: for i = 1 to 5 ' 5 question form' Question = Request.Form("Q" & i) Answer = Request.Form("A" & i) Comment ...
26
by: Jerim79 | last post by:
I need to create a form that takes a number that the user enters, and duplicates a question the number of times the user entered. For instance, if the customer enters 5 on the first page, when...
6
by: Greg Strong | last post by:
Hello All, Is is possible to use an ADO recordset to populate an unbound continuous Subform? I've done some Googling without much luck, so this maybe impossible, but let me try to explain...
6
by: smk17 | last post by:
I've spent the last few minutes searching for this question and I found an answer, but it wasn't quite what the client wanted. I have a simple online form where the user needs to fill out five...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.