Forums

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

Home Forums CSS Fixed position center right responsive.

  • This topic is empty.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #46332
    revolutiong
    Participant

    I am almost there, got center left. Can some give me hand and get me center right?

    Check out this Pen!

    #142435
    Paulie_D
    Member

    what is supposed to ‘center right’.

    Oh…and if it’s centered, how can it also be right?

    Are you trying to do something like this: http://codepen.io/Paulie-D/pen/57ad1e3163d6478406f39f93fec02086

    #142437
    revolutiong
    Participant

    The right side of the parent container. Which is centered with a max-width of 960px. It also need to be responsive so no fixed widths.

    #142454
    Paulie_D
    Member

    Obviously, I’m not understanding what it is you are trying to do.

    Do you have an image of what this is supposed to look like.

    #142457
    Senff
    Participant

    Adding text-align:right; won’t give you what you want?

    #142518
    revolutiong
    Participant

    If you look at the codepen, The orange box should be on the right side not the left side. Its position is fixed.

    #142524
    Paulie_D
    Member
    #142530
    revolutiong
    Participant

    nope, it should be over the text, also responsive. I think I got a solution though. Fixed the width at 960, float the div inside, then create a media query for less then 960, width:auto; right:0.

    #142533
    Paulie_D
    Member

    Ok…then all you have to do is remove the padding from the article….but it’s a terrible user experience to actually cover the content like that.

    #142538
    revolutiong
    Participant

    Your right man, it does look pertty bad. Thanks for your help, as always. But at least I did it. Here is the pen if anyone is ever interested.

    Check out this Pen!

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