Jump to content

Internet explorer 7 display bugs


co.ador

Recommended Posts

I have this form and it's CSS style, above it display in the center in firefox but in other browser it won't can anybody help me to display in the center for all the browsers?

 

<style type="text/css">
#form23 { width: 400px;  margin: 0 auto; }
#left-side { width: 200px; float: left; }
#right-side { width: 200px; float: right;}
#form input,select { margin-bottom: 10px; }
</style>
<div id='form'>
<form name='yourformname' action=''>
<div id='right-side'>
  <input type='checkbox' name='example' value='delivery' />Delivery<br />
  <input type='checkbox' name='example' value='eat-in' />Eat-in<br />
  <input type='checkbox' name='example' value='wifi' />Wi-Fi<br />
  <input type='checkbox' name='example' value='buffet' />Buffet<br />
  <input type='checkbox' name='example' value='tv' />Tv<br />
  <input type='checkbox' name='example' value='parking' />Parking<br />
  <input type='checkbox' name='example' value='catering' />Catering<br />
  <input type='checkbox' name='example' value='take-out' />Take Out
</div>
<div id='left-side'>
  Name: <br />
  <input type='text' name='name' /><br />
  Zip Code: <br />
  <input type='text' name='zipcode' /><br />
  County: <br />
  <select name='county'>
   <option value='Bronx'>Bronx</option>
  </select><br />
  Type of Food: <br />
  <select name='food-type'>
   <option value='spanish'>Spanish Food</option>
  </select> 
</div>
</div>

Link to comment
Share on other sites

I tested this code in IE7 & 8, FF, Safari, Chrome and Opera. It centers in all browsers.

Is there some code your not including that could affect this code?

<style type="text/css">
#form { width: 400px;  margin: 0 auto; }
#left-side { width: 200px; float: left; }
#right-side { width: 200px; float: right;}
#form input,select { margin-bottom: 10px; }
</style>
<div id='form'>
<form name='yourformname' action=''>
<div id='right-side'>
  <input type='checkbox' name='example' value='delivery' />Delivery<br />
  <input type='checkbox' name='example' value='eat-in' />Eat-in<br />
  <input type='checkbox' name='example' value='wifi' />Wi-Fi<br />
  <input type='checkbox' name='example' value='buffet' />Buffet<br />
  <input type='checkbox' name='example' value='tv' />Tv<br />
  <input type='checkbox' name='example' value='parking' />Parking<br />
  <input type='checkbox' name='example' value='catering' />Catering<br />
  <input type='checkbox' name='example' value='take-out' />Take Out
</div>
<div id='left-side'>
  Name: <br />
  <input type='text' name='name' /><br />
  Zip Code: <br />
  <input type='text' name='zipcode' /><br />
  County: <br />
  <select name='county'>
   <option value='Bronx'>Bronx</option>
  </select><br />
  Type of Food: <br />
  <select name='food-type'>
   <option value='spanish'>Spanish Food</option>
  </select>
</div>
</div>

Link to comment
Share on other sites

Hey guys

 

The W3 Validator worked the problem around, now I have fixed and Internet 7 is working...

 

There were a couple misplaced tags and it was causing some conflict.

 

Now i have a question how can I style the search boxes

<div id="left-side"> Name: <br />
      <input type="text" name="name" />
      <br />
      Zip Code: <br />
      <input type="text" name="zipcode" />
      <br />
      County: <br />
      <select name="county">
        <option value="Bronx">Bronx</option>
      </select>
      <br />
      Type of Food: <br />
      <select name="food-type">
        <option value="spanish">Spanish Food</option>
      </select>
    </div>

That instead of having the heading Name, Zip code, county, and Type of food on top of the rectangular boxes like below

 

examplea.jpg

 

Have it to the left of the rectangular boxes, exactly as in the example below:

 

http://zip4.usps.com/zip4/welcome.jsp

 

Thank you guys

 

PS - I have tried in <tables> tags but I don't know if semantically speaking the most correct way to go....

Link to comment
Share on other sites

I am having some issues in IE7 displaying the code below looks like:

 

overlapping.jpg

 

CSS

.abajo {  width: 1000px; height:360px; position:relative;  top:160px; left:100px; }
.abajo fieldset{
margin: 1.5em 20px 0 20px;  
padding: 0;
float:left;

}

.abajo fieldset legend {  
margin-left: 1em;  
color: #000000;  
font-weight: bold;  
}  
.abajo fieldset ol {  
padding: 1em 1em 0 1em;  
list-style: none;
width:340px;  
} 
  

.abajo fieldset li {  
padding-bottom: 1em;  
}
.abajo fieldset label {
text-align:right;
float: left;    
width: 10em;    
margin-right: 1em;    
text-align: right; } 

.abajo .primero .tercero ol{  
padding: 0.8em 1em 0 5em;  
list-style: none;
width:200px; ; 
}
.tercero {  width:200px; height:224px; }
.primero {width:850px; height:360px; background-image:url(../images/fieldsetfront2.gif); }


<form class="abajo" action=""> 
<fieldset class="primero">
<legend>Search For a store</legend> <fieldset class="tercero" style="border-color:#FFFFFF" >
<legend>Services</legend> 
<ol>
<li>
  <input type="checkbox" name="example" value="delivery" />Delivery<br />
  <input type="checkbox" name="example" value="eat-in" />Eat-in<br />
  <input type="checkbox" name="example" value="wifi" />Wi-Fi<br />
  <input type="checkbox" name="example" value="buffet" />Buffet<br />
  <input type="checkbox" name="example" value="tv" />Tv<br />
  <input type="checkbox" name="example" value="parking" />Parking<br />
  <input type="checkbox" name="example" value="catering" />Catering<br />
  <input type="checkbox" name="example" value="take-out" />Take Out
</li></ol>
</fieldset> 
</fieldset>
</form>

 

What's happening here is that the top boder of the fieldset services is overlapping the right boder and goes across it. pluse the input check boxes and it's text are overlapping the right fieldset boder.

 

some help please.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.