Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE7 and page zooming

Status
Not open for further replies.

okiiyama

IS-IT--Management
Jan 3, 2003
269
US
Using the page zoom in IE7, the following code at certain zoom levels looks funny. Is this a problem with my code or with IE7's zoom feature?
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
*{
	font-size: 14px;
}
</style>
</head>

<body>
<div style="padding-left: 8px; background-color: #eeeeee;">
<div style="padding-left: 32px; background-color: #ffffff;"><span style="color: #0033cc; font-size: 16px; font-weight: bold;">Your Microsoft applications will always be available, within a <span style="text-decoration: underline;">single</span> click</span></div>
</div>
</body>
</html>
 
What exactly is funny? Image zoom in IE7 primarily deals with enlarging fonts. I also noticed that it has problems with inline elements sometimes and it looks like it gets confused with the inner span in your case. Your code is ok where IE zoom fails, but for the little border on the left, I would use border.

___________________________________________________________
[small]Do something about world cancer today: PACT[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top