The Geek Forum

  • April 28, 2024, 05:07:20 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

Due to the prolific nature of these forums, poster aggression is advised.

*

Recent Forum Posts

Shout Box

Members
Stats
  • Total Posts: 129555
  • Total Topics: 7152
  • Online Today: 270
  • Online Ever: 1013
  • (January 12, 2023, 01:18:11 AM)

Author Topic: Neat little trick  (Read 1890 times)

BizB

  • Forum Moderator
  • Hacker
  • *
  • Coolio Points: +439/-15
  • Offline Offline
  • Gender: Male
  • Posts: 4324
  • Keep making circles
    • View Profile
Neat little trick
« on: May 06, 2009, 04:05:50 PM »

I have a web page that, when printed, must be exactly two pages long.  That's because it's printed many times over and it's printed on front and back of a page.  We've been struggling with how to force it to fit on two pages, until now.

Internet explorer automatically compresses the font based on the width of the page.  So, even if you have specified <font size='5'> for all of your text, putting a div on the page...

<div style="width: 2000px;">&nbsp;</div>

...will convince IE to create ant-tracks font size and viola!  My print-out is exactly 2 pages long.
Logged
Without me, it's just 'aweso'.

Min

  • Nice Ex-Hackernetwork Moderator
  • Forum Moderator
  • Hacker
  • *
  • Coolio Points: +468/-13
  • Offline Offline
  • Gender: Female
  • Posts: 5970
  • Slacker Wiseass
    • View Profile
Re: Neat little trick
« Reply #1 on: May 06, 2009, 06:43:58 PM »

Is that for your little planner thing?
Logged
Flammable : Inflammable :: Duh : No Duh
"I TYPE 120 WORDS PER MINUTE, BUT IT'S IN MY OWN LANGUAGE!"  -ivan
1,180,463,441,680 Coolio Points

BizB

  • Forum Moderator
  • Hacker
  • *
  • Coolio Points: +439/-15
  • Offline Offline
  • Gender: Male
  • Posts: 4324
  • Keep making circles
    • View Profile
Re: Neat little trick
« Reply #2 on: May 06, 2009, 07:06:09 PM »

No.  It's a work thing.
Logged
Without me, it's just 'aweso'.