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

Home Forums CSS Underline Background Image repeating?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #35397

    Hello wonderful people of CSS-Tricks, I’m currently having an issue with a h2 style element, where I have a background image there (to create an underline) but it seems to be repeating at the top left of the page (above the left menu/under the blue line). Anyone have any idea what’s causing this? I’ve tried a fixed width, no-repeat etc with no joy.


    h2 {  font-size:123.1%;
    margin: 0px 0px 1em 0px;
    background: url('images/underline.png') no-repeat left bottom;
    padding: 0px 0px 8px 0px;
    } <- to view what i'm talking about


    I just tried removing the h2 from the logo just to speed up the process, no joy. (Is that a correct method?)


    Ok, just done what you said Steven, made a world of difference. Thanks for the help, much appreciated.

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