Jump to content

fieldset std padding


freelance84

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/209722-fieldset-std-padding/
Share on other sites

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???

Ha, never mind i've solved already  :o

 

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;}

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.