Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / September 2006



Tip: Looking for answers? Try searching our database.

Internet Explorer extra space using float

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
yb - 29 Sep 2006 16:05 GMT
Please try the example below
In Internet Explorer, when the mouse hovers between the right side of
the image and the left side of the text, the cursor changes (i.e.
Internet explorer is adding a tiny bit of space even though both
elements are float left)
I've tried setting margin, padding, and border to none, but doesn't
matter
This doesn't happen in firefox.
Is there an easy workaround? am I missing something? I htink this is an
IE bug.
-----------------
<html>
<head>
<style>
img, span { cursor : pointer; float : left; }
</style>
</head>
<body>
<div><img src="yourimagehere" alt="" width="50" height="50"/>
<span>Some Text</span></div>
</body>
</html>
yb - 29 Sep 2006 16:20 GMT
I need to adding padding to the left side of the the text, so one
solution is to double the left padding value of the span and position
it relatively from the left with the negative of the original padding
value

since the space IE is adding is so small, and from a few tests seems
constant, this at least works for my application, but I'm hoping theres
a better solution
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.