473,804 Members | 3,057 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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;">Lor em 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 3285
"Andrew Tang" <An*********@ho tmail.com> skrev :
<p>
<span style="font-size:10px;">Lor em 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*********@ho tmail.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
2577
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 class="none">over</span> the lazy dog should become The quick brown <span class="animal">fox</span> jumped over the lazy dog
13
3406
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 <foo/>) From XHTML specification:
5
29617
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. Thanks to Els, I have a way to do this, see below, directly from the View Source: This is a long piece of text. This is a long piece of text. This
18
4404
by: Timothy Casey | last post by:
Thanks in advance... =~= Timothy Casey South Australia worloq@iprimus.com.au Formerly: casey@smart.net.au
9
6846
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 the the span element when I select the whole text in the SPAN and drag it. However, I want to drag it without have to select the words between the span element. The default mouse action will only select the words when i move the mouse. Can...
6
2836
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 and adjust to the newly added items like it does in iE. It just occured to me that i dont really have to use a span, and a html <hr> tag could do the trick -I will go try. But aside from that could some one explain why this occurs? And will I get...
2
19590
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> </form> <span id="txtValue"></span> <script language='javascript'>
1
6888
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
6073
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 more' hyperlink which will take the user to the full article. I do not want any overflow scroll bars to show. The font-size is set by external stylesheet in em's. How can I determine how much text is enough? Approaches I've thought of:
0
9706
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10583
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10337
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10082
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7622
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5654
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3822
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2995
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.