• Resolved TomC3

    (@tomc3)


    Hi there

    I’m just wondering if anyone can help me.

    I’m doing a premise landing page for my client and they want the header (and any dark bars) to stretch across the width of the screen. I want the content to remain in the middle though.

    Can I do it with css?
    I’ve been trying to work it out using firebug. I’ve managed it with the footer, but I can’t work out how to do the header.

    The site is https://www.optimaumbrella.com

    Please help!

    Thanks a lot

    Tom

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter TomC3

    (@tomc3)

    Edit – sorry, it’s https://www.optimaumbrella.co.uk

    You can do it with CSS but it will need a bit of extra mark up.
    Rough guide, I’ll show you how to do the header which will apply to the other elements…

    1. change this to -> .premise-theme #wrap {width: 100%;}

    2. Then you need to add a new element inside of the divs that need to be 960px – so for example inside .headline-area you will need add an internal wrap so it looks like this…

    <div class="headline-area">
    <div class="new_960_wrap">
    EXISTING CODE HERE
    </div>
    </div>

    3. change this to -> .headline-area {width: 100%;}

    4. add this rule -> .new_960_wrap {width: 960px; margin: 0 auto;}

    …and repeat for all sections. Hope that helps you on your way.

    and add a background color to the full width elements

    .headline-area {width: 100%; background-color: #2B3338;}

    so the black fills out.

    Thread Starter TomC3

    (@tomc3)

    Thank you so much Lee…

    Do you know which file I will need to put the new markup in?

    you should have a child theme and use the correct file/hook in that.

    differs theme to theme.

    Thread Starter TomC3

    (@tomc3)

    I’ve done child themes before but only with css.

    Unfortunately, the last person to work on the site didn’t do a child theme and altered a lot of files, leaving me to pick up the pieces.

    If I update the theme the site falls to bits (really bad practice).

    I’m trying to get my client to let me start the site again for me.

    I was hoping for someone to tell me exactly how to make the change (sorry)!

    Thread Starter TomC3

    (@tomc3)

    Hi Lee – just wanted to say thanks… it worked!!!

    It all messed up in safari a bit so i reverted to no 100% for the moment, but I’ve got the concept and i’ll make continuing attempts to get it working.

    It definitely helped me on my way so thanks Very much ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Make my client's premis landing page 100% width’ is closed to new replies.