views:

826

answers:

1

I'm trying to get the display of a fieldset the same across browsers. I've create a simple file:

<style>
  fieldset
  {
    -moz-border-radius-bottomleft: 7px;
    -moz-border-radius-bottomright: 7px;
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-topright: 7px;
    -webkit-border-radius: 7px;
    border-radius: 3px;
  }
  legend
  {
    color: #696969;
  }
</style>

<fieldset style="width: 440px; float: left;">
  <legend>First Fieldset</legend>
  <table width="310px">
    <tr>
      <td>
        &nbsp;
      </td>
    </tr>
  </table>
</fieldset>
<br clear="all" />
<fieldset style="float: left; width: 440px; padding-top: 10px;">
  <legend>Second Fieldset</legend>
  <div id="innerDiv">
    <table width="100%">
      <tr>
        <td>
          &nbsp;
        </td>
      </tr>
    </table>
  </div>
</fieldset>
<br clear="all" />
<fieldset style="float: right; width: 300px">
  <legend>Third Fieldset</legend>
  <div id="map_canvas" style="width: 100%; height: 350px; border: solid 1px black;">
  </div>
</fieldset>

Chrome 3.0 and FF 3.6 render this almost the same - the fieldset border is a bit heavier on Chrome, and a there's noticeable stairstepping on the corners. IE has a slightly thinner border, but the corners seem to be a bit tighter.

Is there any way to get all three browsers to display this the same way?

A: 

Try using a reset stylesheet.

Edit: Upon further review, it already contains fieldset, so no need to add that..

Robusto
If I use a reset, then I have to specify the border properties to get the outline, and then IE goes back to square corners.
chris