473,738 Members | 10,643 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form item is out of <DIV>

hi all, consider the example below:

//////////////////////
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5" />
<title>Untitl ed Document</title>
<style type="text/css">
<!--

div.test{

padding-top : 2px;
padding-left : 5px;
height : 20px;
font-family : lucida grande, verdana, arial, sans-serif;
font-size : 15px;
font-weight : bold;
line-height : 1.5;
color : #333333;
text-align : left;
background-color : #E3EBCC;

}

-->
</style>
</head>

<body>

<div class="test">
<select name="test">
<option value="1">1</option>
<option value="2">2</option>
</select>
</div>

</body>
</html>

//////////////////////

the select item is out of the div "test", this problem occur in FF 1.5
& Opera 9, but not IE 6,
is that something wrong?

thanks...

Nov 7 '06 #1
7 2605
howa wrote:
hi all, consider the example below:

height : 20px;

the select item is out of the div "test", this problem occur in FF 1.5
& Opera 9, but not IE 6,
is that something wrong?
The height is a fixed size. Remove it, or set it larger.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Nov 7 '06 #2

Jim Moe gDG
howa wrote:
hi all, consider the example below:

height : 20px;

the select item is out of the div "test", this problem occur in FF 1.5
& Opera 9, but not IE 6,
is that something wrong?
The height is a fixed size. Remove it, or set it larger.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
well,
why the form item cannot expand the DIV ?

Nov 8 '06 #3

Jim Moe gDG
howa wrote:
hi all, consider the example below:

height : 20px;

the select item is out of the div "test", this problem occur in FF 1.5
& Opera 9, but not IE 6,
is that something wrong?
The height is a fixed size. Remove it, or set it larger.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
well,
why the form item cannot expand the DIV ?

Nov 8 '06 #4
howa wrote:
Jim Moe 寫道:
>howa wrote:
>
height : 20px;
The height is a fixed size. Remove it, or set it larger.

why the form item cannot expand the DIV ?
Remove the height limit and all browsers will expand it as needed. IE
expands it now because it is broken.

--
Berg
Nov 8 '06 #5
howa wrote:
hi all, consider the example below:

height : 20px;

the select item is out of the div "test", this problem occur in FF 1.5
& Opera 9, but not IE 6,
is that something wrong?
The height is a fixed size. Remove it, or set it larger.
well,
why the form item cannot expand the DIV ?
The height is a *fixed size*. Remove it, or set it larger.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Nov 8 '06 #6
"Bergamot" <be******@visi. comwrote in message
news:4r******** ****@mid.indivi dual.net...
howa wrote:
>Jim Moe ??:
>>howa wrote:

height : 20px;

The height is a fixed size. Remove it, or set it larger.

why the form item cannot expand the DIV ?

Remove the height limit and all browsers will expand it as needed. IE
expands it now because it is broken.
if you *must* have a fixed height then add overflow:auto; to your style
element.

--
Cheers

Paul
le singe est dans l'arbre
http://www.paulwatt.info
Nov 8 '06 #7
Paul Watt wrote:
>>>howa wrote:

height : 20px;

if you *must* have a fixed height then add overflow:auto; to your style
element.
Hmmm... not sure what a browser will do with a vertical scrollbar on
such a short element. It will be tricky to operate, I think. :)

--
Berg
Nov 8 '06 #8

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

Similar topics

13
3401
by: Mikko Ohtamaa | last post by:
From XML specification: The representation of an empty element is either a start-tag immediately followed by an end-tag, or an empty-element tag. (This means that <foo></foo> is equal to <foo/>) From XHTML specification:
1
2508
by: Philo | last post by:
How do I select all <div> tags except those which contain a <table> tag somewhere within them? Example XML: <********************** sample input ***********************> <txtSectionBody> <div> <span>
3
84608
by: Paul Thompson | last post by:
When I put a <div ...> inside a <table> specification, functionality is not there. When I put the <table> inside the <div> everything works. Why is that?
8
14467
by: Daniel Hansen | last post by:
I know this must seem totally basic and stupid, but I cannot find any reference that describes how to control the spacing between <p>...</p> and <div>...</div> blocks. When I implement these on a page, there is a huge gap (like 3/8 inch or 25 px) between them. This is driving me bananas. What the hey am I missing? dh ------------------------------------------------ Dan Hansen ------------------------------------------------
8
5157
by: slim | last post by:
hi again all, i am still working on the website as mentioned in earlier threads and have hit another snag... http://awash.demon.co.uk/index.php http://awash.demon.co.uk/vd.css the php is pulling a name and placing it under the thumbnail (the text is
6
37150
by: Marcus Otmarsen | last post by:
Ok, the situation is as follows: I defined a <DIV> like: <div id="myid" style="position: absolute; height: 10; width: 10;"><img src="images/object.gif" height=10 width=10></div> This pane is used to move an object around on the web page by a javascript. As long as I define no further <div> pane everything works fine.
3
3812
by: Josef K. | last post by:
Asp.net generates the following html when producing RadioButton lists: <td><input id="RadioButtonList_3" type="radio" name="MyRadioButtonList" value="644" onclick="__doPostBack('SitesRadioButtonList_3','')" language="javascript" />
1
2437
by: mark4asp | last post by:
<form runat="server"automatically adds <divtag to code contained within. Is there a way to stop that? Mixing block-level elements with inline-level elements messes up the HTML becasuse that is invalid for a strict implementation. <spanis in-line-level and <divis block-level. I don't want to mix up <span> and <div> I'm using an <asp:Buttonhere because when it switches to the URL I need to check that the user is in the correct role -...
8
10047
prino
by: prino | last post by:
Hi all, I've written code (in REXX) that takes files in legacy languages (PL/I, COBOL, z/OS assembler, etc) and converts them into HTML in a format similar to what's displayed in the z/OS ISPF editor. A fellow member of the PCG has helped me by creating a bit of Javascript to emulate the scrolling and using Google I've now gotten it into a state where it almost passes the W3C Markup Validation Service. However, the one error, Error Line 166,...
0
8969
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9208
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8210
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6751
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 presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2745
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.