Please surf to
http://www.evaluatorgroup.com/newindex.html
Notice, with IE 6 as your browser, the vertical height between the main menu images on the left-hand menu are correct.
Now, surf to it using Opera 7.23. Notice how the vertical distance between the first 4 images is too small. And, it is not the same as using IE.
The menu is at http://www.evaluatorgroup.com/javascrip ... nu_data.js
What did I do wrong?
What do I need to change?
thanks,
dave
RESOLVED - height problem: IE good, Opera bad
- davebarnes
- Super Advanced
- Posts: 71
- Joined: Tue Nov 18, 2003 6:09 am
- Location: Denver, CO USA
- Contact:
RESOLVED - height problem: IE good, Opera bad
Last edited by davebarnes on Sat Apr 17, 2004 3:50 pm, edited 1 time in total.
"Opera bad"...you got that right
Though this is not the problem you need to upgrade to 5.12.
The problem seems to be particular to Opera 7x, since it renders correctly in Opera 6x. I tried putting in imagepadding=3; in your menu definition along with the itemheight, but that didnt' work, then just on the off chance, I put that in the actual style definition for that menu and that seemed to fix the problem in Opera 7.
Ruth
Though this is not the problem you need to upgrade to 5.12.
The problem seems to be particular to Opera 7x, since it renders correctly in Opera 6x. I tried putting in imagepadding=3; in your menu definition along with the itemheight, but that didnt' work, then just on the off chance, I put that in the actual style definition for that menu and that seemed to fix the problem in Opera 7.
Ruth
- davebarnes
- Super Advanced
- Posts: 71
- Joined: Tue Nov 18, 2003 6:09 am
- Location: Denver, CO USA
- Contact:
Hi Dave,
then indeed it does pad the intended object all the way around. But if you specify it like so:
then you can control the ammount of padding on any side. The numbers apply to Top, Right, Bottom, and Left padding, in that order. If you don't specify a measure, px is used by default (as in this example). So, if you wanted to add 3px to the top of the image padding, but nothing anywhere else, you'd do:
These are css rules btw, not "milonic" rules. So the same thing can be done with any style.
Hope that helps,
Kevin
Not necessarily. If you set any padding as a single value, likedavebarnes wrote:...That is the trouble with padding. It adds space all the way around.
Code: Select all
padding=3;
Code: Select all
padding="3 2 1 0";
Code: Select all
imagepadding="3 0 0 0";
Hope that helps,
Kevin
- davebarnes
- Super Advanced
- Posts: 71
- Joined: Tue Nov 18, 2003 6:09 am
- Location: Denver, CO USA
- Contact: