Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] fahrner image replacement not working

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #163858
    annoehab
    Participant

    I am doing a technique in css called fahrner image replacement and this the html code that i put

    a this is the css code .technique-two { width: 2350px; height: 75px; background: url("test.jpg") top right; margin: 0 0 0 0; }

    but it didn’t work and i dont know where is the problem please if anyone know where is the problem write it to me because it causing to me a big trouble

    #163870
    Paulie_D
    Member

    If you are referring to this article: https://css-tricks.com/css-image-replacement/

    You missed the margin statement

    <h1 class="technique-two">
      CSS-Tricks
    </h1>
    
    h1.technique-two {
      width: 2350px; height: 75px;
      background: url("images/header-image.jpg") top right;
      margin: 0 0 0 -2000px; <--- here 
    }
    
    #163875
    annoehab
    Participant

    Yes i fixed it but it also give me the same result

    #163877
    Paulie_D
    Member

    Perhaps you could make a Codepen to show us what you are doing?

    #163908
    annoehab
    Participant
    #163935
    annoehab
    Participant

    Thank you bro it is fixed know

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘CSS’ is closed to new topics and replies.