Home Weten Diversen Games Moppen Verhalen Scripts Internet Links Random Contact

Scripts
Favorieten / RSS
»  Deze pagina toevoegen
aan je favorieten
   
»   rss
 
CSS
Speciale typogrammen die simpel op meerdere plaatsen te gebruiken zijn binnen een website.
CSS-selector

Stylesheet is afhankelijk van welke brouwser je gebruikt
ter controle: jij gebruikt nu een voor mij nog onbekende browser.

<?php
$browser=strtolower($_SERVER['HTTP_USER_AGENT']);
if(strpos($browser, 'msie')) {?>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<?php } else if(strpos($browser, 'chrome')) { ?>
<link rel="stylesheet" type="text/css" href="css/stylechrome.css" />
<?php } else if(strpos($browser, 'firefox')) { ?>
<link rel="stylesheet" type="text/css" href="css/styleff.css" />
<?php } else if(strpos($browser, 'opera')) { ?>
<link rel="stylesheet" type="text/css" href="css/styleopera.css" />
<?php } else { ?>
<link rel="stylesheet" type="text/css" href="css/styleff.css" />
<?php } ?>

Navigatie ul/li (Horizontaal)
De truuk om iets naast elkaar te zetten is met de code float

<style type="text/css">
ul {
      list-style-type:none;
      margin:0;
      padding:0;
      overflow:hidden;
      }

li { float:left; }

a { display:block;
      width:60px;
      background-color:#dddddd;
   }
</style>

<ul>
<li><a href="#home">Home</a></li>
<li><a href="#news">News</a></li>
<li><a href="#contact">Contact</a></li>
<li><a href="#about">About</a></li>
</ul>




Note: If a !DOCTYPE is not specified, floating items can produce unexpected results.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

A background color can be added to the links to show the link area.
The whole link area is clickable, not just the text.

Note: overflow:hidden is added to the ul element to prevent li elements from going outside of the list.

Value Description
left The element floats to the left
right The element floats the right
none The element is not floated, and will be displayed just where it occurs in the text. This is default
inherit Specifies that the value of the float property should be inherited from the parent element

 


Link met kruis
<style type="text/css">
ul.a {list-style-type:circle;}
ul.b {list-style-type:square;}
ol.c {list-style-type:upper-roman;}
ol.d {list-style-type:lower-alpha;}
</style>

<p>Example of unordered lists:</p>
<ul class="a">
<li>Coffee</li>
<li>Tea</li>
<li>Coca Cola</li>
</ul>

<ul class="b">
<li>Coffee</li>
<li>Tea</li>
<li>Coca Cola</li>
</ul>

<p>Example of ordered lists:</p>

<ol class="c">
<li>Coffee</li>
<li>Tea</li>
<li>Coca Cola</li>
</ol>

<ol class="d">
<li>Coffee</li>
<li>Tea</li>
<li>Coca Cola</li>
</ol>

Value Description
none No marker
circle The marker is a circle
disc The marker is a filled circle. This is default
square The marker is a square
armenian The marker is traditional Armenian numbering
decimal The marker is a number
decimal-leading-zero The marker is a number padded by initial zeros (01, 02, 03, etc.)
georgian The marker is traditional Georgian numbering (an, ban, gan, etc.)
lower-alpha The marker is lower-alpha (a, b, c, d, e, etc.)
lower-greek The marker is lower-greek (alpha, beta, gamma, etc.)
lower-latin The marker is lower-latin (a, b, c, d, e, etc.)
lower-roman The marker is lower-roman (i, ii, iii, iv, v, etc.)
upper-alpha The marker is upper-alpha (A, B, C, D, E, etc.) 
upper-latin The marker is upper-latin (A, B, C, D, E, etc.)
upper-roman The marker is upper-roman (I, II, III, IV, V, etc.)
inherit Specifies that the value of the list-style-type property should be inherited from the parent element
Navigatie


<style>
<!-- verander hieronder de kleurnummers, lettertype en afstanden in je eigen voorkeuren -->
div.menuBar,
div.menuBar a.menuButton {
font-family: Verdana, Arial, sans-serif;
font-size: 8pt;
color: #000000;
}

div.menuBar {
background-color: #CCFFCC;
padding: 6px 2px 6px 2px;
text-align: center;
margin-left:10px;
}

div.menuBar a.menuButton {
background-color: transparent;
border: 1px solid;
border-color: #FFFFFF #999999 #999999 #FFFFFF;
color: #000000;
cursor: pointer;
left: 0px;
margin: 1px;
padding: 2px 6px 2px 6px;
position: relative;
text-decoration: none;
top: 0px;
z-index: 100;
}

div.menuBar a.menuButton:hover {
background-color: transparent;
border-color: #999999 #FFFFFF #FFFFFF #999999;
color: #FF0000;
}
</style>

<!-- verander hieronder de url ( of pagina.htm ) target en linknaam -->
<div class="menuBar">
<a class="menuButton" href="http://www.jongevos.nl" target=_new">Link 1</a>
<a class="menuButton" href="http://www.jongevos.nl" target=_new">Link 2</a>
<a class="menuButton" href="http://www.jongevos.nl" target=_new">Link 3</a>
<a class="menuButton" href="http://www.jongevos.nl" target=_new">Link 4</a>
<a class="menuButton" href="http://www.jongevos.nl" target=_new">Link 5</a>
</div>
Muis
Link met kruis
<a href="http://www.jongevos.nl" style="cursor: crosshair">Link met kruis</a>
Link met zandloper
<a href="http://www.jongevos.nl" style="cursor: wait">Link met zandloper</a>
Link met hand
<a href="http://www.jongevos.nl" style="cursor: hand">Link met hand</a>
Link met help
<a href="http://www.jongevos.nl" style="cursor: help">Link met help</a>
Link met move
<a href="http://www.jongevos.nl" style="cursor: move">Link met move</a>
Link met pointer
<a href="http://www.jongevos.nl" style="cursor: pointer">Link met pointer</a>
Link met se-resize
<a href="http://www.jongevos.nl" style="cursor: se-resize">Link met se-resize</a>
Link met e-resize
<a href="http://www.jongevos.nl" style="cursor: e-resize">Link met e-resize</a>
Link met nw-resize
<a href="http://www.jongevos.nl" style="cursor: nw-resize">Link met nw-resize</a>
Link met n-resize
<a href="http://www.jongevos.nl" style="cursor: n-resize">Link met n-resize</a>
Link met ne-resize
<a href="http://www.jongevos.nl" style="cursor: ne-resize">Link met ne-resize</a>
Link met se-resize
<a href="http://www.jongevos.nl" style="cursor: se-resize">Link met se-resize</a>
 
Nu aanwezig
Zoek naar:
Laatste update
Aantal pagina's
Totaal: 330 pagina's

Februari/12
ma di wo do vr za zo
30310102030405
6070809101112
13141516171819
20212223242526
27282901020304