Forums

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

Home Forums CSS show divs next to each other

  • This topic is empty.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #45878
    ctpweb
    Member

    Hi,

    On the homepage of my website wiels-music.be/music there are 4 blogposts showing. I would like to display the title and excerpt of the post on the right of the image so that it’s horizontal instead of vertically displayed.

    The design needs to stay responsive.

    Thank you!

    #140485
    Paulie_D
    Member

    Link does not work.

    #140487
    ctpweb
    Member

    Excuse me, it’s wiels-music.be/music

    #140488
    Paulie_D
    Member

    To start, your div `.omc-half-width-category` is only 290px wide.

    You will need to increase the width to 580px (double) otherwise the text won’t fit to the right of the image.

    #140489
    Paulie_D
    Member

    Here’s the basics as I see it. http://codepen.io/Paulie-D/pen/eIADn

    If you float all of the items inside the article (and use a clearfix) it can be done.

    #140673
    ctpweb
    Member

    awesome thanks!

    one more thing: I added a “read more” button. how can I set the size of the button. I would like it to be a bigger button. If I set a width or height to the button a element it doesn’t change. Thanks!

    #140674
    Paulie_D
    Member

    Try adding some padding to

    h1.button a

    on line 108 of your stylesheet

    #140682
    ctpweb
    Member

    you are the best! what’s your hourly rate? do you work freelance?

    #140684
    Paulie_D
    Member

    >you are the best! what’s your hourly rate?

    Just happy to help.

    >do you work freelance?

    Unfortunately not.

    #140710
    ctpweb
    Member

    alright thanks for your help :)

    #143469
    ctpweb
    Member

    Hi Paulie, I need to reopen this issue. It worked great, but I found out that your solution is not responsive at all and it breaks my design on a smartphone.

    #143450
    Paulie_D
    Member

    Suggest you start a new thread with appropriate links and details of mobile device and browser being used.

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