measurements with CSS + preloading images

    Date: 12/30/05 (WebDesign)    Keywords: php, browser, css

    so i see people using px, em, and so on. is there a 'better' one to use? i have a css/php layout set up, and it looks as i want it to in firefox and safari, but the measurements are a bit off in IE. is that a result of using a wrong measurement type or is that just another thing to be pissed off at IE over?


    my other issue is that i have a css-based menu that swaps images on rollover. my only problem with it is that there's that moment where the rollover image loads up the first time each menu option is rolled over, causing the menu choice to just poof for a moment or two. i know that it's possible to display:none those things so they preload, but my only problem with that is that all those things show up on all text browsers like lynx. it's possible i'm just missing what i should be doing to make it not show up in an all-text browser as well, but i'm just wondering what options i have when it comes to preloading images that'll be used in a rollover menu.

    the code itself looks like this:

    < a id="home" href="index.php">< img src="menu/homeblank.gif" alt="HOME"/> </a>

    while the css file has...

    a img {height: 15px; border-width: 0; background: top left no-repeat;}

    a#home img {background-image: url(menu/homeoff.gif);}
    a#home:hover img {background-image: url(menu/homeon.gif);}

    Source: http://www.livejournal.com/community/webdesign/1034767.html

« divs || okay, why isn't this... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home