Üb2: Unterschied zwischen den Versionen

Aus Spiritwiki
(Die Seite wurde neu angelegt: „Dies betrifft immer nur die eine wikiseite komplett - nicht das ganze Wiki ! <div id="menu0"> # {{#css:MyStyles.css}} If on the other hand "MyStyles.css" …“)
 
 
(29 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
Dies betrifft immer nur die eine wikiseite komplett - nicht das ganze Wiki !
Dies betrifft immer nur die eine wikiseite komplett - nicht das ganze Wiki !
<div id="menu0">
<div id="menu0">
#    {{#css:MyStyles.css}}
{{#css:MyStyles.css}}


If on the other hand "MyStyles.css" was a file in the /wiki/skins directory, then it would be included as shown below. Note that the file must be an absolute path with a leading slash to distinguish it from an article title.
If on the other hand "MyStyles.css" was a file in the /wiki/skins directory, then it would be included as shown below. Note that the file must be an absolute path with a leading slash to distinguish it from an article title.
...............................................
<br>


{{#css:/skins/MyStyles.css}}
{{#css:/skins/cavendishmw/hornav2.css}}
 
<html>
Alternatively, CSS rules can be directly included within the parser-function (inline) as in the following example,
<div>
 
<ul id="hornav" class="hornav" >
#   {{#css:
<li style="display: inline; list-style-type: none; padding-right: 20px;"><a href="#">Link one</a></li>
  body {
<li style="display: inline; list-style-type: none; padding-right: 20px;"><a href="#">Link two</a></li>
    background: yellow;
<li style="display: inline; list-style-type: none; padding-right: 20px;"><a href="#">Link three</a></li>
    font-size: 12pt;
<li style="display: inline; list-style-type: none; padding-right: 20px;"><a href="#">Link four</a></li>
    color: red;
<li style="display: inline; list-style-type: none; padding-right: 20px;"><a href="#">Link five</a></li>
p { line-height: 110% }
</ul>
  }
}}
 
 
</div>
</div>
==============================================================================================
</html>
{{#css:
ul {padding: 5px 0; margin:0; }
ul li {display:inline; list-style-type: none;}
ul li a:link, #menu1 ul li a:visited { background-color: green; color:white;text-decoration:none; padding: 5px;}
ul li a:hover { background-color: black; color:white; }
}}


[[Kategorie:-]]


 
<br>
<ul>
...............................................
<li><a href="#">Link one</a></li>
<li><a href="#">Link two</a></li>
<li><a href="#">Link three</a></li>
<li><a href="#">Link four</a></li>
<li><a href="#">Link five</a></li>
</ul>

Aktuelle Version vom 14. April 2014, 17:12 Uhr

Dies betrifft immer nur die eine wikiseite komplett - nicht das ganze Wiki !