W3C home > Mailing lists > Public > www-amaya@w3.org > October to December 2008

Re: Simple Questions for Newbie (Background Page Image)

From: Cristiano Guglielmetti <cguglielmetti@alice.it>
Date: Sat, 04 Oct 2008 10:04:59 +0200
Message-ID: <48E723AB.9040602@alice.it>
To: www-amaya@w3.org

RickinRSM ha scritto:
> 
> I suppose I can have multiple CSS documents for a particular HTML page,
> correct?
> 
> So . . .
> 
> Step one - create an HTML page
> Step two -  link a CSS page into the HTML page for the background image or
> colors, etc..
> 
> Is thes correct?
> 

Yes, it is. First: design your CSS or get from the Net thousand of 
examples, then link your HTML elements to the CSS classes.

Ex:

in restaurant.css file:

.spanclass-1 {
font-size:
color: navy;
background-color: yellow;
font: bold 120% "courier new", serif;
}

In restaurant.html file:

<html>
<head>
<link href="restaurant.css" rel="stylesheet" type="text/css">
</head>
<body>
<h1>Amaya's Restaurant</h1>
<span class="spanclass-1"><p>Today's menu:</p></span>
<ul>
<li>text....</li>
<li>text....</li>
<li>text....</li>
<li>text....</li>
</ul>
<body>
</html>


Cristiano
http://www.webalice.it/cguglielmetti/
Received on Saturday, 4 October 2008 08:05:48 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:40 UTC