Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions
 Discussion Forums
 HTML, XML, JavaScript...
 Software Reviews
 Editors,Others...
 Top100
 JavaScript Tutorials, ...
 Tutorials
 ASP, CSS, Databases...
 Discussion List
 FAQ, Roundup, Configure ...
 Authoring
 HTML, JavaScript, CSS...
 Design
 Layout, Navigation,...
 Graphics
 Tools, Colors, Images...
 Software
 Browsers, Editors, XML...
 Internet
 Domains, E-Commerce, ...
 WDVL Resources
  Intermdiate, Tutorials,...
 WDVL
 Discussion Lists, Top 100,...
 Technology Jobs


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


Top 10 Articles
  1. Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions
  2. JavaScript Tutorial for Programmers
  3. Design
  4. JavaScript Tutorial for Programmers - Objects
  5. JavaScript Tutorial for Programmers - JavaScript Grammar
  6. JavaScript Tutorial for Programmers - Versions of JavaScript
  7. Cascading Style Sheets
  8. JavaScript Tutorial for Programmers - Embedding JavaScript
  9. JavaScript Tutorial for Programmers - Functions
  10. Authoring JavaScript
Domain Name Lookup
Search to find the availability of a domain name. Just enter the complete domain name with extension (.com, .net, .edu)

Groups

Grouping Definitions

You can also group definitions if you'd like to use the same formatting for multiple Tags. There isn't much use for this although there may be a couple uses for it. For example, instead of using:

H1 {font-size: 15pt; font-weight: bold; color: navy}
H2 {font-size: 15pt; font-weight: bold; color: navy}
H3 {font-size: 15pt; font-weight: bold; color: navy}

You can group them separated by commas:

H1, H2, H3 {font-size: 15pt; font-weight: bold; color: navy}

Grouping Fonts

You can also group fonts, for example instead of using:

H1 {font-size: 15pt; line-height: 17pt; font-weight: bold; font-family: "Arial" font-style: normal}

You can group them like:

H1 {font: 15pt/17pt bold "Arial" normal}

Grouping Variations

If you'd like to use variations for the same HTML Tag, you can accomplish this like the following:

H1.navy {font: 15pt/17pt; color: navy}
H1.black {font: 15pt/17pt; color: black}
H1.blue {font: 15pt/17pt; color: blue}

Then to call them from your HTML, use:

<H1 class=navy>Navy Heading</H1>
<H1 class=black>Black Heading</H1>
<H1 class=blue>Blue Heading</H1>

Grouping Links

You can also change the style of links by A:link and A:visited (IE doesn't support A:active correctly yet). You can set any font or text formatting properties on these anchor classes, including color, font-size, font-weight, and text-decoration. For example, to assign specific colors to the three types of links:

A:link {color: navy}
A:visited {color: blue}

Setting text-decoration to none will remove the classic underlining from the link. Use this with caution since underlining is what usually gives the link away as being a link.

A:visited {color: blue; text-decoration: none}

font-family sets the typeface used for text. You can specify a single type, or alternatives. Alternatives are separated by commas to be used in order, if the user has the font on their system. If the user has Impact, it will use it, if not it will use Courier New, and so on. Notice that if a font-family is two or more words they must be in quotes.

{font-family: Impact, "Courier New", Arial, Helvetica, sans-serif}

The generic family names (serif, sans-serif, cursive, fantasy, or monospace) are mapped to the fonts installed on the user's system.

font-style attribute sets italic text:

{font-style: italic}

line-height attribute sets "leading" (the distance between two lines). You can specify leading in pt, in, cm, px, or %

{line-height: 20pt}

Grouping font attributes

You can also group font attributes just like can group fonts. Instead of:

P {font-family: Arial, serif;
font-size: 10pt;
line-height: 15pt;
font-weight: bold;
font-style: italic}

Use:

P {font: bold italic 10pt/15pt Arial, serif}

The font weight and style must be specified before the others.

hr1.gif (1127 bytes)



Up to => Home / Quadzilla / StyleSheets




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers