473,699 Members | 2,570 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE7 bug - font-style: italic; not harmless?

Here's a strange thing which took me hours to track down. I'd have
thought that 'font-style: italic;' was generally harmless, but
apparently not to IE7 and/or Vista.

The stripped-down version of the web page is at
http://www.wessex100.org.uk/index_demo.html and the stylesheet is at
http://www.wessex100.org.uk/shared/wessex_demo.css . Both validate.

The odd behaviour affects the width of the page displayed and thus the
placing of the centered background image. Everything works as it
should with WinXP running Firefox, Opera, Safari and IE6, and with
Vista running Firefox. It goes wrong with Vista running IE7.

To make the page display correctly in Vista/IE7 I've found I have to
take out two occurrences of font-style: italic; . The demo version has
these suppressed, but if you take either of them out where I've
indicated you'll see the effect. None of the other OS/browser
combinations I've mentioned are affected.

Is this a known bug, and can anyone explain it?
Sep 27 '08 #1
8 2736
To make it easier to see what I'm on about, I've uploaded the same
page with a different stylesheet, this time with the offending lines
activated. The effect's the same with one line or both.

http://www.wessex100.org.uk/index_demo2.html
http://www.wessex100.org.uk/shared/wessex_demo2.css

On Sat, 27 Sep 2008 12:27:43 +0100, Rip van Winkle <rv*@yoohoo.co. uk>
wrote:
>Here's a strange thing which took me hours to track down. I'd have
thought that 'font-style: italic;' was generally harmless, but
apparently not to IE7 and/or Vista.

The stripped-down version of the web page is at
http://www.wessex100.org.uk/index_demo.html and the stylesheet is at
http://www.wessex100.org.uk/shared/wessex_demo.css . Both validate.

The odd behaviour affects the width of the page displayed and thus the
placing of the centered background image. Everything works as it
should with WinXP running Firefox, Opera, Safari and IE6, and with
Vista running Firefox. It goes wrong with Vista running IE7.

To make the page display correctly in Vista/IE7 I've found I have to
take out two occurrences of font-style: italic; . The demo version has
these suppressed, but if you take either of them out where I've
indicated you'll see the effect. None of the other OS/browser
combinations I've mentioned are affected.

Is this a known bug, and can anyone explain it?
Sep 27 '08 #2

In article <5o************ *************** *****@4ax.com>, on Sat, 27 Sep
2008 12:27:43 +0100, Rip van Winkle wrote:

| Here's a strange thing which took me hours to track down. I'd have
| thought that 'font-style: italic;' was generally harmless, but
| apparently not to IE7 and/or Vista.
|
| The stripped-down version of the web page is at
| http://www.wessex100.org.uk/index_demo.html and the stylesheet is at
| http://www.wessex100.org.uk/shared/wessex_demo.css . Both validate.
|
| The odd behaviour affects the width of the page displayed and thus the
| placing of the centered background image. Everything works as it
| should with WinXP running Firefox, Opera, Safari and IE6, and with
| Vista running Firefox. It goes wrong with Vista running IE7.
|
| To make the page display correctly in Vista/IE7 I've found I have to
| take out two occurrences of font-style: italic; . The demo version has
| these suppressed, but if you take either of them out where I've
| indicated you'll see the effect. None of the other OS/browser
| combinations I've mentioned are affected.
|
| Is this a known bug, and can anyone explain it?

"Bug: IE7 absolutely positioned italics"
<http://muffinresearch. co.uk/archives/2006/12/28/bug-ie7-absolutely-positioned-italics/>

May be your problem.

p{ overflow: auto; } is suggested as a workaround.
--
Rasal Postill
Dance your Life - <http://www.danceyourli fe.eu>
Sep 27 '08 #3
Rip van Winkle wrote:
Here's a strange thing which took me hours to track down. I'd have
thought that 'font-style: italic;' was generally harmless, but
apparently not to IE7 and/or Vista.

The stripped-down version of the web page is at
http://www.wessex100.org.uk/index_demo.html and the stylesheet is at
http://www.wessex100.org.uk/shared/wessex_demo.css . Both validate.

The odd behaviour affects the width of the page displayed and thus the
placing of the centered background image. Everything works as it
should with WinXP running Firefox, Opera, Safari and IE6, and with
Vista running Firefox. It goes wrong with Vista running IE7.

