Forums

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

Home Forums CSS [Solved] How to Implement this user interface via CSS.

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #182871
    msaljaber
    Participant

    I’m working on WordPress template, and got this little problem which is: I can’t position the date label above the image thumbnail, as you can see here:

    http://cl.ly/image/3X1j3h3j0E0X

    If I make the label position: absolute, its position would be changed while the window is changing.

    How could I implement the right CSS for that.

    Here is the CodePen example: http://codepen.io/msabdullah/pen/rplgC

    #182877
    Paulie_D
    Member

    You need to complete the HTML…you have unclosed elements.

    http://codepen.io/Paulie-D/pen/egxiG

    Use position:relative on the parent and you’re good to go.

    #182879
    __
    Participant

    You’re trying to match the layout in the image you posted?

    HTML is the same; but I took out a lot of CSS. If you are able to change the HTML,this could be done with even less code.

    edit

    …you have unclosed elements.

    Missed that!

    #182900
    msaljaber
    Participant

    Is is better to type less HTML code?

    #182901
    msaljaber
    Participant

    Yup thank you. The problem was that I, somehow, forgot to make the parent element position: relative so its children would not change its position while the window changing. Thank you.

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