473,385 Members | 1,523 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,385 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 1199
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.