To make the page display correctly in Vista/IE7 I've found I have to
take out two occurrences of font-style: italic; . The demo version has
these suppressed, but if you take either of them out where I've
indicated you'll see the effect. None of the other OS/browser
combinations I've mentioned are affected.

Is this a known bug, and can anyone explain it?
Its another peekaboo bug with IE that I unfortunately ran up against a
while ago. Frustrating thing it is a new but to IE7 and not present with
earlier versions. It happens when you have any italic text adjacent to a
floated block, it the italic touches the boundary of the float
everything below the italic text disappears! The culprit in my case was
the EM element.

http://www.littleworksstudio.com/temp/l2340/ver2.php

My solution was to change EM's default style to bold.

http://www.littleworksstudio.com/temp/l2340/

Gérard Talbot has been documenting IE bugs and it can be an informative
resource:

http://www.gtalbot.org/BrowserBugsSection/MSIE7Bugs/
Bugs in MSIE 7 for Windows

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Sep 27 '08 #4
On Sat, 27 Sep 2008 11:21:12 -0400, "Jonathan N. Little"
<lw*****@centra l.netwrote:
>Rip van Winkle wrote:
>Here's a strange thing which took me hours to track down. I'd have
thought that 'font-style: italic;' was generally harmless, but
apparently not to IE7 and/or Vista.

The stripped-down version of the web page is at
http://www.wessex100.org.uk/index_demo.html and the stylesheet is at
http://www.wessex100.org.uk/shared/wessex_demo.css . Both validate.

The odd behaviour affects the width of the page displayed and thus the
placing of the centered background image. Everything works as it
should with WinXP running Firefox, Opera, Safari and IE6, and with
Vista running Firefox. It goes wrong with Vista running IE7.

To make the page display correctly in Vista/IE7 I've found I have to
take out two occurrences of font-style: italic; . The demo version has
these suppressed, but if you take either of them out where I've
indicated you'll see the effect. None of the other OS/browser
combinations I've mentioned are affected.

Is this a known bug, and can anyone explain it?

Its another peekaboo bug with IE that I unfortunately ran up against a
while ago. Frustrating thing it is a new but to IE7 and not present with
earlier versions. It happens when you have any italic text adjacent to a
floated block, it the italic touches the boundary of the float
everything below the italic text disappears! The culprit in my case was
the EM element.

http://www.littleworksstudio.com/temp/l2340/ver2.php

My solution was to change EM's default style to bold.

http://www.littleworksstudio.com/temp/l2340/

Gérard Talbot has been documenting IE bugs and it can be an informative
resource:

http://www.gtalbot.org/BrowserBugsSection/MSIE7Bugs/
Bugs in MSIE 7 for Windows

Thanks guys for the info and links. Looks like I've got a fairly
standard instance of this problem.

And the good news is - the overflow: auto workaround works. I've added
it to the two <div>s where the problem was, and it's sorted. Good ol'
Microsoft, eh?
Sep 27 '08 #5
Rip van Winkle wrote:
On Sat, 27 Sep 2008 11:21:12 -0400, "Jonathan N. Little"
<lw*****@centra l.netwrote:
>Rip van Winkle wrote:
>>Here's a strange thing which took me hours to track down. I'd have
thought that 'font-style: italic;' was generally harmless, but
apparently not to IE7 and/or Vista.

The stripped-down version of the web page is at
http://www.wessex100.org.uk/index_demo.html and the stylesheet is at
http://www.wessex100.org.uk/shared/wessex_demo.css . Both validate.

The odd behaviour affects the width of the page displayed and thus the
placing of the centered background image. Everything works as it
should with WinXP running Firefox, Opera, Safari and IE6, and with
Vista running Firefox. It goes wrong with Vista running IE7.

To make the page display correctly in Vista/IE7 I've found I have to
take out two occurrences of font-style: italic; . The demo version has
these suppressed, but if you take either of them out where I've
indicated you'll see the effect. None of the other OS/browser
combination s I've mentioned are affected.

Is this a known bug, and can anyone explain it?
Its another peekaboo bug with IE that I unfortunately ran up against a
while ago. Frustrating thing it is a new but to IE7 and not present with
earlier versions. It happens when you have any italic text adjacent to a
floated block, it the italic touches the boundary of the float
everything below the italic text disappears! The culprit in my case was
the EM element.

