Forums

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

Home Forums CSS Weird hover behavior for webfont

  • This topic is empty.
Viewing 15 posts - 1 through 15 (of 29 total)
  • Author
    Posts
  • #43112
    wragen22
    Member

    Hi all,
    By adding a simple color change via css to my webfont h1, there is some residue from the previous color. This is only happening on some of the fonts. Any idea how this is happening?

    &:hover {
    @include transition(#4a4a4a .1s ease-in-out);
    color: #4a4a4a;
    }

    [screen-shot](http://i2.photobucket.com/albums/y13/wragen22/screen_zpsa4fefc41.png “screen-shot”)

    Much thanks.

    #126785
    Paulie_D
    Member

    We really need to see it in a live link to test/see for ourselves.

    #128228
    wragen22
    Member

    Here is the link. http://jamilopitts.com/kirby/

    Also, guess while I have your eyes… having trouble getting my logo image to display. I have tried multiple directory src locations including ../ ect but still not working.. :-/

    #128274
    wragen22
    Member

    anyone?

    #128276
    Timothy Smith
    Participant

    On the italics font in your example, it looks like the “ease-in-out” effect is only going the width of a non-italic font. Have you tried adjusting the width of the transition?

    #128278
    Alen
    Participant

    You need to increase left and right padding on `h1` element. Issues goes away.

    remove `padding-bottom:0;` and add `padding:0 20px;`

    edited to add..

    where is your image located in your directory structure?

    #128285
    Alen
    Participant

    Josh is right, if you load the direct svg path, xml is rendered http://jamilopitts.com/kirby/assets/images/jte.svg

    #128313
    wragen22
    Member

    @joshblackwood tried this…still not working

    #128314
    Alen
    Participant

    It works : http://jamilopitts.com/kirby/assets/images/jte.svg

    You have it as: `/assets/images/jte.svg` in your code.

    Change to: `/kirby/assets/images/jte.svg`

    #128315
    wragen22
    Member

    tried that. still nothing :-/

    #128363
    Alen
    Participant

    Try

    ``

    or

    ``

    #128364
    Alen
    Participant

    And your HTML still has syntax errors.

    #128376
    wragen22
    Member

    yes, i’ll get to the syntax. the first spits out the svg code, the second does nothing.

    http://jamilopitts.com/kirby/

    #128379
    Paulie_D
    Member

    I have no idea why it’s causing the issue but removing **inline-block** from the h1 solves the problem.

    Aren’t [h1] block by default? Why would one change that?

    #128380
    Alen
    Participant

    It works

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