Skip navigation
RathiusBGWS
Currently Being Moderated

How to center wireframe layout in browser window

Aug 29, 2012 3:50 AM

Tags: #web #layout #center #proto

HELP!!

 

I've created a set of wireframes for a website in Proto but when I bring them up in a browser window the layout is always left aligned and I cannot figure out how to get the layout to center in the browser window.

 

I've used margin: 0 auto; on the container div but it does no good, the layout stays left aligned. I'm about to pull my hair out on this one.

 

The URL is http://www.bluegrasswebservices.com/kpp/index.html

 

Thanks for your help

 

Gary

 
Replies
  • Takashi Morifusa
    87 posts
    Nov 12, 2008
    Currently Being Moderated
    Aug 29, 2012 10:07 AM   in reply to RathiusBGWS

    Can you update Proto v1.5 and try it again?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 30, 2012 8:19 AM   in reply to RathiusBGWS

    I had the same issue and decided to make the change myself. All you have to do is add a wrapper div, match it to the width of your file and center it via CSS. It would def be much more convenient to have this as an option, but alas your solution is below....

     

     

    HTML

     

    <div id="wrapper">

     

    Your page content

     

    </div>

     

     

    CSS

     

    #wrapper{

        width: (width of your content);

        position: relative;

        margin: 0 auto;

    }

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 30, 2012 12:11 PM   in reply to RathiusBGWS

    You won't have to as long as you place all of your content within the wrapper div. Just be sure to exclude the body tags and any head elements and you should be fine.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 18, 2012 7:11 AM   in reply to RathiusBGWS

    Totally agree with RathiusBGWS...adding the wrapper in Proto up front would be nice, apart from that this app is awesome ticks all the boxes as far as i'm concerned when it comes to rapid prototyping.

     

    Would also be nice to be able to customize the width of your prototype larger than 960px.

     

    thanks

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points