# \[Pro\] 100% Page Width

**URL:** <https://discourse.softpress.com/t/pro-100-page-width/4149>\
**Category:** Freeway\
**Created:** [March 6, 2009, 11:53pm UTC](https://discourse.softpress.com/t/pro-100-page-width/4149 "2009-03-06T23:53:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bryan\_Los](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/b/7c8e57/32.png) [@Bryan\_Los](https://discourse.softpress.com/u/Bryan_Los)\
**Post date:** [March 6, 2009, 11:53pm UTC](https://discourse.softpress.com/t/pro-100-page-width/4149/1 "2009-03-06T23:53:12Z")

</div>

I have been messing around with CSS boxes with undefined width and the page alignment set to “none”. If I just put text or inline images in the CSS boxes with undefined width, the boxes will stretch from end to end of the screen (I colored the box just to make sure). This is pretty much what I want. A colored box to stretch from one side to the other.

However, if I add any inline CSS boxes to the main box, the main box doesn’t behave like I want it to. What I would like to do is have a bottom box with some menus, pictures, links, and I want the entire bottom to stretch to each edge.

Here is an example of what I’m talking about: [http://osc3.template-help.com/osc\_21719/index.php](http://osc3.template-help.com/osc_21719/index.php)

Is there a way to keep the page alignment at center, and still have an undefined width box to fill the entire screen at the bottom of my page?

Ideally, I want to be able to make one main box span the width of the screen. Then take another box within that box and center it. Then in the inner most box, put other CSS boxes inline,etc, so the content is always centered, and the outter box always stretches from side to side.

I don’t know if you can center align CSS boxes however.

I can upload an example diagram if my description is convoluted in any way.

Bryan

* * *

freewaytalk mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![B81](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@B81](https://discourse.softpress.com/u/B81)\
**Post date:** [March 7, 2009, 12:14am UTC](https://discourse.softpress.com/t/pro-100-page-width/4149/2 "2009-03-07T00:14:01Z")

</div>

Take a good look at these examples from Dan ; [http://danjasker.blogspot.com/2008/07/fw5-understanding-box-model.html](http://danjasker.blogspot.com/2008/07/fw5-understanding-box-model.html)  
After that you should understand how to do it.

Op 7 mrt 2009, om 00:53 heeft Bryan Los het volgende geschreven:

> I have been messing around with CSS boxes with undefined width and  
> the page alignment set to “none”. If I just put text or inline  
> images in the CSS boxes with undefined width, the boxes will stretch  
> from end to end of the screen (I colored the box just to make sure).  
> This is pretty much what I want. A colored box to stretch from one  
> side to the other.
> 
> However, if I add any inline CSS boxes to the main box, the main box  
> doesn’t behave like I want it to. What I would like to do is have a  
> bottom box with some menus, pictures, links, and I want the entire  
> bottom to stretch to each edge.
> 
> Here is an example of what I’m talking about: [http://osc3.template-help.com/osc\_21719/index.php](http://osc3.template-help.com/osc_21719/index.php)
> 
> Is there a way to keep the page alignment at center, and still have  
> an undefined width box to fill the entire screen at the bottom of my  
> page?
> 
> Ideally, I want to be able to make one main box span the width of  
> the screen. Then take another box within that box and center it.  
> Then in the inner most box, put other CSS boxes inline,etc, so the  
> content is always centered, and the outter box always stretches from  
> side to side.
> 
> I don’t know if you can center align CSS boxes however.
> 
> I can upload an example diagram if my description is convoluted in  
> any way.
> 
> Bryan
> 
> * * *
> 
> freewaytalk mailing list  
> email@hidden  
> Update your subscriptions at:  
> [http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

* * *

freewaytalk mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![Paul\_Bradforth](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/p/ee59a6/32.png) [@Paul\_Bradforth](https://discourse.softpress.com/u/Paul_Bradforth)\
**Post date:** [March 7, 2009, 12:24am UTC](https://discourse.softpress.com/t/pro-100-page-width/4149/3 "2009-03-07T00:24:39Z")

</div>

On 6 Mar 2009, at 23:53, Bryan Los wrote:

> I have been messing around with CSS boxes with undefined width and  
> the page alignment set to “none”. If I just put text or inline  
> images in the CSS boxes with undefined width, the boxes will stretch  
> from end to end of the screen (I colored the box just to make sure).  
> This is pretty much what I want. A colored box to stretch from one  
> side to the other.
> 
> However, if I add any inline CSS boxes to the main box, the main box  
> doesn’t behave like I want it to.

How does it misbehave — you don’t say what happens?

> What I would like to do is have a bottom box with some menus,  
> pictures, links, and I want the entire bottom to stretch to each edge.
> 
> Here is an example of what I’m talking about: [http://osc3.template-help.com/osc\_21719/index.php](http://osc3.template-help.com/osc_21719/index.php)

I’m not sure you’re using the right nomenclature here Bryan; the only  
piece of the site you linked to that I could see that stretched is a  
faint blue gradient underneath the very top bar. The rest of the site  
seems to be a fixed size which doesn’t stretch, but remains centered  
in the browser window, which is pretty normal behaviour. You can  
achieve this by simply setting the site alignment to ‘Centre’ in the  
Inspector.

> Ideally, I want to be able to make one main box span the width of  
> the screen. Then take another box within that box and center it.  
> Then in the inner most box, put other CSS boxes inline,etc, so the  
> content is always centered, and the outter box always stretches from  
> side to side.
> 
> I don’t know if you can center align CSS boxes however.

With an inline ‘box-model’ layout, it’s normally done by setting left  
and right margins to ‘auto’.

best wishes,

Paul Bradforth

[http://www.paulbradforth.com](http://www.paulbradforth.com)

* * *

freewaytalk mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![Bryan\_Los](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/b/7c8e57/32.png) [@Bryan\_Los](https://discourse.softpress.com/u/Bryan_Los)\
**Post date:** [March 7, 2009, 12:42am UTC](https://discourse.softpress.com/t/pro-100-page-width/4149/4 "2009-03-07T00:42:31Z")

</div>

Thanks b8, going to watch that. And thanks Paul. I forgot about the “auto” margin setting. Just when I think I got the hang of Freeway, I realize I’m doing something the wrong way! But I love it that way, as you learn much more from your mistakes.

I did a quick box-model and used the auto margins and it centered the inside box and stretched the background color to each edge of the screen. I can’t believe I forgot about the auto margin feature.

I have two sites I’m going to be doing within the next few weeks, and this is the only thing that had me perplexed.

I’ll be back if I have any other questions.

Bryan

* * *

freewaytalk mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![Dan\_J](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/d/f19dbf/32.png) [@Dan\_J](https://discourse.softpress.com/u/Dan_J)\
**Post date:** [March 7, 2009, 10:45pm UTC](https://discourse.softpress.com/t/pro-100-page-width/4149/5 "2009-03-07T22:45:34Z")

</div>

Bryan, glad it worked out for you.

* * *

freewaytalk mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)
