473,387 Members | 1,420 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Internet Explorer extra space using float

yb
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>

Sep 29 '06 #1
1 4406
yb
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

Sep 29 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: mappo | last post by:
There are about a million posts on how to get rid of the extra space _after_ the form end-tag, but I can't find any that solve my problem: extra space _in_ the form tag. I have a table nestled...
6
by: John Bokma | last post by:
http://johnbokma.com/blog/2004/04/11/ Somehow, the vertical after the next/prev navigation is almost 2 times more with IE (6.0), compared to FireFox (0.8) (Windows XP). Is this an IE bug, and...
16
by: Uncle Pirate | last post by:
This has me stumped. I am trying to use as little space as possible at the top of my document but Firefox/Mozilla insists on placing vertical space before any element. IE displays it correctly...
4
by: David | last post by:
copy and paste the following in a new html file and see it in IE: <form action=""> <button>Button1</button> <br> <button>ButtonButtonButton11</button>
3
by: ckirchho | last post by:
Halo, I am trying to realize a two column layout basically like this: <html> <head> <style> leftCol { float: left; width: 15em; }
13
by: Alan Silver | last post by:
I was attempting to improve my understanding of CSS, and created a very simple page with a header, footer and three columns. This looked just like I expected in FF and Opera, but (surprise...
3
by: laredotornado | last post by:
Hi, This problem only affects PC IE. On a secured page (a page visited via https), there is a link that reads -- "Download HTML File". The link connects to this page <?php...
1
by: -Lost | last post by:
This is more of a post to inform, unless of course I am missing something fundamental, in which case I would appreciate anyone explaining it. Based on Mr. Michaux's camelizeStyle function I...
9
by: -Lost | last post by:
http://blogs.msdn.com/ie/archive/2007/12/19/internet-explorer-8-and- acid2-a-milestone.aspx Oh my! A somewhat standards compliant Internet Explorer? What about JavaScript? Not that it proves...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.