scrollbar colorata

luigilerose

Nuovo Utente
30 Nov 2005
3
0
0
salve sto creando un sito, sono un neofita, ma con una grande voglia di imparare, ho creato la struttura del sito ed adesso vorrei colorare la scrollbar e far si che la pagina stia al centro.
Ho letto tanti forum, ma vista la mia ignoranza su molti argomenti, non riesco ad ottenere risultati, potreste aiutarmi.
Vi invio il codice. e se potete, inseritemi il codice che serve per fare quanto richiesto.
Vi ringrazio in anticipo per il tempo che potete dedicarmi.
ciao.


<!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 http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>food for thought</title>
<style type="text/css">
<!--
.Stile7 {font-size: small; font-family: "Times New Roman", Times, serif; color: #001C4C; }
.Stile9 {color: #001C4C; font-size: small; }
.Stile5 {color: #001C4C; }
body,td,th {
color: #001C4C;
}
a:link {
color: #001C4C;
text-decoration: none;
}
a:visited {
color: #6A7BA9;
text-decoration: none;
}
a:hover {
color: #6A7BA9;
text-decoration: underline;
}
a:active {
color: #001C4C;
text-decoration: none;
}
.Stile11 {font-size: medium; font-family: "Times New Roman", Times, serif; color: #001C4C; }
-->
</style>
</head>

<body>
<table width="760" border="1" cellpadding="0" cellspacing="0" bordercolor="#B4BAD4">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="immagini/watermillnewlogo.jpg" alt="logo" width="100" height="185" /></td>
<td><img src="immagini/title.jpg" alt="The Watermill Hotel" width="654" height="185" /></td>
</tr>
<tr>
<td colspan="2"><div align="center"><img src="immagini/line.jpg" width="754" height="3" /></div></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="1" cellpadding="0" cellspacing="3" bordercolor="#B4BAD4">
<tr>
<td width="55"><div align="center"><span class="Stile7"><a href="index.html">Home</a></span></div></td>
<td><div align="center"><span class="Stile7"><a href="lap.html">Lap of luxury </a></span></div></td>
<td><div align="center"><span class="Stile11">Food for thought </span></div></td>
<td><div align="center"><span class="Stile7"><a href="business.html">Business as usual</a> </span></div></td>
<td><div align="center"><span class="Stile7"><a href="weddings.html">Weddings</a></span></div></td>
<td nowrap="nowrap"><div align="center"><span class="Stile7">How to find us </span></div></td>
<td width="55"><div align="center"><span class="Stile7">News</span></div></td>
<td><div align="center"><span class="Stile7">Contact</span></div></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><div align="center"><img src="immagini/line.jpg" width="754" height="3" /></div></td>
</tr>
<tr>
<td colspan="2"><table width="60%" border="0" align="center" cellpadding="5" cellspacing="15">
<tr>
<td><div align="justify"><span class="Stile5">`Hamill's` Restaurant has rightfully earned a reputation for serving superb traditional cuisine whilst also introducing some contemporary dishes to its menu. Total attention to detail, makes us the perfect venue for all occasions - small intimate dinners - anniversaries - parties or a specially tailored banquet for your conference or meeting. trust the professional to make your event that wee bit special at `Hamill's`.</span></div></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><table width="95%" border="1" align="center" cellpadding="5" cellspacing="5" bordercolor="#B4BAD4">
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><div align="center"><img src="immagini/line.jpg" width="754" height="3" /></div></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><div align="right"><span class="Stile9"><a href="../The Covenanters Inn/index.html">THE COVENANTERS INN <em> - Aberfoyle Stirlingshire, FK 3XD Tel: </em>01877 382 347<em> Fax: </em>01877 734 0957</a></span></div></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
 
usa questo codice nel blocco <style>

scrollbar-base-color: #3366CC;
scrollbar-arrow-color: #E9E9E9;
scrollbar-track-color: #E9E9E9;

ma sappi che non è compatibile con xhtml
 
xhtml e html

Grazie per la risposta, potresti spiegarmi la differenza tra html ed xhtml. E in ogni caso, potrei cambiare il codice della pagine che ho gia' realizzato, nel senso potrei inserire

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

al posto di

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

senza che cio' comporti modifiche alla mia pagina.
Grazie.
 
grazie mille, provvedo subito.
alla prossima, ed appena il mio sito sara' online vi avvertiro'.
PS date un servizio ottimo, complimenti.
 
lukeonweb ha scritto:
xhtml è la standardizzazione di html

https://www.mrw.it/fareweb/xlang/xhtml/guida_xhtml/

in html non c'è bisogno che usi le doctype, puoiiniziare direttamente con

<html>
<head>
etc...

:byebye:

Quello che dice Luke è vero, però credo che in assenza di una DTD il browser si regola in modalità retrocompatibile, cioè compatibile con le sintassi riconoscibili dai browser più vecchi, e alcune direttive potrebbero essere non correttamente interpretate.
In altre parole anche chi accede alla tua pagina con IE6 o FF 1.0.7 è come se accedesse con IE4...
 
ciao ing, concordo, ma il discorso è vero fino a un certo punto: con gli ultimi aggiornamenti, previsti solo per xhtml ormai, la dtd in html semplice non è più obbligatoria

meglio usarla? ma si, è solo una riga di codice infondo :)
 

Discussioni simili