Visualizzazione dei risultati da 1 a 4 su 4
  1. #1

    menu css come lo inserisco?

    (Mi scuso con i moderatori...Spero nessun problema)

    Ciao a tutti, premetto che sono i primi passi per me con i css...
    Perciò scusate se le mie domande risulteranno ai limiti dell'imbecillità!



    Ho un layout in css a tre colonne... in quella di sx vorrei inserire un menù anch'esso in css..

    questa è la parte di codice della colonna :

    <div id="navigation">


    2) Navigation here. long long
    fill filler very fill column column silly filler very filler fill fill
    filler text fill very silly fill text filler silly silly filler fill
    very make fill column text column very very column fill fill very silly
    column silly silly fill fill long filler </p>

    perciò il codice del menu deve risiedere in questo punto, giusto ?

    Questo che segue è il codice del menu che ho creato con un editor menu e l'anteprima la apre con una nuova pag. html :

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <title>Free Menu Designs - e-lusion.com</title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <meta name="author" content="Ian Main" />
    <meta name="Copyright" content="Creative Commons - http://creativecommons.org/licenses/by/2.0/" />
    <style type="text/css">
    <!--
    body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    margin: 0;
    font-size: 80%;
    font-weight: bold;
    background: #F3FAFF;
    }

    ul {
    list-style: none;
    margin: 0;
    padding: 0;
    }

    /* =-=-=-=-=-=-=-[Menu Seven]-=-=-=-=-=-=-=- */

    #menu7 {
    width: 200px;
    border-style: none dashed dashed dashed;
    border-color: #608FB5;
    border-width: 1px;
    }

    #menu7 li a {
    height: 32px;
    voice-family: "\"}\"";
    voice-family: inherit;
    height: 22px;
    text-decoration: none;
    }

    #menu7 li a:link, #menu7 li a:visited {
    color: #1D537F;
    display: block;
    background: url(menu7.gif) repeat-x;
    padding: 10px 0 0 10px;
    }

    #menu7 li a:hover, #menu7 li #current {
    color: #fff;
    background: url(menu7.gif) repeat-x 0 -32px;
    padding: 10px 0 0 10px;
    }

    #menu7 li a:active {
    color: #fff;
    background: url(menu7.gif) repeat-x 0 -64px;
    padding: 10px 0 0 10px;
    }
    -->
    </style>
    </head>

    <body>
    <div id="menu7">
    <ul>
    [*]Home[*]Products[*]Services[*]Support[*]Order[*]News[*]About
    [/list]
    </div>
    </body>
    </html>

    Ora mi chiedo, quale parte di codice devo inserire dopo div ?

  2. #2
    Utente di HTML.it L'avatar di p3t3r
    Registrato dal
    Jun 2006
    Messaggi
    115
    ad un primo sguardo nn ho capito molto del tuo problema..
    potresti essere un pò più chiaro?...

    1. se ho capito bene il menu è in verticale essendo il layout a 3 colonne..
    2. il menu lo vorresti quindi includre tramite un iframe?
    3. il messaggio nn è chiaro su alcuni punti, specialmente quando fai riferimenti del tipo: id="navigation" quando però nn c'è un corrispondente css per l'id...; oppure: Ora mi chiedo, quale parte di codice devo inserire dopo div ? .....[a fine pagina]..

    una curiosità...che editor usi per i css e per l'html?
    ________________________________

  3. #3
    ciao... uso Nvu come editor...
    e per creare i menu ho trovato CSS Tab Designer 2

    Vorrei semplicemente inserire il menu nella parte header oppure in verticale.. ma sono in altomare con i css....

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <title>index</title>
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
    <meta name="generator" content="HAPedit 3.1">
    <style type="text/css">
    html,body{margin:0;padding:0}
    body{font: 76% arial,sans-serif}
    p{margin:0 10px 10px}
    a{display:block;color: #981793;padding:10px}
    div#header h1{height:80px;line-height:80px;margin:0;
    padding-left:10px;background: #EEE;color: #79B30B}
    div#content p{line-height:1.4}
    div#navigation{background:#B9CAFF}
    div#extra{background:#FF8539}
    div#footer{background: #333;color: #FFF}
    div#footer p{margin:0;padding:5px 10px}

    div#wrapper{float:left;width:100%}
    div#content{margin-left: 50%}
    div#navigation{float:left;width:25%;margin-left:-75%}
    div#extra{float:left;width:25%;margin-left:-100%}
    div#footer{clear:left;width:100%}
    </style>
    </head>
    <body>
    <div id="container">
    <div id="header"><h1>il menu vorrei inserirlo qui</h1></div>
    <div id="wrapper">
    <div id="content">


    1) Content here. column long long column very long fill fill fill long text text column text silly very make long very fill silly make make long make text fill very long text column silly silly very column long very column filler fill long make filler long silly very long silly silly silly long filler make column filler make silly long long fill very.</p>


    very make make fill silly long long filler column long make silly silly column filler fill fill very filler text fill filler column make fill make text very make make very fill fill long make very filler column very long very filler silly very make filler silly make make column column </p>


    fill long make long text very make long fill column make text very silly column filler silly text fill text filler filler filler make make make make text filler fill column filler make silly make text text fill make very filler column very </p>


    column text long column make silly long text filler silly very very very long filler fill very fill silly very make make filler text filler text make silly text text long fill fill make text fill long text very silly long long filler filler fill silly long make column make silly long column long make very </p>
    </div>
    </div>
    <div id="navigation">


    2) Navigation here. long long fill filler very fill column column silly filler very filler fill fill filler text fill very silly fill text filler silly silly filler fill very make fill column text column very very column fill fill very silly column silly silly fill fill long filler </p>
    </div>
    <div id="extra">


    3) More stuff here. very text make long silly make text very very text make long filler very make column make silly column fill silly column long make silly filler column filler silly long long column fill silly column very </p>
    </div>
    <div id="footer">

    Here it goes the footer qui ci saranno i piedi :-)</p></div>
    </div>
    </body>
    </html>

  4. #4
    Utente di HTML.it L'avatar di p3t3r
    Registrato dal
    Jun 2006
    Messaggi
    115
    questo è il codice del menù che poi andrò ad includere ad inizio pagina tramite un iframe....
    potrebbe eseere un modello valido??


    • codice:
      <!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=utf-8" />
      <title>Documento senza titolo</title>
      <style type="text/css">
      body {
      		margin: 0px;
      		padding: 0px;
      		width: 100%;
      }
      dl {	
      		color: #228EB7;
      		font-family: Eurostile;
      		font-size: 14px;
      		bottom: 0px;
      		margin-bottom: 0px;
      }
      dt {
      		display: inline;
      
      }
      dt a { 
      		text-decoration: none;
      		color: #228EB7;
      		padding-top: 4px;
      		padding-right: 6px;
      		padding-left: 15px;
      }
      dt a:hover {
      		color: #84AFD0;
      		background-image: url(Globe-Connected.png);
      		background-position: center left;
      		background-repeat: no-repeat;
      		padding-right: 6px;
      		padding-left: 15px;
      }
      
      .header {
      		height: 70px;
      		position: relative;
      		background-color: #DCE6EF;
      		background-image: url(pattern-sfondo-menu.png);
      		background-repeat: no-repeat;
      		background-position: right center;
      		border-bottom: #228EB7 1px solid;
      }
      .menu {
      		bottom: 0px;
      		position: absolute;
      		right: 35px;
      }
      </style>
      </head>
      
      <body>
      <div class="header">
          	<div class="menu">
      			<dl>
      				<dt>gfdfgdfgds</dt>|
      				<dt>gdfgddfgdf</dt>|
      				<dt style="color: #A5C9DE; padding-top: 4px; padding-right: 6px; padding-left: 15px;">fghdfdfghdg</dt>|   
      				<dt>ghdtrhdrgdf</dt>|
      				<dt>fgdsgs4w34</dt>|
      				<dt>fgs54yg</dt>|
      				<dt>gsw45ytd</dt>
      			</dl>
      		</div>
      </div>
      </body>
      </html>

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.