http://www.littleworksstudio.com/temp/l2340/ver2.php

My solution was to change EM's default style to bold.

http://www.littleworksstudio.com/temp/l2340/

Gérard Talbot has been documenting IE bugs and it can be an informative
resource:

http://www.gtalbot.org/BrowserBugsSection/MSIE7Bugs/
Bugs in MSIE 7 for Windows


Thanks guys for the info and links. Looks like I've got a fairly
standard instance of this problem.

And the good news is - the overflow: auto workaround works. I've added
it to the two <div>s where the problem was, and it's sorted. Good ol'
Microsoft, eh?
Unfortunately, the only solutions in my scenario was was either remove
the italic or the floats!

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Sep 27 '08 #6
On Sat, 27 Sep 2008 17:58:51 -0400, "Jonathan N. Little" <lw*****@centra l.netwrote:
>Rip van Winkle wrote:
>On Sat, 27 Sep 2008 11:21:12 -0400, "Jonathan N. Little"
<lw*****@centr al.netwrote:
>>Rip van Winkle wrote:
Here's a strange thing which took me hours to track down. I'd have
thought that 'font-style: italic;' was generally harmless, but
apparently not to IE7 and/or Vista.

The stripped-down version of the web page is at
http://www.wessex100.org.uk/index_demo.html and the stylesheet is at
http://www.wessex100.org.uk/shared/wessex_demo.css . Both validate.

The odd behaviour affects the width of the page displayed and thus the
placing of the centered background image. Everything works as it
should with WinXP running Firefox, Opera, Safari and IE6, and with
Vista running Firefox. It goes wrong with Vista running IE7.

To make the page display correctly in Vista/IE7 I've found I have to
take out two occurrences of font-style: italic; . The demo version has
these suppressed, but if you take either of them out where I've
indicated you'll see the effect. None of the other OS/browser
combinatio ns I've mentioned are affected.

Is this a known bug, and can anyone explain it?
Its another peekaboo bug with IE that I unfortunately ran up against a
while ago. Frustrating thing it is a new but to IE7 and not present with
earlier versions. It happens when you have any italic text adjacent to a
floated block, it the italic touches the boundary of the float
everything below the italic text disappears! The culprit in my case was
the EM element.

http://www.littleworksstudio.com/temp/l2340/ver2.php

My solution was to change EM's default style to bold.

http://www.littleworksstudio.com/temp/l2340/

Gérard Talbot has been documenting IE bugs and it can be an informative
resource:

http://www.gtalbot.org/BrowserBugsSection/MSIE7Bugs/
Bugs in MSIE 7 for Windows


Thanks guys for the info and links. Looks like I've got a fairly
standard instance of this problem.

And the good news is - the overflow: auto workaround works. I've added
it to the two <div>s where the problem was, and it's sorted. Good ol'
Microsoft, eh?

Unfortunatel y, the only solutions in my scenario was was either remove
the italic or the floats!
Have you tried &nbsp; each side of the italics? MSFT never did get the idea
that italics lean outside of the baseline text size rendering box, they've
had this problem since before win95 came out :/

Grant.
--
http://bugsplatter.id.au/
Sep 28 '08 #7
Grant wrote:
Have you tried &nbsp; each side of the italics? MSFT never did get the idea
that italics lean outside of the baseline text size rendering box, they've
had this problem since before win95 came out :/
Aside of it being really ugly to have to wrap EM element with &nbsp;
entities... I tried your suggestion anyways...it didn't work.

Face it, IE is just a POS browser! Can't wait for the butt-load of new
"feature" version 8 with provide!

<dt>IE8</dt>
<dd>Yet another code fork!</dd>

<sigh>

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Sep 28 '08 #8
On Sat, 27 Sep 2008 12:27:43 +0100, Rip van Winkle <rv*@yoohoo.co. uk>
wrote:
>Here's a strange thing which took me hours to track down. I'd have
thought that 'font-style: italic;' was generally harmless, but
apparently not to IE7 and/or Vista.

The stripped-down version of the web page is at
http://www.wessex100.org.uk/index_demo.html and the stylesheet is at
http://www.wessex100.org.uk/shared/wessex_demo.css . Both validate.

