AddThis button
    Add Me    
Syndicate content

Changing the Width or Height affects the other

The page you requested does not exist. A search for mo tag resulted in this page.

Reserve your domain name now!

Problem

I had a problem with my CuteMenu1 module and tried many times to fix it but just could not find the problem with Internet Explorer.

The fact is that I created dropdowns that are supposed to be full width, but that did not work, somehow.

I wanted each item to have a pre-defined height. So in the style for my DIV I wrote this:

	.cutemenu-subitem {
		...
		height: 20px;
		...
	}

Worked beautifully in SeaMonkey and FireFox but somehow in Internet Explorer it would make the list of items look ragedy (i.e. each item would have a different width, seemingly based on the width of the text, I also had a problem with the text that would wrap, it still does wrap, actually, unless I use a nowrap style...)

So the problem is that whenever you define a height in your DIV tag, Internet Explorer marks both sizes, the width and the height, as defined by the user. This probably sets the width to 1px and enlarge as required to the minimum width necessary for the label.

Solution

To fix the problem, I moved the height declaration inside the anchor tag defined within the DIV tag.

<DIV style="..."><A style="height: 20px;">link</A></DIV>

That works in both set of browsers!

You can see the result in the menus at the top of this page. It is a CuteMenu too.

  • 1. This is a drupal module. You happen to have Drupal? Download CuteMenu now then!

You are welcome to comment about other IE bugs here

I know IE is full of bugs and that's quite annoying. This one was real tricky! Took me forever to find. I'd bet other people knew about such problems, but I could not find anything on the Internet about it.

How can I track your comments?

Look below, there are two RSS feeds. One of them is specific to the comments on this page and the other to all comments on the site.

Fantastic!!!

But why do you have all these comments on this page?! Hey???

MO Auto-add terms supports comments now

Yes! I wrote a Drupal 6 module to check for terms automatically and it can now get those found in the comments to index your site. But for that to work properly, I had to add an mo_autoaddterms_comment() function (callback) and these comments are here for me to test the functioning.

Check this out!

Having problems maintaining your site index?
Each time you read a page you notice that some terms are missing for that page?
Or old terms that do not apply anymore are still being used there?

We have your solution: MO Auto add terms to automatically
add (and remove) terms from your Drupal website pages.

Syndicate content

You like this theme?
Get it now for your
Drupal v6.x website!
The White Theme

     

Terms of Site Index

Find the page/content you are looking for with our index.