Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 14

Discussione: <center>logo</center>

  1. #1
    Utente di HTML.it L'avatar di zanna91
    Registrato dal
    Mar 2012
    Messaggi
    150

    <center>logo</center>

    Ciao a tutti, non capisco perchè il logo non mi si centra. Qui sotto il codice:
    Codice PHP:
    <!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" dir="ltr" lang="<?php echo str_replace('_''-'osc_current_user_locale()); ?>">
        <head>
            <?php osc_current_web_theme_path('head.php') ; ?>
        </head>
        <body class="<?php osc_run_hook('body_class'); ?>">
        <div id="container">
        <div id="header">
            <div class="wrapper">
              <div align="center">[url="<?php echo osc_base_url() ; ?>"][b]<?php echo logo_header() ; ?>[/b][/url]
                </div>
              <div id="user_menu"></div>


            <ul id="nav">
    Grazie
    We are Legion. We do not Forgive. We do not Forget. Expect us.

    WE ARE HTML.it User :072:

  2. #2
    Moderatore di PHP L'avatar di Alhazred
    Registrato dal
    Oct 2003
    Messaggi
    12,505
    Dovresti chiedere in CSS, non è un problema di PHP.

  3. #3

    Re: <center>logo</center>

    Originariamente inviato da zanna91
    Ciao a tutti, non capisco perchè il logo non mi si centra. Qui sotto il codice:
    Codice PHP:
    <!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" dir="ltr" lang="<?php echo str_replace('_''-'osc_current_user_locale()); ?>">
        <head>
            <?php osc_current_web_theme_path('head.php') ; ?>
        </head>
        <body class="<?php osc_run_hook('body_class'); ?>">
        <div id="container">
        <div id="header">
            <div class="wrapper">
              <div align="center">[url="<?php echo osc_base_url() ; ?>"][b]<?php echo logo_header() ; ?>[/b][/url]
                </div>
              <div id="user_menu"></div>


            <ul id="nav">
    Grazie
    prova così:

    nel css ci metti:
    codice:
    .wrapper .logo_img a{
     display: block;
     margin-left: auto;
     margin-right: auto }
    e nell'html ci metti questo:

    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" dir="ltr" lang="<?php echo str_replace('_', '-', osc_current_user_locale()); ?>">
        <head>
            <?php osc_current_web_theme_path('head.php') ; ?>
        </head>
        <body class="<?php osc_run_hook('body_class'); ?>">
        <div id="container">
        <div id="header">
            <div class="wrapper">
              <div class="logo_img"><?php echo logo_header() ; ?>
                </div>
              <div id="user_menu"></div>
    
    
            <ul id="nav">
    Sappimi dire... ciauzz
    Mettete MI PIACE a questa Pagina: https://www.facebook.com/mondoapplene

    e visita http://iphonews.altervista.org

  4. #4
    Utente di HTML.it L'avatar di zanna91
    Registrato dal
    Mar 2012
    Messaggi
    150
    Non funge
    We are Legion. We do not Forgive. We do not Forget. Expect us.

    WE ARE HTML.it User :072:

  5. #5
    Originariamente inviato da zanna91
    Non funge
    codice:
    #container #header .wrapper .logo_img #logo{
     display: block;
     margin-left: auto;
     margin-right: auto }
    Così ???
    Mettete MI PIACE a questa Pagina: https://www.facebook.com/mondoapplene

    e visita http://iphonews.altervista.org

  6. #6
    Utente di HTML.it L'avatar di zanna91
    Registrato dal
    Mar 2012
    Messaggi
    150
    Io lo inserisco cosi nel CSS (vedi alla fine del codice):

    Codice PHP:
    /* Header */
    #header{
        
    padding-top:50px;
    }
    #logo{
        
    floatleft;
        
    font-size30px;
        
    text-decorationnone;
    }
    #nav{
        
    font-size:14px;
        
    height:23px;
        
    line-height:17px;
        
    clear:both;
        
    padding-top:20px;
    }
    #nav li{
        
    height:17px;
        
    padding:0 2px 3px 2px;
        
    float:left;
        
    margin:0 10px;
        
    border-bottom:solid 3px #fff;
    }
    #nav a{
        
    text-decoration:none;
    }
    #user_menu{
        
    float:right;
        
    color:#555;
        
    font-size:12px;
        
    text-align:right;
        
    width:200px;
    }
    #user_menu strong{
        
    font-size:14px;
        
    line-height:20px;
        
    display:block;
    }
    #upload-button{
        
    display:inline-block;
        
    height:30px;
        
    line-height:30px;
        
    text-align:center;
        
    font-size:14px;
        
    color:#555;
        
    text-decoration:none;
        
    padding:0 18px;
        
    text-shadow:0px -1px 0px #e3e3e3;
        
    font-weight:bold;
        
    margin-top:10px;
        
    filter:dropshadow(color=#e3e3e3,offx=0,offy=-1);
        
    background:#ffffff;
        
    background:-moz-linear-gradient(top,#ffffff 3%,#c4c4c4 100%);
        
    background:-webkit-gradient(linear,left top,left bottom,color-stop(3%,#ffffff),color-stop(100%,#c4c4c4));
        
    background:-webkit-linear-gradient(top,#ffffff 3%,#c4c4c4 100%);
        
    background:-o-linear-gradient(top,#ffffff 3%,#c4c4c4 100%);
        
    background:-ms-linear-gradient(top,#ffffff 3%,#c4c4c4 100%);
        
    background:linear-gradient(top,#ffffff 3%,#c4c4c4 100%);
        
    filter:progid:DXImageTransform.Microsoft.gradientstartColorstr='#ffffff',endColorstr='#c4c4c4',GradientType=);
        -
    webkit-border-radius15px;
           -
    moz-border-radius15px;
                
    border-radius15px;
    }
    #container #header .wrapper .logo_img #logo{
     
    displayblock;
     
    margin-leftauto;
     
    margin-rightauto 
    Sbaglio ad inserirlo dentro nell'header?
    We are Legion. We do not Forgive. We do not Forget. Expect us.

    WE ARE HTML.it User :072:

  7. #7
    Da così:

    Codice PHP:
    /* Header */ 
    #header{ 
        
    padding-top:50px

    #logo{ 
        
    floatleft
        
    font-size30px
        
    text-decorationnone

    #nav{ 
        
    font-size:14px
        
    height:23px
        
    line-height:17px
        
    clear:both
        
    padding-top:20px

    #nav li{ 
        
    height:17px
        
    padding:0 2px 3px 2px
        
    float:left
        
    margin:0 10px
        
    border-bottom:solid 3px #fff; 

    #nav a{ 
        
    text-decoration:none

    #user_menu{ 
        
    float:right
        
    color:#555; 
        
    font-size:12px
        
    text-align:right
        
    width:200px

    #user_menu strong{ 
        
    font-size:14px
        
    line-height:20px
        
    display:block

    #upload-button{ 
        
    display:inline-block
        
    height:30px
        
    line-height:30px
        
    text-align:center
        
    font-size:14px
        
    color:#555; 
        
    text-decoration:none
        
    padding:0 18px
        
    text-shadow:0px -1px 0px #e3e3e3; 
        
    font-weight:bold
        
    margin-top:10px
        
    filter:dropshadow(color=#e3e3e3,offx=0,offy=-1); 
        
    background:#ffffff; 
        
    background:-moz-linear-gradient(top,#ffffff 3%,#c4c4c4 100%); 
        
    background:-webkit-gradient(linear,left top,left bottom,color-stop(3%,#ffffff),color-stop(100%,#c4c4c4)); 
        
    background:-webkit-linear-gradient(top,#ffffff 3%,#c4c4c4 100%); 
        
    background:-o-linear-gradient(top,#ffffff 3%,#c4c4c4 100%); 
        
    background:-ms-linear-gradient(top,#ffffff 3%,#c4c4c4 100%); 
        
    background:linear-gradient(top,#ffffff 3%,#c4c4c4 100%); 
        
    filter:progid[img]images/smilies/biggrin.gif[/img]XImageTransform.Microsoft.gradientstartColorstr='#ffffff',endColorstr='#c4c4c4',GradientType=); 
        -
    webkit-border-radius15px
           -
    moz-border-radius15px
                
    border-radius15px

    #container #header .wrapper .logo_img #logo{ 
     
    displayblock
     
    margin-leftauto
     
    margin-rightauto 
    A così:

    Codice PHP:
    /* Header */ 
    #header{ 
        
    padding-top:50px

    #logo{ 
        
    floatleft
        
    font-size30px
        
    text-decorationnone
    displayblock
     
    margin-leftauto
     
    margin-rightauto

    #nav{ 
        
    font-size:14px
        
    height:23px
        
    line-height:17px
        
    clear:both
        
    padding-top:20px

    #nav li{ 
        
    height:17px
        
    padding:0 2px 3px 2px
        
    float:left
        
    margin:0 10px
        
    border-bottom:solid 3px #fff; 

    #nav a{ 
        
    text-decoration:none

    #user_menu{ 
        
    float:right
        
    color:#555; 
        
    font-size:12px
        
    text-align:right
        
    width:200px

    #user_menu strong{ 
        
    font-size:14px
        
    line-height:20px
        
    display:block

    #upload-button{ 
        
    display:inline-block
        
    height:30px
        
    line-height:30px
        
    text-align:center
        
    font-size:14px
        
    color:#555; 
        
    text-decoration:none
        
    padding:0 18px
        
    text-shadow:0px -1px 0px #e3e3e3; 
        
    font-weight:bold
        
    margin-top:10px
        
    filter:dropshadow(color=#e3e3e3,offx=0,offy=-1); 
        
    background:#ffffff; 
        
    background:-moz-linear-gradient(top,#ffffff 3%,#c4c4c4 100%); 
        
    background:-webkit-gradient(linear,left top,left bottom,color-stop(3%,#ffffff),color-stop(100%,#c4c4c4)); 
        
    background:-webkit-linear-gradient(top,#ffffff 3%,#c4c4c4 100%); 
        
    background:-o-linear-gradient(top,#ffffff 3%,#c4c4c4 100%); 
        
    background:-ms-linear-gradient(top,#ffffff 3%,#c4c4c4 100%); 
        
    background:linear-gradient(top,#ffffff 3%,#c4c4c4 100%); 
        
    filter:progid[img]images/smilies/biggrin.gif[/img]XImageTransform.Microsoft.gradientstartColorstr='#ffffff',endColorstr='#c4c4c4',GradientType=); 
        -
    webkit-border-radius15px
           -
    moz-border-radius15px
                
    border-radius15px

    Prova... semmai bisogna trovare un'altra soluzione...
    Mettete MI PIACE a questa Pagina: https://www.facebook.com/mondoapplene

    e visita http://iphonews.altervista.org

  8. #8
    Utente di HTML.it L'avatar di zanna91
    Registrato dal
    Mar 2012
    Messaggi
    150
    Provato mi scompiglia tutto.....
    We are Legion. We do not Forgive. We do not Forget. Expect us.

    WE ARE HTML.it User :072:

  9. #9
    Originariamente inviato da zanna91
    Provato mi scompiglia tutto.....
    Mi potresti mandare il codice di 'logo_header()' ? grazie
    Mettete MI PIACE a questa Pagina: https://www.facebook.com/mondoapplene

    e visita http://iphonews.altervista.org

  10. #10
    Utente di HTML.it L'avatar di zanna91
    Registrato dal
    Mar 2012
    Messaggi
    150
    Codice PHP:
    ?>
    <!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" dir="ltr" lang="<?php echo str_replace('_''-'osc_current_user_locale()); ?>">
        <head>
            <?php osc_current_web_theme_path('head.php') ; ?>
        </head>
        <body class="<?php osc_run_hook('body_class'); ?>">
        <div id="container">
        <div id="header">
            <div class="wrapper">
              <div class="logo_img">[url="<?php echo osc_base_url() ; ?>"]<?php echo logo_header() ; ?>[/url]
                </div>
    We are Legion. We do not Forgive. We do not Forget. Expect us.

    WE ARE HTML.it User :072:

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.