The odd behaviour affects the width of the page displayed and thus the
placing of the centered background image. Everything works as it
should with WinXP running Firefox, Opera, Safari and IE6, and with
Vista running Firefox. It goes wrong with Vista running IE7.

To make the page display correctly in Vista/IE7 I've found I have to
take out two occurrences of font-style: italic; . The demo version has
these suppressed, but if you take either of them out where I've
indicated you'll see the effect. None of the other OS/browser
combinations I've mentioned are affected.

Is this a known bug, and can anyone explain it?

Just to close this off and for the benefit of anyone Googling this
thread I've loaded a very simple demo of the problem and the
workaround at
http://rnetworks2002.users.btopenwor...alics_demo.zip

The earlier links have been removed.

Thanks again for pointing me in the right direction.
Sep 29 '08 #9

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

Similar topics

133
6573
by: Philipp Lenssen | last post by:
Why is there no standardized and well-working way for a web-page to offer the font for download/embed it, in order to be displayed on the page? No matter what you think of the preferred font of a designer, many web-sites offer an image of the text instead to "force" this font -- which certainly can't be the solution (it's a bit of a hassle to maintain and create).
115
7195
by: J | last post by:
I've run CSSCheck on my style sheets and I always get a warning similar to this: "font: bold 9pt/100% sans-serif Warning: Absolute length units should not generally be used on the Web ..." Yet if I use 'x-small' instead of 9pt, I get bigger type on IE6 and smaller type on Mozilla. My choices seem to be:
10
4045
by: Richard R Plourde | last post by:
I've got a problem that IE doesn't seem to use the entire font unicode subgroups from a hinted font file. When I display the following web page in IE 6 as opposed to Firefox 1.0 PR. Check out the web page in question... http://clientserver.home.comcast.net/unicode.html If you examine, for a few examples, characters such as square root (&amp;#8730;), prime (&amp;#8242;) and double prime (&amp;#8243;).
9
3775
by: Dr John Stockton | last post by:
Assuming default set-ups and considering all reasonable browsers, whatever that may mean, what should an author expect that his readers in general will see (with visual browsers) for a page with body like <br><br> Abc <font size=+1> Abc <font size=+1> Abc <font size=+1> Abc <font size=+1> Abc <font size=+1>
3
3664
by: pnp | last post by:
I have created a coposite user control of a text box and a label. I have exposed the font of the textbox property through a property of the control but every time I try to change that through the property grid of the designer when I use the composite control in a form, after a rebuild the changes seem to get lost! I don't see the Font property anywhere in the inner code... What am I doing wrong?
4
1938
by: BobAchgill | last post by:
Is it possible to use a font that is not stored in the windows font directory? I would like to use a font that is stored in my application directory... But this does not seem to work... rtbMyRichTextBox.SelectionFont = New Font(CurDir() + "\" + "MyFont.ttf", 12, FontStyle.Bold) Thanks!
60
4771
by: deko | last post by:
As I understand it, most browser manufacturers have agreed on 16px for their default font size. So, this should be an accurate conversion for percentages: px % 16 = 100 14 = 87.5 13 = 81.25
16
2453
by: maya | last post by:
I have heard so much preaching here about how font sizes should be set as percentages so users can change font-sizes on their browsers... ok, so now at work am working on a site where we need to do precisely that b/c it's for an audience that some users maybe be visually-impaired.. but I can't get it to work right, problem is that font sizes are not consistent across diff elements.. code: body {text-align:center; /* to center...
7
43913
by: carterweb | last post by:
This is how I do it now. 1. Determine the dimensions of the rectangle. 2. Set a my font size to a fixed maximum size. 3. Apply the font my string and measure the string using the graphics object. 4. If string size is less than the size of the rectangle, we are done.
2
6567
by: Patti | last post by:
I am building an application using VB.NET 1.1 and I have an issue with Font properties in my Radio Button Lists and Check Box Lists. My issue is that the Font Names and Font Size for these controls have become "Read Only" and I have no idea how they became read only. I didn't set anything to read only and was able to change these fonts just last week - so I must have messed something up. Below is a snippet of my HTML code I used...
0
8689
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
9035
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
8885
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...
0
7752
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4376
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
4631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3058
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2348
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2010
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.