Dave's Brain

Browse - Programming Tips - How can I make fieldset legend work the normal way after bootstrap

Date: 2015mar20
Product: Twitter Bootstrap
Language: css

Q. How can I make <fieldset> <legend> work the normal way after bootstrap
has reset the css for them?

A.  This css does the trick

fieldset { border: 1px solid #c0c0c0; margin: 0 2px; padding: 0.35em 0.625em 0.75em; } fieldset legend { width: auto; /* To override width:100% in bootstrap */ margin-bottom: 0px; border: 0; padding: 0; font-size: 1.2em; }

Add a comment

Sign in to add a comment
Copyright © 2008-2018, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.