<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="https://peda.net/:static/537/atom.xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>CSS-tyylitiedosto</title>
<id>https://peda.net/id/644c60883d3</id>
<updated>2017-05-20T12:04:55+03:00</updated>
<link href="https://peda.net/id/644c60883d3:atom" rel="self" />
<link href="https://peda.net/p/jussi.ylinen/tietotekniikka/teht%C3%A4vi%C3%A4/kwhc/ojv/css-tyylitiedosto/css-tyylitiedosto#top" rel="alternate" />
<logo>https://peda.net/:static/537/peda.net.logo.bg.svg</logo>
<rights type="html">&lt;div class=&quot;license&quot;&gt;Tämän sivun lisenssi &lt;a rel=&quot;license&quot; href=&quot;https://peda.net/info&quot;&gt;Peda.net-yleislisenssi&lt;/a&gt;&lt;/div&gt;&#10;</rights>

<entry>
<title>CSS-tyylitiedosto</title>
<id>https://peda.net/id/6d2978303d3</id>
<updated>2024-04-23T09:22:41+03:00</updated>
<link href="https://peda.net/p/jussi.ylinen/tietotekniikka/teht%C3%A4vi%C3%A4/kwhc/ojv/css-tyylitiedosto/css-tyylitiedosto/css-tyylitiedosto#top" />
<content type="html">&lt;table class=&quot;module m2975117 type_text&quot; border=&quot;&quot;&gt;&lt;!--filtered attribute: cellspacing=&quot;0&quot;--&gt;&lt;!--filtered attribute: cellpadding=&quot;0&quot;--&gt;&#10;&lt;tbody&gt;&#10;&lt;tr&gt;&#10;&lt;td class=&quot;moduleheader&quot;&gt;&#10;&lt;h3&gt;CSS-tyylitiedoston teko&lt;/h3&gt;&#10;&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td class=&quot;modulecontent&quot;&gt;Luo resurssienhallinnassa &lt;b&gt;tyyli.css&lt;/b&gt; &lt;b&gt;kotisivujen kansioon&lt;/b&gt; klikkaamalla hiiren oikealla näppäimellä ja valitsemalla &lt;b&gt;Uusi --&amp;gt; Tekstitiedosto&lt;/b&gt;. Varmista, että Näytä-valikossa on ruksi kohdassa &lt;b&gt;Tiedostotunnisteet&lt;/b&gt; (ks. kuva alla).&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;b&gt;Kopioi Listamaticista&lt;/b&gt; valitsemasi &lt;b&gt;navigoinnin CSS-osuus&lt;/b&gt; tyyli.css-tiedostoon ja tallenna &lt;b&gt;Tiedosto --&amp;gt; Tallenna&lt;/b&gt; (ctrl + s) .&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;b&gt;Lisää nettisivun html-koodin rivi&lt;/b&gt;&lt;br/&gt;&#10;&amp;lt; link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;tyyli.css&amp;quot; type=&amp;quot;text/css&amp;quot; &amp;gt;&lt;br/&gt;&#10;&amp;lt; HEAD&amp;gt;&amp;lt; /HEAD&amp;gt; -tagien väliin&lt;br/&gt;&#10;&lt;br/&gt;&#10;(muista poistaa ylimääräiset välilyönnit &amp;lt; merkkien jälkeen)&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;div class=&quot;h_filler&quot;&gt; &lt;/div&gt;&#10;&lt;table class=&quot;module m2975118 type_text&quot; border=&quot;&quot;&gt;&lt;!--filtered attribute: cellspacing=&quot;0&quot;--&gt;&lt;!--filtered attribute: cellpadding=&quot;0&quot;--&gt;&#10;&lt;tbody&gt;&#10;&lt;tr&gt;&#10;&lt;td class=&quot;moduleheader&quot;&gt;&#10;&lt;h3&gt;CSS - tietoa&lt;/h3&gt;&#10;&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td class=&quot;modulecontent&quot;&gt;CSS:n avulla www-sivujen muotoilu helpottuu huomattavasti. CSS-tiedostossa määritellään www sivuston muotoilut ja itse sisältö löytyy HTML-tiedostosta. CSS:n voi sisällyttää HTML-tiedostoonkin, mutta em. mainittu tapa on selkeämpi.&lt;br/&gt;&#10;&lt;br/&gt;&#10;Esimerkki otsikkotyylin 1 muotoilusta CSS-tyylitiedostossa:&lt;br/&gt;&#10;&lt;br/&gt;&#10;h1 {&lt;br/&gt;&#10;text-align: left; /*&lt;b&gt; tasaus vasemmalle &lt;/b&gt;*/&lt;br/&gt;&#10;margin-left: 0.5em;&lt;br/&gt;&#10;font-weight:bold; /*&lt;b&gt; lihavointi &lt;/b&gt;*/&lt;br/&gt;&#10;&lt;br/&gt;&#10;Kommentoi CSS-koodisi, jotta sen muokkaaminen on helppoa myöhemminkin. Kommentit tulevat&lt;br/&gt;&#10;/*&lt;b&gt; ja &lt;/b&gt;*/ merkkien väliin, ks. yllä.&lt;br/&gt;&#10;&lt;br/&gt;&#10;Esimerkkejä CSS-tyylitiedoston vaikutuksesta www-sivun ulkonäköön:&lt;br/&gt;&#10;&lt;a href=&quot;http://www.cs.tut.fi/~jkorpela/vompatit/index.html&quot; rel=&quot;noopener nofollow ugc&quot; target=&quot;_blank&quot;&gt;&lt;span class=&quot;editor underline&quot;&gt;http://www.cs.tut.fi/~jkorpela/vompatit/index.html&lt;/span&gt;&lt;/a&gt; (Vompattisivu)&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;br/&gt;&#10;ASCII-art, eli kirjaimista, numeroista ja erikoismerkeistä piirretyt kuvat &amp;amp; logot ovat tuttuja tietokoneiden alkuajoilta. CSS antaa niillekin aivan uuden ilmeen. Katso vaikkapa merkkien O|\\|\\\\((8ooo((8oooo))boOoooooo)boOooooooooo///?????___???CCO avulla piirretty Homer Simpson: &lt;a href=&quot;http://nedbatchelder.com/blog/200805/css_homer_animated.html&quot; rel=&quot;noopener nofollow ugc&quot; target=&quot;_blank&quot;&gt;&lt;span class=&quot;editor underline&quot;&gt;http://nedbatchelder.com/blog/200805/css_homer_animated.html&lt;/span&gt;&lt;/a&gt; .&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;div class=&quot;h_filler&quot;&gt; &lt;/div&gt;&#10;&lt;table class=&quot;module m2975119 type_links&quot; border=&quot;&quot;&gt;&lt;!--filtered attribute: cellspacing=&quot;0&quot;--&gt;&lt;!--filtered attribute: cellpadding=&quot;0&quot;--&gt;&#10;&lt;tbody&gt;&#10;&lt;tr&gt;&#10;&lt;td class=&quot;moduleheader&quot;&gt;&#10;&lt;h3&gt;Linkit&lt;/h3&gt;&#10;&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td class=&quot;modulecontent&quot;&gt;&#10;&lt;table&gt;&lt;!--filtered attribute: cellspacing=&quot;0&quot;--&gt;&lt;!--filtered attribute: cellpadding=&quot;0&quot;--&gt;&#10;&lt;tbody&gt;&#10;&lt;tr&gt;&#10;&lt;td class=&quot;contentcell&quot;&gt;&#10;&lt;div class=&quot;contenttitle&quot;&gt;&lt;a href=&quot;http://css.maxdesign.com.au/index.htm&quot; rel=&quot;noopener nofollow ugc&quot; target=&quot;_blank&quot;&gt;&lt;span class=&quot;editor underline&quot;&gt;maxdesign&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&#10;CSS mukana mm. navigaation toteutuksessa.&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td class=&quot;contentcell&quot;&gt;&#10;&lt;div class=&quot;contenttitle&quot;&gt;&lt;a href=&quot;http://phoenity.com/newtedge/horizontal_nav/&quot; rel=&quot;noopener nofollow ugc&quot; target=&quot;_blank&quot;&gt;&lt;span class=&quot;editor underline&quot;&gt;CSS horizontal navigation list&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&#10;Tyylikäs vaakatasoinen navigaatio.&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td class=&quot;contentcell&quot;&gt;&#10;&lt;div class=&quot;contenttitle&quot;&gt;&lt;a href=&quot;http://koti.mbnet.fi/~petepe/petepeweb.htm&quot; rel=&quot;noopener nofollow ugc&quot; target=&quot;_blank&quot;&gt;&lt;span class=&quot;editor underline&quot;&gt;Petepeweb&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&#10;Petepeweb on Internet-tekniikoihin erikoistunut sivusto, jonka tarkoitus on jakaa suomenkielistä tietoutta eri WWW-tekniikoista.&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;</content>
<published>2017-05-20T12:05:10+03:00</published>
</entry>


</feed>