Visualizzazione dei risultati da 1 a 8 su 8
  1. #1
    Utente di HTML.it
    Registrato dal
    May 2004
    Messaggi
    165

    problema di allineamento immagine con testo

    Ho un problema :
    all'interno di una cella ho messo un immagine a sinistra e il testo a destra , ma il testo non riesce a stare esattamente alla destra dell'immagine , cioè solo la prima riga del testo sta alla destra dell'immagine lasciando molto spazio in alto a destra , SAPETE DIRMI CHE CODICE DEVO METTERE PER NON LASCIARE QUELLO SPAZIO E METTERCI IL TESTO? il codice è questo :

    <td valign='top' border='1' > <div align='justify'>[img]foto.jpg[/img]<font

    color='#ffffff'> testo testo testo testo testo testo testo testo testo testo testo testo testo testo

    testo testo testo testo testo testo testo testo testo testo testo testo testo testo testo testo

    testo testo testo testo testo testo testo testo testo testo testo testo testo testo testo testo

    testo testo testo testo testo testo testo testo testo testo testo testo testo testo testo testo

    testo testo testo testo testo testo testo testo testo testo testo testo testo testo testo testo

    </font>
    </td>

  2. #2
    codice:
    <div>
       
    
    Ciao a tutti come va tanto non mi interessa.</p>
       [img]...[/img]
    </div>
    codice:
    img {
       float:left;
    }

  3. #3
    Prova a mettere:
    codice:
    <div align='justify' style="float: left;">
    FEDERIX.IT - [Pillola] GRAFICA DEI FORM

    ...ho ancora quella forza che ti serve, quando dici "Si comincia!"

  4. #4
    @Federix

    Perchè ti ostini ad usare gli stili inline?

  5. #5
    Utente di HTML.it
    Registrato dal
    May 2004
    Messaggi
    165
    non ho capito bene questo codice dove metterlo
    img {
    float:left;
    }


    cmq ho provato a mettere
    <div>


    Ciao a tutti come va tanto non mi interessa.</p>
    [img]...[/img]
    </div>
    ma il risultato che riesco ad avere il testo sopra e sotto l'immagine ma non a destra


    ho provato anche
    <div align='justify' style="float: left;">
    ma nulla non funziona

  6. #6
    Utente di HTML.it
    Registrato dal
    May 2004
    Messaggi
    165
    Son riuscito a risolvere il problema creando una tabella all'interno di una cella


    <td valign='top' border='1' >

    <table align='left' border='0' width='150'></tr><td>[img]sfondo.jpg[/img]</td></tr></table>

    <font size='1' color='#ffffff'> <div align='justify'>
    er testo testo testo testo ee r testo testo r

    testo testo eee r testo eeee r testo testo ee r testo testo r testo testo eee r testo eeee r

    testo testo r testo eeee e r testo testo eee ree testo ee reeee testo e r testo testo r testo

    testo eee r testo eeee r testo testo r testo e eeee reeee testo eeee r testo eeee r testo

    testo r testo testo r testo testo eee re testo eee reee testo ee r testo testo r testo testo

    eee r testo eeee reeee testo e r testo testo r testo testo eee r testo eeee r testo testo r

    testo eee ee r testo eee testo reee testo e reee
    </div></font>
    </td>

  7. #7
    Sai quale è la soluzione più semplice??? Scrivere nel tag <img> l'attributo align="left", però è un attributo che piano piano va scomparendo con le versione nuove dei codici XHTML.
    FEDERIX.IT - [Pillola] GRAFICA DEI FORM

    ...ho ancora quella forza che ti serve, quando dici "Si comincia!"

  8. #8
    Utente di HTML.it
    Registrato dal
    May 2004
    Messaggi
    165
    in efetti era piu semplice però sotto l'immagine volevo metterci un file audio , io vi scrivo i codici che ho messo , cosi se volete consigliarmi qualche codice piu semplice .


    <td width='50%' valign='top' border='1' >

    <table align='left' border='0' width='135'></tr><td>
    [img]foto.jpg[/img]
    <iframe frameborder='1'

    border='1' noresize scrolling='no' height='22' width='135'

    name='sinistraaudio'> </iframe>

    <base target='sinistraaudio'><font size='1'>
    (mp3) (midi)
    </td></tr></table>

    <font size='1' color='#ffffff'> <div align='justify'>er testo testo testo

    testo ee r testo testo r testo testo testo r testo testo e r testo testo

    ee r testo testo r testo testo testo r testo testo e r testo testo r

    testo testo e e r testo testo testo ree testo ee r testo e testo e r

    testo testo r testo testo testo r testo testo testo testo r testo e

    testo e r testo e testo testo e r testo testo e r testo testo r testo

    testo r testo testo testo re testo testo r testo testo ee r testo testo

    r testo testo testo r testo testo e r testo e testo e r testo testo r

    testo testo testo r testo testo e r testo testo r testo testo ee r testo

    testo testo r testo testo e r testo </div></font>
    </td>

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.