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>
 

lukeonweb

Utente Attivo
5 Mar 2003
5.175
13
38
45
Napoli
www.lucaruggiero.it
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
 

luigilerose

Nuovo Utente
30 Nov 2005
3
0
0
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.
 

luigilerose

Nuovo Utente
30 Nov 2005
3
0
0
grazie mille, provvedo subito.
alla prossima, ed appena il mio sito sara' online vi avvertiro'.
PS date un servizio ottimo, complimenti.
 

dead

Utente Attivo
22 Lug 2005
684
0
0
57
Brescia
www.dead.it
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...
 

lukeonweb

Utente Attivo
5 Mar 2003
5.175
13
38
45
Napoli
www.lucaruggiero.it
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
Autore Titolo Forum Risposte Data
G [Javascript] Problema modal con scrollbar Javascript 0
I [HTML] Codice box testo con scrollbar sopra immagine HTML e CSS 1
CoyotesSon [Javascript] [Jquery] Scrollbar personalizzate? Javascript 1
G Eliminare scrollbar laterale di visuallightbox jQuery 0
S Problema scorrimento DIV senza scrollbar HTML e CSS 4
B Scrollbar Responsive Design HTML e CSS 1
L Scrollbar non attiva HTML e CSS 2
S Problema con scrollbar in box in IE HTML e CSS 0
A box con scrollbar in un pop-up jQuery 0
D Abilitare scrollbar su textarea disabled HTML e CSS 0
K Attivare scrollbar del browser Flash 2
G Problema Scrollbar HTML e CSS 12
A eliminazione scrollbar e ottimizzazione pagina web Webdesign e Grafica 5
L Posizione scrollbar Javascript 0
Nik Personalizzazione scrollbar HTML e CSS 1
Interrotto Spostare tabella se compare scrollbar Javascript 0
P scrollbar Flash 1
PaxDeorum Problemi con Scrollbar HTML e CSS 0
G menu a tendina + frame + scrollbar Javascript 0
SabryD Testo dinamico con scrollbar e links Flash 3
S colorazione scrollbar HTML e CSS 1
S scrollbar Javascript 0
P scrollbar nelle textarea HTML e CSS 1
H Scrollbar nelle celle HTML e CSS 5
K problemi con scrollbar Javascript 4
G Layer con scrollbar Javascript 0
diodo colorare le scrollbar HTML e CSS 1
G scrollbar e alto Flash 0
ilvampiro Aprire Pagina Html Con Dimensioni Fisse E Senza Scrollbar HTML e CSS 5
G Creare una forma irregolare colorata e poi modellarla con photoshop. Photoshop 7
Emix Tabulazione colorata ogni record PHP 1
G Banda colorata con dreamweaver CS3 Webdesign e Grafica 9

Discussioni simili