Link to home
Start Free TrialLog in
Avatar of Loganathan Natarajan
Loganathan NatarajanFlag for India

asked on

why this alignment is not working in IE?

Please see the attached code, the alignment is not working in IE. but it works in FF fine. Can you check?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" >
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />

  <title>Test</title>


</head>
<body id="page_bg" class="color_blue bg_blue width_fmax">
<a name="up" id="up"></a>
<div class="center" align="center">
	
				<div id="whitebox_m">
					<div id="area">
									

						<div id="leftcolumn">
														
							
									<div class="module">
			<div>
				<div>
					<div>
											
<script language="javascript" type="text/javascript">
	function checkForm(thisform) {
		// do field validation
		/*if (thisform.sel_hour.value == ""){
			alert( "Enter Search Word" );
			return false;
		} else {
			return true;
		}
	*/
	}
</script>
<script language="javascript" src="/jobline/jobselect.js"></script>

<div style="width:150px;">
    <div class="moduletablesearchoptions">  
        
			     
 <script type="text/javascript">
        function resizesel(el, newwidth){
        document.getElementById(el).style.width = newwidth + "px";
        }
 </script>
		<form method="get" action="index.php" onSubmit="return checkForm(this);" name="searchForm">
	<div class="searchsearch">
		<table width="100%" border="0">
		  <tr>
		    <td>
						<div style="position: relative;padding-left:0px;">
        		<div style="position:absolute;left:0;">	
					<select style="width: 175px" name="sel_region" id="sel_region" class="textboxsubject" onfocus="resizesel('sel_region', '175')" onblur="resizesel('sel_region', '175')">
							<option selected="selected" style="color:#999999;">Region or School</option>
															<option style="font-weight:bold; color:#000000;" value="7^1">
							<ul>
								<li >
										East Midlands (all)										<ul>
											<li class="folder">
											&nbsp;&nbsp;
											<option value="8^0" style="padding-left:10px;">Kettering Buccleuch Ac.</option>
											</li>
										</ul>
															<ul>
											<li class="folder">
											&nbsp;&nbsp;
											<option value="9^0" style="padding-left:10px;">Lincoln Minster School</option>
											</li>
										</ul>
															<ul>
											<li class="folder">
											&nbsp;&nbsp;
											<option value="10^0" style="padding-left:10px;">Northampton Academy</option>
											</li>
										</ul>
						
					</li>
				</ul>
				
				</option>
											<option style="font-weight:bold; color:#000000;" value="8^1">
							<ul>
								<li >
										East of England	
					</li>
				</ul>
				</option>
											<option style="font-weight:bold; color:#000000;" value="9^1">
							<ul>
								<li >
										Greater London (all)										<ul>
											<li class="folder">
											&nbsp;&nbsp;
											<option value="11^0" style="padding-left:10px;">Lambeth Academy</option>
											</li>
										</ul>
															<ul>
											<li class="folder">
											&nbsp;&nbsp;
											<option value="12^0" style="padding-left:10px;">Paddington Academy</option>
											</li>
										</ul>
						
					</li>
				</ul>
				
				</option>
											<option style="font-weight:bold; color:#000000;" value="10^1">
							<ul>
								<li >
										North East England (all)	
					</li>
				</ul>
				</option>
											<option style="font-weight:bold; color:#000000;" value="11^1">
							<ul>
								<li >
										North West England (all)	
					</li>
				</ul>
				</option>
											<option style="font-weight:bold; color:#000000;" value="12^1">
							<ul>
								<li >
										South East England (all)	
					</li>
				</ul>
				</option>
											<option style="font-weight:bold; color:#000000;" value="13^1">
							<ul>
								<li >
										South West England (all)	
					</li>
				</ul>
				</option>
											<option style="font-weight:bold; color:#000000;" value="14^1">
							<ul>
								<li >
										West Midlands	
					</li>
				</ul>
				</option>
											<option style="font-weight:bold; color:#000000;" value="15^1">
							<ul>
								<li >
										Yorkshire & Humber (all)	
					</li>
				</ul>
				</option>
								</select>
				</div>
			</div>
			<br />&nbsp;			</td>
	      </tr>
		<tr>
		   <td>		   </td>
		 </tr>  		
		</table>
	</div>	
		</form>
	</div>
</div>		   
 
 


</body>
</html>

Open in new window

FF.JPG
IE.JPG
Avatar of Shinesh Premrajan
Shinesh Premrajan
Flag of India image

i think you are looking for something like the code attached

hope this helps
<select name="test">
<optgroup label="Header">Header</optgroup>
<option value="content"> contenta</option>
<optgroup label="Header2">Header2</optgroup>
</select>

Open in new window

My apologies, pls find the corrected code..


<select>
  <optgroup label="Swedish Cars">
    <option value="volvo">Volvo</option>
    <option value="saab">Saab</option>
  </optgroup>
  <optgroup label="German Cars">
    <option value="mercedes">Mercedes</option>
    <option value="audi">Audi</option>
  </optgroup>
</select>

Open in new window

Avatar of Loganathan Natarajan

ASKER

@shinuq

thanks ...

can I load some values for this name also?

because i need to get this value on the next page?

i.e
AFAIK, the optgroup values are not readable, only the option values can be retrieved.
No, I want to read the values also for the main option.

as I am combining both options as ROOT and SUB...

Is there any way to do?
SOLUTION
Avatar of Shinesh Premrajan
Shinesh Premrajan
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Actually my need is different.  As I said, I need to get exactly the selection of the option,

if it is ROOT selection, I have to search under the SUB's
If it is SUB (individual) , i have to search in it.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial