Web Hosting Directory | Web Hosting Resources | Webmaster Resources | Domain Tools | Search Engine Marketing | Forums
  Signup
Today: 1,260   Yesterday: 1,015   Max: 1,872   Total: 464,313   Current Users : 13 (Member 0) 
DOMAIN TOOLS

WEBMASTER TOOLS

RELATED ARTICLES

SUBMIT AN ARTICLE

Write for us and get publicity, link to your website, and best of all get paid. Please visit our writers page for details.


LINK TO US

Link to us and earn points for each visitor you bring to us. Please visit our link partner page for details.

 

Attribute for <LINK ...>
MEDIA = SCREEN | PRINT | PROJECTION | AURAL | BRAILLE | ALL | other media

MEDIA indicates which type of media the link applies to. The default is ALL, which means that the link applies to any media.

MEDIA is commonly used to set the appearance of the page for when it is printed. Because links in the page are no use when the page is printed you can use MEDIA and styles to make the printed links look like normal text.

First, create a file for the print-only styles. Let's call it printonly.css. Type the following code into the file:

A{text-decoration:none}
A:link{color:black}
A:visited{color:black}

Now, in your web page, in the <HEAD> section, put this <LINK ...> tag:

<LINK REL=STYLESHEET HREF="printonly.css" MEDIA=PRINT>

This gives us a web page like this.

MEDIA can be set to a list of values. Separate each media type with a comma. Be sure to put quotes around the list. So, for example, the following code indicates that the styles apply to print or to projection:

<LINK REL=STYLESHEET HREF="printonly.css" MEDIA="PRINT,PROJECTION">



Copyright 1997-2002 Idocs, Inc. Written by Miko Sullivan.

 
 
 
What is your major source of website traffic?
 
 
 
 
 
 

ADVERTISEMENT

 
Cheap Web HostingBudget Web HostingEcommerce Web Hosting
Link to UsLink ExchangeAdvertisePrivacy PolicyTerms Of ServiceAbout UsContact UsSitemap
Copyright © 2006 - 2008 Broadband Media, Inc. All rights reserved.