Skip to content

Instantly share code, notes, and snippets.

@madalinignisca
Created July 1, 2013 21:56
Show Gist options
  • Save madalinignisca/5904993 to your computer and use it in GitHub Desktop.
Save madalinignisca/5904993 to your computer and use it in GitHub Desktop.
Replace title with logo example the better way (solves some performance problem in many low mobile devices)
h1.logo a {
display: block;
width: 300px;
height: 100px; /* valori de dimensiuni in functie de logo */
background: url(logo.png) no-repeat 0 0;
font: 0/0 a; /* truc sa facem textul ascuns */
/* ne asiguram ca resetam eventuale mosteniri nedorite */
border: 0;
text-shadow: 0;
color: transparent;
background-color: transparent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment