Ah! Discovered problem. It's not an HTML problem at all. When I was first setting up the PC I used the Windows 7 screen resolution option to "make text and other items larger or smaller" and set 125%.
Put that back to default and it's ok. Presumably Microsoft progs including IE8 cater for of this Windows 7 option but others don't.
Bah. If I have to do all my dev in default mode I will need stronger glasses.
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Reply to: IE8/Windows 7 screwing up sizes
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "IE8/Windows 7 screwing up sizes"
Collapse
-
Cheers but that width method makes no difference either and I always use px in style. Div method may be problem on proper page (checked in online validation thingy) as is using div with auto scale/auto margin to centralise the page.
It sure isn't! Was trying to change my index page so tabs used inline li instead of tables, can't get anything to line up quite right - when I discovered above, in IE only.
Actually not sure I haven't got a broader problem with win 7 or my graphics. Import a VB6/VB.net project to this PC and all the control size/positions have similarly been scaled. I know VB.net has an auto scale but don't think that should change the values in properties before running it. They never have before when I've tested at different resolutions. A VB6 program splash screen auto scales too.Last edited by xoggoth; 31 January 2010, 10:34.
Leave a comment:
-
Originally posted by NickFitz View Post
Did I say ? Well, I'll say it again:
Don't ever believe anybody who tells you that HTML is easy
__________________________________________
Last edited by NickFitz : Today at 04:34. Reason: Doh! & Doh! again...
Leave a comment:
-
<img> is an inline element, and <body> may only have block (or script) element children. However, I find the HTML 4.01 spec somewhat ambiguous in this regard, as <img> is one of those peculiar beasts known as "inline replaced elements", and the validator is happy with an <img> being a child of <body>
What is probably happening is that IE is stretching the image to the width of the <body> element, which will be dependent on the size of the browser window; on a 1024px-wide-screen, deducting the width of window borders, a vertical scrollbar, and the default padding[*] on the body element makes 980px sound about right.
Try wrapping the <img> in a <div>, which is a block-level element and will simply expand to meet the needs of its content. Then the <img> will (presumably) no longer grow beyond its natural dimensions, as rather than being contained by an element that seeks to expand it to fill itself, it will instead be contained by an element that is itself required to expand to accommodate it.
Did I say ? Well, I'll say it again:
Don't ever believe anybody who tells you that HTML is easy
[*] EDIT: I meant "default margins"
EDIT again: you say that specifying the width in a style rule doesn't seem to work. Off the top of my head, I would conjecture that you are specifying the rule as something like "width: 784;" which won't work in strict rendering mode (triggered by the doctype declaration) as that only works in quirks mode, for the sake of retaining compatibility with a bug that originated in IE3. The rule should be "width: 784px;", as the "px" (specifying the units of the length value) is required in CSS. If this isn't where it was going wrong then I can only assume that it's some kind of weird misbehaviour by IE8. In that case feel free to post the relevant code; I'll have a play with it and, if necessary, report a bug to Microsoft.
Leave a comment:
-
IE8/Windows 7 screwing up sizes
Here is a really complicated webpage:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<img src="image_files/tabstop.gif" alt="">
</body>
</html>
Open it in Firefox,Opera, Chrome or Safari, do a print screen and paste into paint prog and the image tabstop.gif is 784 pixels wide as it should be. In IE8 it is 980 pixels wide and explicitly setting the width in a style makes no difference!
Anyone else seen wierd problems like these?Last edited by xoggoth; 31 January 2010, 00:24.Tags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Streamline Your Retirement with iSIPP: A Solution for Contractor Pensions Sep 1 09:13
- Making the most of pension lump sums: overview for contractors Sep 1 08:36
- Umbrella company tribunal cases are opening up; are your wages subject to unlawful deductions, too? Aug 31 08:38
- Contractors, relabelling 'labour' as 'services' to appear 'fully contracted out' won't dupe IR35 inspectors Aug 31 08:30
- How often does HMRC check tax returns? Aug 30 08:27
- Work-life balance as an IT contractor: 5 top tips from a tech recruiter Aug 30 08:20
- Autumn Statement 2023 tipped to prioritise mental health, in a boost for UK workplaces Aug 29 08:33
- Final reminder for contractors to respond to the umbrella consultation (closing today) Aug 29 08:09
- Top 5 most in demand cyber security contract roles Aug 25 08:38
- Changes to the right to request flexible working are incoming, but how will contractors be affected? Aug 24 08:25
Leave a comment: