Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 17
  1. #1

    Elemento p non vede regole css ........

    Ciao.
    Sto diventando matto perchè cavolo
    l'elemento P con id paging non vede
    le regole del css ?

    XHTML:
    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">
    <
    head>
        <
    title>Blog</title>
        <
    meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <
    link type="text/css" rel="stylesheet" href="css/main.css" />
    </
    head>
    <
    body>
        <
    div id="container">
            <
    div id="header">
            <
    h1>Blog</h1>
            </
    div>
            <
    div id="content">
                <
    h2 id="welcome">WelcomeThere are n&deg6 articles in your Blog.</h2>
                <
    div class="article">
                

    tshifts</p>
                

    tshifts</p>
                

    tshifts the first value of the array off and returns itshortening the array by one element and moving everything downAll numerical array keys will be modified to start counting from zero while literal keys won't be touched. If array is empty (or is not an array), NULL will be returned.</p>
                

    15-02-2007</p>
                <form  class="frmManager" action="/blog/two/admin/index.php" method="post" name="frmManager">
                <input type="submit" value="Edit Blog" name="updateblog" />
                <input type="submit" value="Delete Blog" name="deleteblog" />
                <input type="hidden" value="1" name="id" />
                </form>
                </div>
                <div class="article">
                

    prova</p>
                

    prova</p>
                

    tshifts the first value of the array off and returns it, shortening the array by one element and moving everything down. All numerical array keys will be modified to start counting from zero while literal keys won'
    t be touched. If array is empty (or is not an array), NULL will be returned.</p>
                

    15-02-2007</p>
                <
    form  class="frmManager" action="/blog/two/admin/index.php" method="post" name="frmManager">
                <
    input type="submit" value="Edit Blog" name="updateblog" />
                <
    input type="submit" value="Delete Blog" name="deleteblog" />
                <
    input type="hidden" value="2" name="id" />
                </
    form>
                </
    div>
                
                <
    p id="paging"><span id="selected">1</span>[url="/blog/two/admin/index.php?page=2"]2[/url][url="/blog/two/admin/index.php?page=3"]3[/url][url="/blog/two/admin/index.php?page=2"]&gt;&gt;[/url] </p><form action="/blog/two/admin/index.php" method="post" name="frmInsert">
                <
    input type="hidden"  name="id" value="5-" />
                <
    label>Title :</label>
                <
    input type="text" name="title" value="" /><br class="frmClear" />
                <
    label>Author :</label>
                <
    input type="text" name="author" value="" /><br class="frmClear" />
                <
    label>Content :</label>
                <
    textarea name="article" cols="30" rows="30"></textarea><br class="frmClear" />
                <
    input type="hidden"  name="posted" value="1171613708" />
                <
    label></label><input type="submit" name="addblog" value="Insert">
                </
    form>
            </
    div>
            <
    div id="footer"><h3>By Whisher</h3></div>
        </
    div>
    </
    body>
    </
    html
    CSS:
    Codice PHP:
    * {
        
    margin:0px;
        
    padding:0px
    }
    a:linka:visited,a:hover,a:active {
        
    text-decoration none
        
    color:#379898
    }
    body 
        
    background-imageurl(../img/bodyFixed.gif);
        
    background-repeatno-repeat;
        
    background-attachmentfixed
        
    background-color#421D42; 
        
    color:#471C47; 
        
    text-align:center;
        
    font-size:120%; 
        
    font-familyGenevaArialHelveticasans-serif
    }
    div#container {
        
    margin0 auto;
        
    width:560px;
        
    background-color#A690AF;
        
    border-top:2px solid #B0C5D8;
        
    border-bottom:2px solid #B0C5D8;
        
    text-align:left
    }
    div#header {
    }
    div#header h1 { 
        
    color:#B0C5D8;
        
    text-align:center
    }
    div#content { 
        
    heightauto !important;  /* per i browser moderni */
        
    height200px;      /* per IE5.x e IE6 */
        
    min-height200px;  /* per i browser moderni */
        
    margin:5px 5px
    }
    div#footer { 
        
    line-height:30px;  
    }
    div#footer h3 {
         
    text-align:center
    }
    #welcome {
        
    margin:10px 0px 
    }
    div.article 
        
    float:right;
        
    width:550px;
         
    margin:10px 0px
    }
    form.frmManager {
        
    float:right
        
    width:310px;
        
    margin:0px 0px
    }
    form.frmManager input {
        
    width:150px
        
    background-color:#FFFFFF; 
        
    color:#770E77;
        
    font-weight:bold;
    }
    form 
        
    float:right
        
    width:550px;
        
    margin:30px 0px;
    }
    form label {
        
    float:left;
        
    width:130px;
        
    margin-right:5px;
        
    text-align:right
    }
    form input {
        
    width:405px;
        
    padding-left:5px;
        
    border:1px solid #fff
    }
    form textarea {
        
    width:405px
        
    height:200px;
        
    margin-bottom:5px;
        
    padding-left:5px;
        
    border:1px solid #fff
    }
    br.frmClear 
        
    clear:both
    }
    //PAGING
    p#paging { 
        
    text-align:center
    }
    span#selected {
         
    color#FFFFFF


    Un sentito grazie a chi illumina


    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

  2. #2
    Hola giovane..

    Il CSS fà il suo dovere ma se assegni un text-align al

    credo che fai fatica a vedere la centratura..

    :master: mi spiego meglio..

    <p id="centrato">questo testo risulta centrato ma all'interno del tag

    quindi la differenza non si vede sebbene il testo sia centrato..</p>

    <div id="centrato">


    questo testo sarà centrato a seconda della larghezza del <div> che lo contiene..</p>
    </div>

    Sono un pò rustico ma credo il concetto sia quello..

    Ciao bello
    Questa volta, più che un voto.. è favoreggiamento.

  3. #3

    ...............

    Grazie della risposta

    Su text-align posso essere d'accordo
    con te ma la cosa non cambia se usi qc
    altra proprietà background height etc .........


    PP PP PP





    @Al_katraz984
    Ciò messo mezz'ora a fare una classetta
    per il paging e sto ammattendo come al solito
    su un css !!
    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

  4. #4

    .......

    Ho seguito il tuo consiglio
    con

    Codice PHP:
    <div id="paging">

    <
    span id="selected">1</span>[url="/blog/two/admin/index.php?page=2"]2[/url][url="/blog/two/admin/index.php?page=3"]3[/url][url="/blog/two/admin/index.php?page=2"]&gt;&gt;[/url] </p></div


    Codice PHP:
    div#paging { 
        
    height:200px
        
    background-color:#CCCCCC; 
        
    text-align:center


    Ma PP niente


    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

  5. #5
    Su text-align posso essere d'accordo
    con te ma la cosa non cambia se usi qc
    altra proprietà background height etc .........
    che vuol dire?? l'id paging tuo ha solo il text-align.. background height DOV'è QUESTA??

    e poi non puoi fare gli stessi lavori che faccio io.. ho abozzato una paginazione pure io ieri..
    Questa volta, più che un voto.. è favoreggiamento.

  6. #6

    ..............

    che vuol dire?? l'id paging tuo ha solo il text-align.. background height DOV'è QUESTA??

    Nl senso che proprio non vuole saperne
    di seguire le regole del css


    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

  7. #7
    Ma.. prova a mettere un width: 300px; o cmq un valore alto..

    Cosi come hai scritto tu.. il <div> è grande come il

    quindi è come se non ci fosse.. e torni al punto di prima..
    Questa volta, più che un voto.. è favoreggiamento.

  8. #8
    Utente di HTML.it
    Registrato dal
    Jan 2007
    Messaggi
    595
    Esatto
    Il text-align: center cosa fa?
    Centra il testo all'interno del suo contenitore...
    Ma se il contenitore è largo quanto il testo che centratura deve fare poverello?

    Questo per esempio non serve a nulla, o meglio non ha risultati visibile
    <div style="text-align: center">testo da centrare</div>

    Questo invece ha risultati visibili
    <div style="text-align: center; width: 300px;">testo da centrare</div>

    Non è quindi il

    che non segue le regole, è che la regola scritta così non ha risultati visibili

  9. #9
    Quindi secondo me.. potresti racchiudere in un <div> questo pezzo di codice:
    Codice PHP:
               <p id="paging"><span id="selected">1</span>[url="/blog/two/admin/index.php?page=2"]2[/url][url="/blog/two/admin/index.php?page=3"]3[/url][url="/blog/two/admin/index.php?page=2"]&gt;&gt;[/url] </p><form action="/blog/two/admin/index.php" method="post" name="frmInsert">
                <
    input type="hidden"  name="id" value="5-" />
                <
    label>Title :</label>
                <
    input type="text" name="title" value="" /><br class="frmClear" />
                <
    label>Author :</label>
                <
    input type="text" name="author" value="" /><br class="frmClear" />
                <
    label>Content :</label>
                <
    textarea name="article" cols="30" rows="30"></textarea><br class="frmClear" />
                <
    input type="hidden"  name="posted" value="1171613708" />
                <
    label></label><input type="submit" name="addblog" value="Insert">
                </
    form
    dargli una larghezza e centrare la paginazione oppure ancora meglio..

    imposti una dimensione a:
    div#content {
    height: auto !important; /* per i browser moderni */
    height: 200px; /* per IE5.x e IE6 */
    min-height: 200px; /* per i browser moderni */
    margin:5px 5px
    }

    e centri il

    nel content.. cosi risparmi anche un <div>
    Questa volta, più che un voto.. è favoreggiamento.

  10. #10

    ..........

    Ok tutto giusto quello che è stato detto
    ma porca P ZZZZZ perchè
    anche con sta regola non funzia:

    Codice PHP:
    p#paging { 
        
    float:right
           
    width:200px


    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

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.