Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it
    Registrato dal
    Jun 2004
    Messaggi
    643

    Perchè si vede male (sono veramente disperato)

    Allora,
    partendo da questo tutorial ho inserito tale menu in un sito che stò realizzando...la cosa assurda è che in locale (sia aprendo direttamente la pagina, sia aprendola con il server web in locale) SI VEDE PERFETTAMENTE, quando invece la carico online si smerda e non ne capisco proprio il perchè.

    Il tutorial è questo: http://css.html.it/articoli/leggi/23...umb-con-i-css/

    Il mio sito invece è questo: http://www.siatec.net/andrea/megattera/

    Come potete notare in ogni elemento (come HTML.it, CSS, etcetc) nella parte a destra si vede un quadrato più chiaro...la cosa è assurda...in locale funziona perfettamente ed il codice CSS è esattamente quello proposto da html.it

    Per scrupolo ve lo posto comunque:

    XHTML:

    codice:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <title>Layout 38</title>
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
    <meta name="generator" content="HAPedit 3.1">
    <link href="layout.css" rel="stylesheet" type="text/css" title="default" />
    </head>
    <body>
    <div id="container">
       
       <div id="header">
         <div id="logo"></div>
         <div id="foto"></div>
       
       </div>
      
       <div id="breadcrumb">
          HTML.it <span>&gt;</span>
          CSS <span>&gt;</span>
          Effetti con i CSS <span>&gt;</span>
          Breadcrumb con i CSS
      </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">
            
    
    
              <ul id="nav2">
    			[*]Home
    			[*]About me
    			[*]Servizzi
    			[*]Portfolio
    			[*]Contact
    			[*]Links	
    		[/list]
            </p>
        </div>
    
        <div id="extra">
            
    
    3) More stuff here. very text make long column make filler fill make column        column silly filler text silly column fill silly fill column text filler make text silly filler        make filler very 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</p></div>
    
    </div>
    </body>
    </html>
    CSS:
    codice:
    body{
        margin:0;
    	padding:0
        margin-bottom: 0.95em;
    	font-family: arial, helvetica, verdana, tahoma, sans-serif;
    	font-size: 80%;
    	color: #000;
    	background-color: #fff;
    	line-height: 180%;
    }
    
    p{
        margin-top: 0px; 
    	margin-right: 10px; 
    	margin-bottom: 10px;
    	margin-left: 10px;
    }
    
    
    a{  
       display:block;
       color: #981793;
       padding: 10px;
    }
    
    div#container{
       width: 760px;
       margin:0 auto;
       border: 1px solid #D7D7D7;
       }
    
    div#header{
       margin: 0 auto;
       width: 760px;
       height: 160px;
       border: 1px solid #D7D7D7;
       color: #000;
    }
    
    div#logo{
       float: left;
       width: 380px;
       height: 160px;
       margin-top: 0;
       background-image: url("img/logo.jpg");
       background-repeat: no-repeat;
       background-position: top left;
    
    }
    
    div#foto{
       float: right;
       width: 380px;   
       height: 160px;
       background-image: url("img/castagnole.jpg");
       background-repeat: no-repeat;
    }
    
    div#header h1{
       margin: 0;
       font: normal 280% Georgia, "Times New Roman", Times, serif;
       color: #79B30B;
    
    }
    
    div#breadcrumb{float: left;width: 600px;height: 40px;
        line-height: 40px;background: #D4D4D4 url(bcBk.png)}
    
    div#breadcrumb span{display:none}
    
    div#breadcrumb a{float: left;height: 40px;padding: 0 25px 0 15px;
        background: url(bcbk1.png) no-repeat top right;
        color: #777;text-decoration: none}
    
    div#breadcrumb a:hover{
        background-position: bottom right;color: #0876AC}
    
    div#breadcrumb em{
        font-style:normal;color: #444;margin-left:10px}
    
    
    
    div#content p{line-height:1.4}
    div#navigation{background:#ffffff}
    
    ul#nav2{
    	list-style: none;
    	margin: 0;
    	padding: 0;
    	}
    	
    /* =-=-=-=-=-=-=-[Navigation Three]-=-=-=-=-=-=-=- */
    	
    #navigation {
    	width: 200px;
    	border: 1px solid #ccc;
    	margin-top: 10px;
    	}
    
    #navigation li a {
      	height: 32px;
      	voice-family: "\"}\""; 
      	voice-family: inherit;
      	height: 24px;
    	text-decoration: none;
    	}	
    	
    #navigation li a:link, #menu3 li a:visited {
    	color: #888;
    	display: block;
    	background: url(img/menu3.gif);
    	padding: 8px 0 0 30px;
    	}
    	
    #navigation li a:hover, #menu3 li a:active {
    	color: #283A50;
    	background: url(img/menu3.gif) 0 -32px;
    	padding: 8px 0 0 30px;
    	}
    
    
    div#extra{background:#FF8539}
    div#footer{background: #333;color: #FFF}
    div#footer p{margin:0;padding:5px 10px}
    
    
    div#content{float:right;width:500px}
    div#navigation{float:left;width:200px}
    div#extra{clear:both;width:100%}
    Questa cosa non me la riesco proprio a spiegare, in locale è perfetto, online si vede male (provato anche a caricare su un altro server per scrupolo e si vede male cmq)...l'esempio di html.it invece si visualizza perfettamente

    Vi prego è importante...ditemi come risolvere se potete :-(

    Grazie
    Andrea

  2. #2
    Moderatrice di Grafica, Cerco e offro lavoro L'avatar di Myaku
    Registrato dal
    Nov 2006
    Messaggi
    10,349
    il link non funziona, comunque, attenzione agli errori:

    codice:
    padding:0
    ti sei dimenticato il ; a fine riga

    inoltre,

    <link href="layout.css" rel="stylesheet" type="text/css" title="default" /> non va chiuso
    e hai messo una lista all'interno di

    </p>, che non è ammessa


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 © 2025 vBulletin Solutions, Inc. All rights reserved.