473,394 Members | 1,797 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,394 software developers and data experts.

IE6 <P><SPAN> and the last line

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
3 3259
"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

"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Alexander Ross | last post by:
I have an html snippet, and I want to remove any <span> tags that have a specific attribute (class=none) ex. The quick brown <span class="animal">fox</span> jumped <span...
13
by: Mikko Ohtamaa | last post by:
From XML specification: The representation of an empty element is either a start-tag immediately followed by an end-tag, or an empty-element tag. (This means that <foo></foo> is equal to...
5
by: Kathryn | last post by:
Good morning! I am having a problem with a span. I have items, of which I only want to show the first X characters on the screen. If the user prints the page, I want the entire item to print....
18
by: Timothy Casey | last post by:
Thanks in advance... =~= Timothy Casey South Australia worloq@iprimus.com.au Formerly: casey@smart.net.au
9
by: Wang, Jay | last post by:
Hello, all, I would like to enable some text between <SPAN url="http://www.testserver.com/">WORD TO BE DRAGGED </SPAN>. I put some javascript and it will extract http://www.testserver.com/ from...
6
by: hsomob1999 | last post by:
so i have a <ul> and I allow the user to append items to it. The problem is that on mozilla the <span class="line"> which is just a line to divide the sections gets overlaped and doesnt move down...
2
by: xhe | last post by:
I met a very headache problem in javascript, I think this might be difference between IE and NS / Safari. I have a text area <form> <textarea name='tex1' onkeyup='displayit();'></textarea>...
1
by: shivani anand | last post by:
Hi.. I have a doubt. I have some code.. <span class="test1"> my screeen </span> I simply changed it to. <h2 class = "test1"> my screen </h2>
1
by: rynato | last post by:
I have a <spanof width X px and height Y px. I want to read the text of an article, which is stored in a mySQL table, and pass to that <spanonly just enough text to fit in it, along with a 'read...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.