Home

drupal.ls.net

Navigation

  • About
  • Blogs
  • Contact
  • Forums
  • Image galleries
  • Log in
  • Feed aggregator
Home Blogs webmaster's blog
    • Drupal
    • LSNet

Core security advisories

  • SA-CORE-2010-001 - Drupal core - Multiple vulnerabilities
  • SA-CORE-2009-009 - Drupal Core - Cross site scripting
more

Contrib security advisories

  • SA-CONTRIB-2010-026 - Monthly Archive by Node Type - Access Bypass
  • SA-CONTRIB-2010-025 - TinyMCE - Cross Site Scripting (XSS)
  • SA-CONTRIB-2010-024 - eTracker - Cross Site Scripting
  • SA-CONTRIB-2010-023 - Workflow - Cross Site Scripting
  • SA-CONTRIB-2010-022 - Internationalization - Arbitrary code execution
more

Drupal.org jobs feed

  • Drupal Developer | Remy Corporation
  • Drupal Architect | ReqRoute,Inc
  • Senior Drupal Developer 10-114 | Pacific Coast Information Systems (PCIS)
  • Drupal Consultant for Q&A Session | AQUENT on behalf of client
  • Miami-based Drupal shop hiring Lead Developer and Lead Designer | Woven
more

Visit our client's websites

  • http://bridle-creek.com
  • http://demo.mydllurth.com
  • http://downtowngalax.com
  • http://drupal.ls.net
  • http://crossleft.org/
  • http://cuttingedgelaw.com/
  • http://new-river.dixongarner.com/
  • http://import.mydllurth.com
  • http://lyceum.mydllurth.com
  • http://mtvaleumc.org
  • http://news.mydllurth.com
  • http://oldcranks.com
  • http://psychguides.com
  • http://starbuck.net
  • http://stewartfurniture.com
  • http://tarvid.org
  • http://ubercart.ls.net
  • http://wolfeservices.net

Events

« July 2008 »
SunMonTueWedThuFriSat
12345
6789101112
13141516171819
20212223242526
2728293031

CSS - once more with feeling

Submitted by webmaster on Tue, 01/13/2009 - 23:17

We all know CSS is a pit. Things which soar in one browser, crash in another. There is a reason for that.

http://www.webdevout.net/browser-support-css provides a neat list of things you probably don't know about CSS and browser developers don't either. I've been in pursuit of a CSS mechanism for printing and one of the things you would want for that purpose is @page. For some reason, "The size of a page box cannot be specified in CSS 2.1.". If anybody discovers the wisdom behind that, please clue me in.

At my left hand, there is a copy of Cascading Style Sheets, 2nd Ed., by Hakon Wium Lie and Bert Bos. There is something charming about the interplay of particle physicists and literary style. The second edition can be found for $5 including shipping on the 'net. On my desktop are the files from hartija. Drop in an @page rule

@page {
  margin: 0.5in;
  size: 5.5in 8.5in}

in print.css, open the html file in Firefox and ... Nothing.

 

Back in the browser-support-css page, only Opera supports the @page rule. On Ubuntu, Opera has to be downloaded from opera.com, synaptic can't find the deb, but with only a few minutes of screwing around after hours of trying to figure out why by little CSS patch didn't do anything, and ... Nothing.

But, click on print preview and, por fin!, I have succeeded in printing on half a page in the wrong orientation. Fixing that will be tomorrow's excellent adventure.

The secret may be here - http://www.princexml.com/

  • webmaster's blog
  • Login or register to post comments
  • Printer-friendly version
  • Send to friend
  • PDF version
  • Delicious
  • Digg
  • StumbleUpon
  • Facebook
  • Google
  • Technorati

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password
Powered by Drupal, an open source content management system
RoopleTheme