Support » Fixing WordPress » Instructions to create page that spans 100% ?

  • All over the Internet I see questions and discussions about how especially if you want to have a WP page as a home page you generally may want it to not have a sidebar and span the width of the page.

    Yet I have never found any website or theme that offers the answer.

    Do you know of any source or example CSS code that includes both a “regular” page and a page without a sidebar where the content spans 100% wide?

    I’m sure this is a no brainer for any WP / CSS expert.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • create blank home.php then put
    
    <?php get_header(); ?>
    <div id="span100">
    // put content here
    </div>
    <?php get_footer(); ?>
    
    in style.css
    
    #span100 {
         clear: both;
         width: 100%;
         //and other declarations you might need
    }

    Don’t call it home.php – that’s a specific template file in the WP system, and it might replace your index.php in places where you wouldn’t want that. Call it anything else – mercime.php 🙂

    cheers 😉

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Instructions to create page that spans 100% ?’ is closed to new replies.