Chitresh
Chitresh

Reputation: 3092

Style attribute of HTML fieldSet Tag is Not Working

My HTML is look like these

<html>
<body>
<fieldSet id="sourceName" style="width: 350px; height: 80px; overflow: auto;">
Some Data.....
</fieldSet>
</body>
</html> 

The above code is working fine in IE and Opera but when i run the same code in mozilla Firefox the style attribute of fieldSet is not working on mozilla what should i use. my simple Qustion is how to give scrollbar to fieldSet in mozilla.

Upvotes: 0

Views: 3047

Answers (2)

benhowdle89
benhowdle89

Reputation: 37454

You can try overflow: scroll, that should work.

Upvotes: 0

Emmett
Emmett

Reputation: 14327

FF doesn't seem to handle fieldset overflow in a standard way. As a workaround, use a nested div:

<fieldSet id="sourceName" style="width: 350px; height: 80px;">
    <div style="width: 350px; height: 80px; overflow: auto;">
        Some Data.....
    </div>
</fieldSet>

Upvotes: 1

Related Questions