Search   Feed   Browse   Add
Feed items 1 - 10 of 15 for July 2008

Media style sheets FAQ

Answers to frequently asked questions about media dependent style sheets.

How can I print in a serif font - (Found July 8, 2008 )

A: To print a Web page with a serif style font, you should create a print media stylesheet with a font-family rule as below.
http://www.codestyle.org/css/media/FAQ.shtml#printserif

Help request - (Found July 8, 2008 )

Use the form below to submit a help request or general enquiry about the Code Style Web site. Read our guidelines on asking the right questions first.
http://www.codestyle.org/css/media/FAQ.shtml#help

How can I put a logo and VAT statement at the top of every page - (Found July 8, 2008 )

A: The main design decision you have to take is how to place the images and VAT statement on the pages. The simplest approach would be to define a class selector that would not be displayed in screen media mode, but has a background image and page break rules in print media mode, as below.
http://www.codestyle.org/css/media/FAQ.shtml#repeatboilerplate

How can I disable print preview - (Found July 8, 2008 )

A: Print preview is a Web browser feature rather than an HTML or CSS feature, but many browsers use print style sheets to render their print preview display. The simplest way to show a blank screen when the user selects print preview is to set the display property on the body element in your print media stylesheet...
http://www.codestyle.org/css/media/FAQ.shtml#disablepreview

How can I print tabs hidden with display: none - (Found July 8, 2008 )

A: It is difficult to say exactly what the solution is without seeing your source code. If your tabs are marked up as div elements and your Javascript sets their display property to none, then your print style sheet would need to set the display property to block.
http://www.codestyle.org/css/media/FAQ.shtml#displayoverride

My print style sheet is suppressing images! - (Found July 8, 2008 )

A: There is nothing implicit in a print style sheet that would prevent images from printing. However you want the pages to appear when printed, it must be declared in the rules of your print media style sheet. If you do not have an explicit rule for image elements, it may be that the container element for the images is set to not display, hence nothing it contains displays either.
http://www.codestyle.org/css/media/FAQ.shtml#printimages

How can I suppress printing of navigational elements - (Found July 8, 2008 )

A: To save readers from printing navigational elements, interactive forms and other content that is only relevant in screen mode, assign specific class attributes to these elements and use a print media stylesheet to control the display property of these elements.
http://www.codestyle.org/css/media/FAQ.shtml#nonprinting

Can I set standard page margins for all users - (Found July 8, 2008 )

A: It is not possible to adjust the master page margins beyond those enforced by the initial printer configuration, which is usually the maximum printable area for the device. If you set a negative margin on the body of the document, any content at the edges will not print. If you set any positive margin on the body, it is adjusted inwards from the current settings of the printer.
http://www.codestyle.org/css/media/FAQ.shtml#canvaslimit

How can I control print headers and footers with CSS - (Found July 8, 2008 )

A: The page numbers, URL, date and other peripheral information that may be printed with a Web page cannot be controlled by CSS in mainstream Web browsers. CSS properties can only affect the so-called canvas area of the browser, the part where the HTML is rendered, not browser-specific features like page headers and footers.
http://www.codestyle.org/css/media/FAQ.shtml#printmargins

Which mainstream browsers support aural stylesheets - (Found July 8, 2008 )

A: Neither Internet Explorer or Netscape support aural stylesheets; that is, neither browser will read Web page content out loud by themselves. Both browsers can be configured with screen reader software to read pages, but these facilities are not directly related to the use of aural stylesheets.
http://www.codestyle.org/css/media/FAQ.shtml#auralsupport
Available Archives
- July (15 items)
Sponsored Links
© 2008 FeedCapsule.com  |  Contact