Forums

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

Home Forums CSS How to create a line next to comments like the image?

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #43431
    AlirezaM
    Participant

    Hello to everyone reading this!

    I have created a blog comment style in here :

    http://cdpn.io/luBaK

    now I want to put a line like image below to it :

    http://redhue.ir/images/71654551158257704481.png

    How can I do that?

    thanks in advance!

    Alireza.M

    #128464
    AlirezaM
    Participant

    Can this be done with :after and :before elements?

    #128467
    Paulie_D
    Member

    Probably…but I’m not sure that’s necessarily the best solution.

    I’d have to think but I would assume there are a variety of comment ‘types’ that could be used as classes and background images would work.

    #128469
    CrocoDillon
    Participant

    Not with all the overflow: hidden you have :( I tried. Best would be to try to make those lines borders (so you would have to redesign the whole thing so the edges align with the lines)… I think.

    #128476
    Senff
    Participant

    I would personally just use a background image (positioned left, no repeat) for each comment in the ul with class “children”.

    There’s some additional stuff that will be needed (the “main” comment shouldn’t have a line down when there’s no child comments, for example) but that’s where I would start.

    #128477
    Paulie_D
    Member

    I was think more along the lines of bg images in the left padding depending on the comment type/hierarchy.

    EDIT: Ah…@Senff beat me to it.

    #128512
    AlirezaM
    Participant

    I think the have this style in here: (search category > right-hand sidebar)

    http://themeforest.net/category/psd-templates/nonprofit

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