Christian Nielsen wrote in dk.edb.internet.webdesign.html:
> Lille fejl i første indlæg - nu skulle de virke!!
Jeg er ved at lave en hjemmeside ved hjælp af et externt
> stylesheet - se følgende side:
>
>
www.christian-drustrup.dk
>
> Det går fint, når css-koden er indkodet i <head> </head>
> sektionen.
>
> index.html(virker!!)
> -----------------------------------------------------------------
> -
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="
http://www.w3.org/1999/xhtml">
> <head>
> <meta name="Generator" content="Stone's WebWriter 4">
> <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1" />
> <title>Untitled Document</title>
> <style type="text/css">
> <!--
> body {
> background-color: #999999;
> font-size:12px;
> font-family:Verdana, Arial, Helvetica, sans-serif;
> }
> div#outer {
> width: 80%;
> background-color:#FFFFFF;
> margin-top: 50px;
> margin-bottom: 50px;
> margin-left: auto;
> margin-right: auto;
> padding: 0px;
> border: thin solid #000000;
> }
> div#header {
> padding: 15px;
> margin: 0px;
> text-align: center;
> }
> div#nav {
> width: 25%;
> padding: 10px;
> margin-top: 1px;
> float: left;
> }
> div#main {
> margin-left: 30%;
> margin-top: 1px;
> padding: 10px;
> }
> div#footer {
> padding: 15px;
> margin: 0px;
> border-top: thin solid #000000;
> }
> -->
> </style>
> </head>
> <body>
> <div id="outer">
> <div id="header">
> <h2>Header</h2>
> </div>
>
> <div id="nav">
> <h4>Navigation</h4>
> <ul>
> <li>Let me not to the marriage of true minds</li>
> <li>Admit impediments; love is not love</li>
> <li>Which alters when it alteration finds</li>
> </ul>
>
> </div>
> <div id="main">
> <p>Main Content -- Love's not time's fool, though rosy lips and
> cheeks within his bending sickle's compass come; admit
> impediments; love is not love. Which alters when it alteration
> finds, or bends with the remover to remove. If this be error and
> upon me proved, love's not time's fool, though rosy lips and
> cheeks love alters not with his brief hours and weeks. Whose
> worth's unknown, although his height be taken. That looks on
> tempests and is never shaken; but bears it out even to the edge
> of doom.</p>
> <p>Which alters when it alteration finds, within his bending
> sickle's compass come; it is the star to every wand'ring bark.
> Whose worth's unknown, although his height be taken. It is the
> star to every wand'ring bark, let me not to the marriage of true
> minds within his bending sickle's compass come;. Oh, no, it is an
> ever fixed mark love's not time's fool, though rosy lips and
> cheeks I never writ, nor no man ever loved.</p>
> <p>That looks on tempests and is never shaken; or bends with
> the remover to remove. But bears it out even to the edge of doom.
> Within his bending sickle's compass come; love alters not with
> his brief hours and weeks, whose worth's unknown, although his
> height be taken. Let me not to the marriage of true minds.</p>
> </div>
> <div id="footer">
>
> <p>Footer text -- Admit impediments; love is not love whose
> worth's unknown, although his height be taken. Which alters when
> it alteration finds, let me not to the marriage of true minds oh,
> no, it is an ever fixed mark. </p>
> </div>
> </div>
> </body>
> </html>
>
> -----------------------------------------------------------------
>
> Men når jeg fjerner css-koden fra <head> </head> og lægger den i
> style.css og forsøger at linke til index.html, virker det ikke -
> se følgende link:
>
>
www.christian-drustrup.dk/public_html/test.htm
>
www.christian-drustrup.dk/public_html/style.css
> Kan i se hvad der er galt - på forhånd tak!!
>
>
> --
> Vil du lære at kode HTML, XHTML, CSS, SSI, ASP eller ASP.NET?
> - Pædagogiske tutorials på dansk
> - Kom godt i gang med koderne
> KLIK HER! =>
http://www.html.dk/tutorials
--
Vil du lære at kode HTML, XHTML, CSS, SSI, ASP eller ASP.NET?
- Pædagogiske tutorials på dansk
- Kom godt i gang med koderne
KLIK HER! =>
http://www.html.dk/tutorials