Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


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

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


Defining a stylesheet for the menus

January 19, 1999

Defining a stylesheet for the menus.
<style type="text/css" title="menustyles">                     
	div.item  {
		position  	: absolute;
		width		: 250px;
		left		: 0px;
		z-index		: 1;
		font-family	: Arial, Helvetica;
		font-size 	: 10pt;
		line-height	: 14pt;
		font-weight	: bold;
		font-style	: normal;
		}
                     
	div.headline  {
		position   	: absolute;
		width 		: 250px;
		left 		: 0px;
		z-index    	: 1;
		font-family 	: Arial, Helvetica;
		font-size 	: 12pt;
		line-height 	: 16pt;
		font-weight 	: bold;
		font-style 	: italic;
		text-transform 	: uppercase;
		}
                     
	#itemlayer  {
		position   	: absolute;
		width 		: 250px;
		left 		: 0px;
		z-index    	: 1;
		font-family 	: Arial, Helvetica;
		font-size 	: 10pt;
		line-height 	: 14pt;
		font-weight 	: bold;
		font-style 	: normal;
		text-align 	: left;
		padding 	: 0px;
		}
                     
	#headlinelayer  {
		font-family 	: Arial, Helvetica;
		font-size 	: 12pt;
		line-height 	: 16pt;
		font-weight 	: bold;
		font-style 	: italic;
		text-align 	: left;
		padding   	: 0px;
		text-transform 	: uppercase;
		}
                     
</style>

This next bit of code defines a stylesheet for the page. Actually, two sets of styles are created here, one set for Internet Explorer (div.item and div.headline) and one set for Navigator (#itemlayer and #headlinelayer). The headline styles will be used to render the topic name within each pop-up menu, for example, "Auto" for the auto insurance menu. The item styles will render each item in the menu, in other words, each article link. The specific parameters chosen for these styles reflect the client's wishes but could, of course, represent any aesthetic taste.

Building the Imperfect Beast: Part 2 (popups.html)
DHTML Pop-Up Menus: A Parable of Triumph and Loss (Based on a True Story)
Creating the menu arrays and global color values


Up to => Home / Authoring / DHTML / Menus




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, & Permissions, Privacy Policy.

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