Viewing 6 replies - 16 through 21 (of 21 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try this:

    .content-area {
        position: relative;
    }
    
    .content-area:after {
        background: red;
        content: '';
        display: block;
        height: 100%;
        position: absolute;
        right: 0;
        top: 0;
        width: 398px;
    }

    Thread Starter 1formanet

    (@1formanet)

    Hello, it is perfect in full screen, but not good in responsive : the red overwrite the left column

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Yes are you familiar with Media Queries? You can change the positioning and width – the styles causing the issue – on smaller devices.

    Thread Starter 1formanet

    (@1formanet)

    Hello, familiar is not my best definition ! I use them. But anyway, when I prospect this new code, I have although in responsive some title too big (going in the side), and in the right of the content a line blue;
    Do you think I should keep this code, and going to correct each problem in Media Queries ?
    Thanks for your help, I fell less desesperate !

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try this code instead:

    @media screen and (min-width: 1008px) {
        .content-area {
            position: relative;
        }
    
        .content-area:after {
            background: red;
            content: '';
            display: block;
            height: 100%;
            padding-left: 20px;
            position: absolute;
            right: 0;
            top: 0;
            width: 30%;
        }
    }

    Thread Starter 1formanet

    (@1formanet)

    Wahouh ! Perfect ! Thanks, my week-end sounds better !

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Twentyfourteen white space’ is closed to new replies.