Notes
  • From the desk of Andrea Rufo
  • Creare una favicon .ico
  • Convertire il Markdown in HTML tramite API pubblica
  • Cosa devo fare quando formatto il Mac
  • Alcune regole di .htaccess
  • Cancellare i file DS_Store
  • Cosa richiedere per l'acquisto di un nuovo dominio
  • Wordpress
    • Redirect per permalink basati su data
    • Tema AMP per Wordpress
    • Installare Wordpress via CLI
    • I miei plugin preferiti per Wordpress
    • Quando su Wordpress non funziona l'FTP
    • Manovrare il titolo di archivio per Wordpress
    • Normalizzare i custom fields di Wordpress
    • Aggiungi riassunto alle pagine
  • Sistemi
    • Salvare l'accesso SSH
    • Fai tutti gli aggiornamenti possibili
    • Installazione completa di ambiente LAMP
    • Come creare e avviare un cronjob
  • Design and CSS
    • Trick per sticky menu e ancore
    • Calcolare i pixel scrollati
    • Scroll nella pagina con ancore e jQuery
    • Immagini responsive
    • Creare un nuovo bottone di Bootstrap
    • Gli stili delle Google Maps
    • Personalizzare completamente l'aspetto di una select
    • Scrivere in verticale coi CSS
    • Attributi degli elementi
    • CSS per font di sistema
    • Come estrarre le immagini originali da un file Sketch
  • PHP
    • Mappare le chiavi di un array
    • Ottenere l'url completo in PHP
    • Normalizzare un CSV
    • Ordinare un array multidimensionale per le chiavi del sottoarray
    • Raggruppare tutti gli elementi di un array
  • Socials
    • Ottenere un token di Instagram
    • Scaricare foto, video e stories di Instagram
Powered by GitBook
On this page

Was this helpful?

  1. Design and CSS

Attributi degli elementi

È possibile stilare un elemento html anche attraverso l'individuazione dei suoi attributi più particolari:

/* Seven different types of CSS attribute selectors */

// This attribute exists on the element
[value]

// This attribute has a specific value of cool
[value='cool'] 

// This attribute value contains the word cool somewhere in it
[value*='cool'] 

// This attribute value contains the word cool in a space-separated list
[value~='cool'] 

// This attribute value starts with the word cool
[value^='cool'] 

// This attribute value starts with cool in a dash-separated list
[value|='cool'] 

// This attribute value ends with the word cool
[value$='cool'] 
PreviousScrivere in verticale coi CSSNextCSS per font di sistema

Last updated 5 years ago

Was this helpful?

Referenza:

https://gist.github.com/emmabostian/ed933bc7f9711acdc565f42f1b159407