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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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