Solved

why <fieldset> not working properly ??

Posted on 2010-11-08
10
397 Views
Last Modified: 2012-05-10

Hi ,

if i am <fieldset> inside <div > yag means .... <fieldset> tag not working properly ?
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>

 <style type="text/css">  
<!--  
.box {  
        position:absolute;  
        width:50px;  
        height:170px;  
        z-index:11;  
}  
.yellow {  
        background-color:#FF0;  
}  
.orange {  
        background-color:#FC6;  
}  
.green {  
        background-color:#9F9;  
}  
.blue {  
        background-color:#3CC;  
}  
#appDiv1 {  
        left:340px;  
        top:150px;  
}  
#appDiv2 {  
        left:420px;  
        top:150px;  
}  
#appDiv3 {  
        left:500px;  
        top:150px;  
}  
#appDiv4 {  
        left:580px;  
        top:150px;  
}  
#appDiv5 {  
        left:660px;  
        top:150px;  
}  
#appDiv6 {  
        left:340px;  
        top:350px;  
}  
#appDiv7 {  
        left:420px;  
        top:350px;  
}  
#appDiv8 {  
        left:500px;  
        top:350px;  
}  
#appDiv9 {  
        left:580px;  
        top:350px;  
}  
#appDiv10 {  
        left:660px;  
        top:350px;  
}  
.divider {  
        position:absolute;  
        background-color: #FF0000;  
}  
#d1 {  
        left:310px;  
        top:326px;  
        width:440px;  
        height:0px;  
        z-index:22;  
        padding:0px;
}  
#d2 {  
        left:565px;  
        top:130px;  
        width:3px;  
        height:420px;  
        z-index:22;
        padding:0px;  
}  
#d3 {  
        left:465px;  
        top:130px;  
        width:3px;  
        height:420px;  
        z-index:22;
        padding:0px;  
}
.controls {  
        position:absolute;  
        width:60px;  
        height:30px;  
        z-index:3;  
}  
#c1 {  
        left:103px;  
        top:287px;  
}  
#c2 {  
        left:545px;  
        top:555px;  
}  
 

-->  
</style> 
</head>
<body>
<fieldset>
<div id="appDiv1" class="box yellow"></div>  
				<div id="appDiv2" class="box yellow"></div>  
				<div id="appDiv3" class="box yellow"></div>  
				<div id="appDiv4" class="box green"></div>  
				<div id="appDiv5" class="box green"></div>  
				  
				<div id="appDiv6" class="box orange"></div>  
				<div id="appDiv7" class="box orange"></div>  
				<div id="appDiv8" class="box orange"></div>  
				<div id="appDiv9" class="box blue"></div>  
				<div id="appDiv10" class="box blue"></div>  
			 
			    <div id="d1" class="divider" ></div>  
				<div id="d2" class="divider" ></div>  
                <div id="c1" class="controls">  
			  
				</div>  
				<div id="c2" class="controls">  
				  <input type="button" value="<" size="2" onclick="back();"> 
			      <input type="button" value=">" size="2" onclick="front();">
			      <input type="hidden" id="divCount" name="divCount" vaule="3">
				</div>
				</fieldset> 
				
</body>
</html>

Open in new window

0
Comment
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
  • 2
10 Comments
 
LVL 2

Expert Comment

by:ulyssey
ID: 34086139
Hi!

The fieldset tag is made to be used in a form, nothing more.
0
 
LVL 2

Expert Comment

by:ulyssey
ID: 34086142
0
 
LVL 20

Author Comment

by:Sathish David Kumar N
ID: 34086199
If i use <form> also same result coming ....
y can try in my code ?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 18

Accepted Solution

by:
Sudaraka Wijesinghe earned 500 total points
ID: 34086954
It's because your .box elements are absolute positioned.
Try using an absolute/relative positioned DIV instead.
0
 
LVL 20

Author Comment

