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

    Test: contenuto generato ed immagini

    http://gabrieleromanato.altervista.o...o-ed-immagini/

    compatibilità: Opera 7.54, 8.01, 8.53, 8.54, 9 beta (?).

    fondamentalmente, se nel futuro Dio vorrà (e Bill Gates sarà d'accordo), si potrebbe colmare questa lacuna dei CSS 2.1 ampliando il supporto dei browser a stili come:

    codice:
    img:before {
      content: attr(alt);
    }
    
    [img]tux.jpg[/img]
    le applicazioni sono infinite: accessibilità, design, generazioni di hover dinamici.

  2. #2

  3. #3
    nessun comment? neanche un ma va da via a......

  4. #4

    Il parere di Mark Schenk

    Hi Gabriele,

    nice demo! There is a small cosmetic adjustment I would like to suggest to the
    first test:

    img:hover:before {
    width: 248px; /* you had 250px */
    }

    that way the generated content is exactly the same width as the image; you
    didn't take the border-width into account.

    There's also apparently a bug in Opera 9 which appears when using
    :before/:after
    on an image, which I spotted after looking at your demo. I'll isolate
    it tonight
    and submit it.

    Cheers,
    raga, mai al suo livello!

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.