By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,724 Members | 1,655 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,724 IT Pros & Developers. It's quick & easy.

IE6 <P><SPAN> and the last line

P: n/a
Hi. I'm having problems with the following code. The last line seems to be
in the wrong place, its been moved down slightly by about 3 pixels in IE6.

<html>
<head>
<title>Lorem Ipsum</title>
</head>
<body>
<p>
<span style="font-size:10px;">Lorem ipsum dolor sit amet, consectetuer
adipiscing elit. Fusce vitae tellus ac orci consequat consequat.
Pellentesque porttitor velit eget ipsum. Nullam non nisl. Quisque dapibus,
sapien vitae convallis porta, sapien tellus facilisis pede, eget suscipit
tortor augue eu nibh. Vestibulum nonummy tristique dolor. Aliquam dapibus
justo quis lacus. Proin eros. Proin a risus. Morbi ut augue. Nullam ac velit
vitae libero condimentum hendrerit. Aliquam erat volutpat.</span>
</p>
</body>
</html>

Sorry for posting code like this. Why does this happen in IE and not in any
other browser? Is there a workaround?

Thanks
Andy
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Andrew Tang" <An*********@hotmail.com> skrev :
<p>
<span style="font-size:10px;">Lorem ipsum dolor sit amet, consectetuer
adipiscing elit. Fusce vitae tellus ac orci consequat consequat.
Pellentesque porttitor velit eget ipsum. Nullam non nisl. Quisque dapibus,
sapien vitae convallis porta, sapien tellus facilisis pede, eget suscipit
tortor augue eu nibh. Vestibulum nonummy tristique dolor. Aliquam dapibus
justo quis lacus. Proin eros. Proin a risus. Morbi ut augue. Nullam ac velit
vitae libero condimentum hendrerit. Aliquam erat volutpat.</span>
</p>
</body>
</html>

Sorry for posting code like this. Why does this happen in IE and not in any
other browser? Is there a workaround?


It looks like it's the <span>.

Why do you use span and not just <p style="font-size:10px;"> ?

Then there's no problem in IE as I see it.
--
Knud
Jul 20 '05 #2

P: n/a

"Knud Gert Ellentoft" <el*******@mail.tele.invalid> wrote in message
news:hr********************************@dtext.news .tele.dk...

It looks like it's the <span>.

Why do you use span and not just <p style="font-size:10px;"> ?

Then there's no problem in IE as I see it.
--
Knud


Yes I know, but its an autogenerated thing and I am also trying to
understand why since it shouldn't be doing it in the first place. It looks
like that there is a space character before and after the span that has a
bigger font size (default font size) and thus moving everything down.

Thus putting <p> and <span> on the same line, no carriage return and so
removing the space character, the paragraph is fixed. Seems like a bug as
space characters height should be ignored.

Andy
Jul 20 '05 #3

P: n/a
On Mon, 27 Oct 2003 14:25:19 -0000, "Andrew Tang"
<An*********@hotmail.com> wrote:

Thus putting <p> and <span> on the same line, no carriage return and so
removing the space character, the paragraph is fixed. Seems like a bug as
space characters height should be ignored.


This has been an issue with IE (Win versions at least) for a while as
I've also noticed it using <small>.

--
Bob
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.