by:Sathish David Kumar N
ID: 34087128
what is absolute positioned ?
what is relative  positioned  ?
0
 
LVL 18

Expert Comment

by:Sudaraka Wijesinghe
ID: 34087282
I mean like this
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>

 <style type="text/css">  
<!--  
.box {  
        position:absolute;  
        width:50px;  
        height:170px;  
        z-index:11;  
}  
.yellow {  
        background-color:#FF0;  
}  
.orange {  
        background-color:#FC6;  
}  
.green {  
        background-color:#9F9;  
}  
.blue {  
        background-color:#3CC;  
}  
#appDiv1 {  
        left:340px;  
        top:150px;  
}  
#appDiv2 {  
        left:420px;  
        top:150px;  
}  
#appDiv3 {  
        left:500px;  
        top:150px;  
}  
#appDiv4 {  
        left:580px;  
        top:150px;  
}  
#appDiv5 {  
        left:660px;  
        top:150px;  
}  
#appDiv6 {  
        left:340px;  
        top:350px;  
}  
#appDiv7 {  
        left:420px;  
        top:350px;  
}  
#appDiv8 {  
        left:500px;  
        top:350px;  
}  
#appDiv9 {  
        left:580px;  
        top:350px;  
}  
#appDiv10 {  
        left:660px;  
        top:350px;  
}  
.divider {  
        position:absolute;  
        background-color: #FF0000;  
}  
#d1 {  
        left:310px;  
        top:326px;  
        width:440px;  
        height:0px;  
        z-index:22;  
        padding:0px;
}  
#d2 {  
        left:565px;  
        top:130px;  
        width:3px;  
        height:420px;  
        z-index:22;
        padding:0px;  
}  
#d3 {  
        left:465px;  
        top:130px;  
        width:3px;  
        height:420px;  
        z-index:22;
        padding:0px;  
}
.controls {  
        position:absolute;  
        width:60px;  
        height:30px;  
        z-index:3;  
}  
#c1 {  
        left:103px;  
        top:287px;  
}  
#c2 {  
        left:545px;  
        top:555px;  
}  
 

-->  
</style> 
</head>
<body>
<div style="position:relative; border:1px solid gray; width:100%; height:100%;">
<div id="appDiv1" class="box yellow"></div>  
                                <div id="appDiv2" class="box yellow"></div>  
                                <div id="appDiv3" class="box yellow"></div>  
                                <div id="appDiv4" class="box green"></div>  
                                <div id="appDiv5" class="box green"></div>  
                                  
                                <div id="appDiv6" class="box orange"></div>  
                                <div id="appDiv7" class="box orange"></div>  
                                <div id="appDiv8" class="box orange"></div>  
                                <div id="appDiv9" class="box blue"></div>  
                                <div id="appDiv10" class="box blue"></div>  
                         
                            <div id="d1" class="divider" ></div>  
                                <div id="d2" class="divider" ></div>  
                <div id="c1" class="controls">  
                          
                                </div>  
                                <div id="c2" class="controls">  
                                  <input type="button" value="<" size="2" onclick="back();"> 
                              <input type="button" value=">" size="2" onclick="front();">
                              <input type="hidden" id="divCount" name="divCount" vaule="3">
                                </div>
                                </fieldset> 
                                
</body>
</html>

Open in new window

0
 
LVL 20

Author Comment

by:Sathish David Kumar N
ID: 34087308
Ok ...

what is absolute positioned ?
what is relative  positioned  ?  
0
 
LVL 18

Expert Comment

by:Sudaraka Wijesinghe
ID: 34087365
0
 
LVL 20

Author Closing Comment

by:Sathish David Kumar N
ID: 34090576
Thanks
0
 
LVL 18

Expert Comment

by:Sudaraka Wijesinghe
ID: 34090590
Glad to help. Thanks for the points.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Change static entered data to dynamic with counter 5 36
Html date format 9 20
Compute age Html 2 27
How do I Enable submit button only if listbox has items 4 35
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

730 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