- 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: Resizing fonts
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 "Resizing fonts"
Collapse
-
That's a daft idea. When I resize a window it's because I want to be able to fit more text in it. It would be darned frustrating if the text just got bigger to compensate.
-
This can't be done in CSS. RH's JavaScript from Cameron Adams' site will work in a web browser, but not in an email client (or at least, not an email client any sane person would use).
You may also be interested in RFC 1855 ("Netiquette Guidelines") section 2.1.1, which states:If you include a signature keep it short. Rule of thumb is no longer than 4 lines.
For a long time now, my .sig on Slashdot has said:
Using HTML for email is like putting sound effects on your phone calls. Just say <em>no</em>.
HTH
Leave a comment:
-
Originally posted by Sysman View PostPlus there's the problem of testing. Testing a web page with the major browsers is achievable, but there are many more e-mail clients out there.
Leave a comment:
-
Originally posted by Sysman View PostWHS+
Plus there's the problem of testing. Testing a web page with the major browsers is achievable, but there are many more e-mail clients out there.
Leave a comment:
-
Originally posted by scotspine View Postbest spend your time on the phone. most folk with any sense (mind you, clients...!!!!!) have html email disabled so your lovingly crafted sig will render in plain text.
Plus there's the problem of testing. Testing a web page with the major browsers is achievable, but there are many more e-mail clients out there.Last edited by Sysman; 7 August 2009, 11:21.
Leave a comment:
-
HTML email is the way forward. I hate getting text-only emails... it's 2009 for crying out loud, we're not working on some Compuserve BBS.
Anyway... it sounds like a bad idea. I like HTML emails, but if the email starts 'animating' as I resize my email window I'm going to be put off. Don't you want your sig to be sized appropriately compared to the font used in your email?
Leave a comment:
-
Originally posted by realityhack View PostNF - any ideas?
Leave a comment:
-
With scripting... it would work like this (Snippet adapted from here):
Code:<html> <head> <script type="text/javascript"> <!-- function scale() { var sizer = "12em"; var smallest = "9px"; var ww = document.body.clientWidth; var aim = ww / (parseInt(sizer)); if (aim >= parseInt(smallest)) {document.body.style.fontSize = aim + "px";} else {document.body.style.fontSize = parseInt(smallest) + "px";} } --> </script> </head> <body onload="scale();" onresize="scale();"> <div style="text-align: justify; width: 50%"> Some text here Some text here Some text here Some text here Some text here Some text here Some text here Some text here Some text here Some text here Some text here Some text here </div> </body> </html>
Last edited by realityhack; 7 August 2009, 09:40.
Leave a comment:
-
I'd also love to see a solution to this as I don't believe it's workable (to my knowledge) in CSS3. Basically, the scaling (%) is applied differently to fonts than to the box model. The box model will scale to the browser real estate, fonts will scale to the default font value.
One (clumsy) way around this would be to create a vector image of the text, SVG perhaps, and apply width & height scaling to that. Bit of a hack, but without scripting... not sure it's straightforward at all.
NF - any ideas?
Leave a comment:
-
Originally posted by suityou01 View PostI want the text in the child divs to get smaller if the page is resized.
I'm willing to be proven wrong though - have you ever seen this technique elsewhere without the use of client-side script? If so, pass me a URL and I'll spend a couple of minutes pulling it apart and giving you some pointers.
Leave a comment:
-
best spend your time on the phone. most folk with any sense (mind you, clients...!!!!!) have html email disabled so your lovingly crafted sig will render in plain text.
Leave a comment:
-
Resizing fonts
FFS
Total brain blockage
I want a div, to be a percentage of page width. I want the text in the child divs to get smaller if the page is resized.
<div style="width:50%; font-size:50%;background-color:#ff0000; color:#ffffff;">
<div>Some rubbish</div>
</div>
As the page is resized, the div gets smaller, the text does not.
Help me along my merry way, I'm supposed to me on the phones this morning, not messing about with my email sig.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
- Micro-entity accounts: Overview, and how to file with HMRC Yesterday 09:27
- Will HMRC’s 9% interest rate bully you into submission? Nov 5 09:10
- Business Account with ANNA Money Nov 1 15:51
- Autumn Budget 2024: Reeves raids contractor take-home pay Oct 31 14:11
- How Autumn Budget 2024 affects homes, property and mortgages Oct 31 09:23
- Autumn Budget 2024: Reeves raids contractor take-home pay Oct 31 09:20
- Autumn Budget 2024: Umbrella companies hit, Employer NICs hiked, and BADR heading for 18% Oct 30 16:54
- Autumn Budget 2024: chancellor’s full speech Oct 30 16:34
- RecExpo got told this about Labour’s Employment Rights Bill… Oct 30 09:10
- A limited company just got one over HMRC on VAT; here’s how Oct 29 09:24
Leave a comment: