Adding Blueprint to your pages is simple, just copy the blueprint directory to your webapp directory, and then reference it from your HTML page by adding the following:
<link rel="stylesheet" href="css/blueprint/screen.css" type="text/css" media="screen, projection"> <link rel="stylesheet" href="css/blueprint/print.css" type="text/css" media="print"> <!--[if lt IE 8]> <link rel="stylesheet" href="css/blueprint/ie.css" type="text/css" media="screen, projection"> <![endif]-->
…adjusting the directory path accordingly, or if you're using JSPs, then you may want to add something like:
<link rel="stylesheet" href="<c:url value='/resources/blueprint/screen.css'/>" type="text/css" media="screen, projection"/> <link rel="stylesheet" href="<c:url value='/resources/blueprint/print.css'/>" type="text/css" media="print" /> <!--[if lt IE 8]> <link rel="stylesheet" href="<c:url value='/resources/blueprint/ie.css' />" type="text/css" media="screen, projection" /> <![endif]-->
You can also add in some fancy fonts by using the following CSS file:
<!-- Import fancy-type plugin for the sample page. --> <link rel="stylesheet" href="<c:url value='/resources/blueprint/plugins/fancy-type/screen.css' />" type="text/css" media="screen, projection" />
To get you started, there is a good tutorial available on the Blueprint website.
No comments:
Post a comment