Jump to content

[SOLVED] Padding makes it overflow out of height in FF


Recommended Posts

Say I have a 'menu' div of 20px in height.

Inside it, i have links. i pad the links 10px on top and 10px on right. Instead of expanding the menu div, it overflows out of the menu border.

 

Is there way to make it so the menu expands accordingly?

 

Another thing i was doing was i had the links inside a div. then i made the div float, and the height shrank. anyone knows why this happens?

 

 

thanks.

Just throwing in my "Rock", you should all check the technique i use on www.brugbart.dk; also the link in my sig.

 

 

Never mind the "Updated Version" i created, just use the first; The reason i havent updated my own version yet, is it seams Safari have a problem rendering the "updated version", so i'd rather stick with what i know works, until i find out why Safari renders the "uv" wrong.

 

Also, i tend to avoid using padding where i know it course problems, and with good results.. Mostly you will be able to use margin insted, or something intirely different.

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.