Grow your CSS skills. Land your dream job.

Div is over the text

  • # November 20, 2009 at 6:21 pm

    I have 3 divs

    And basically they create a header for each item, but when the .dealhead has the text moved up 5px (for presentation) some of it gets chopped off.
    [img]http://content.screencast.com/users/youcannotspellit/folders/Jing/media/fe43b386-4d33-485d-8517-b8dcade18e04/2009-11-20_1701.png[/img]

    If anyone wants to fire up firebug and help me out at http://penny-save.co.cc/ (my test site) I would be very thankful, even partial attempts are really helpful!

    # November 20, 2009 at 8:02 pm

    Sure man,

    Your problem is:

    Code:
    .dealhead a {
    color:#222222;
    position:relative;
    size:16px;
    [b]top:-5px;[/b]
    }

    You’re having your link move 5 pix up under the header div. I’d make your first div shorter, and increase the size of your text div.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".