freelance84 Posted August 3, 2010 Share Posted August 3, 2010 Fieldsets.... I've noticed that fieldsets have some default padding, this prevents a div filling the fieldset width 100% (it leaves little gaps left and right) If I set padding left and right in the fieldset to be zero this then solves the above problem but creates another with the legends... it pulls the legend close up to the left hand side. I'm happy with the default positioning of the legends and really don't want to start messing around with them. Is there another way to solve this problem? Quote Link to comment https://forums.phpfreaks.com/topic/209722-fieldset-std-padding/ Share on other sites More sharing options...
haku Posted August 4, 2010 Share Posted August 4, 2010 Have you tried adding some margins onto the left and right of the legend? Quote Link to comment https://forums.phpfreaks.com/topic/209722-fieldset-std-padding/#findComment-1094873 Share on other sites More sharing options...
freelance84 Posted August 5, 2010 Author Share Posted August 5, 2010 played around with the legend, float left and rel position up and right. sorted Quote Link to comment https://forums.phpfreaks.com/topic/209722-fieldset-std-padding/#findComment-1095506 Share on other sites More sharing options...
freelance84 Posted August 6, 2010 Author Share Posted August 6, 2010 Has anyone had any success with moving the legend around in ie6? The above success applied to ff chrome and opera, but in ie6 it push the legend about 100px above the fieldset and made some of the content of the fieldset appear outside the the borders??? Quote Link to comment https://forums.phpfreaks.com/topic/209722-fieldset-std-padding/#findComment-1095907 Share on other sites More sharing options...
freelance84 Posted August 6, 2010 Author Share Posted August 6, 2010 Ha, never mind i've solved already I simply changed the legends to divs but with the same class: background-color: #9ccfe4; font-weight: bold; padding-right: 5px; padding-left: 5px; border-left-width: 2px; border-left-style: solid; border-left-color: #9ccfe4; float: left; position: relative; top: -20px; left: -2px;} Quote Link to comment https://forums.phpfreaks.com/topic/209722-fieldset-std-padding/#findComment-1095908 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.