# \[Pro\] Box-sizing

**URL:** <https://discourse.softpress.com/t/pro-box-sizing/20688>\
**Category:** Freeway\
**Created:** [August 6, 2014, 8:28pm UTC](https://discourse.softpress.com/t/pro-box-sizing/20688 "2014-08-06T20:28:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ernie\_Simpson](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/e/a587f6/32.png) [@Ernie\_Simpson](https://discourse.softpress.com/u/Ernie_Simpson)\
**Post date:** [August 6, 2014, 8:28pm UTC](https://discourse.softpress.com/t/pro-box-sizing/20688/1 "2014-08-06T20:28:50Z")

</div>

I’ve been reading some of the comments about the Box Sizing action breaking under Pro7, and I’m curious about how it’s used and why it behaves the way it seems.

I’m not so much of an actions guy - I do use some very clever ones, but for box-sizing I use the following:

```auto
*, *:before, *:after { 
	-webkit-box-sizing: border-box; 
	-moz-box-sizing: border-box; 
	box-sizing: border-box; 
}

```

I set this as a Tag style in the FWP stylesheet. I also use a style reset (the Meyer Reset, though sometimes a Normalized reset). This method let’s me set the issue for most everything, site wide.

Is the Box Sizing action meant to perform only to applied items? What is the benefit of this?

Also, does the Box Sizing action affect how items appear in FWP’s workspace? My method obviously does not, but I am also undeterred by how the workspace appears.

I’ve not tried FW7 yet, so I’m listening closely to those of you who are.

* * *

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

---

<div class="post-metadata">

**Author:** ![ThomasKimmich](https://discourse.softpress.com/user_avatar/discourse.softpress.com/thomaskimmich/32/2753_2.png) [@ThomasKimmich](https://discourse.softpress.com/u/ThomasKimmich)\
**Post date:** [August 6, 2014, 9:47pm UTC](https://discourse.softpress.com/t/pro-box-sizing/20688/2 "2014-08-06T21:47:59Z")

</div>

> I’m not so much of an actions guy

Me neither

> I do use some very clever ones, but for box-sizing I use the following:
> 
> ```auto
> *, *:before, *:after { 
> -webkit-box-sizing: border-box; 
> -moz-box-sizing: border-box; 
> box-sizing: border-box; 
> }
> 
> ```

Me, too

> I set this as a Tag style in the FWP stylesheet. I also use a style reset (the Meyer Reset, though sometimes a Normalized reset). This method let’s me set the issue for most everything, site wide.
> 
> Is the Box Sizing action meant to perform only to applied items? What is the benefit of this?

None - except that you don’t need to re-adjust it via extended. This mostly ends up in boxes something 99.998754872% (output) wide.

> Also, does the Box Sizing action affect how items appear in FWP’s workspace?

not at all.

> My method obviously does not, but I am also undeterred by how the workspace appears.
> 
> I’ve not tried FW7 yet, so I’m listening closely to those of you who are.

I elsewhere said:

The only thing the FW7 needs is a workspace which behaves border-box as well. The towers addressed it, but with no date.

But if - it’ll be the golden age of BM.

Cheers

Thomas

* * *

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

---

<div class="post-metadata">

**Author:** ![David\_McCallum](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/d/ec9cab/32.png) [@David\_McCallum](https://discourse.softpress.com/u/David_McCallum)\
**Post date:** [August 6, 2014, 10:50pm UTC](https://discourse.softpress.com/t/pro-box-sizing/20688/3 "2014-08-06T22:50:17Z")

</div>

No action for me either.

There is a school of thought that offers a slight alternative:

```auto
html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

```

Apparently this is more beneficial if there are components on your page that may be embedded or via plug-ins

> **[Inheriting box-sizing Probably Slightly Better Best-Practice | CSS-Tricks](https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/)**
>
> I'm a big fan of resetting box-sizing to border-box, so much that we have a special day of the year around here. But there is a little adjustment to setting

David

* * *

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

---

<div class="post-metadata">

**Author:** ![Caleb\_G1](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/c/f475e1/32.png) [@Caleb\_G1](https://discourse.softpress.com/u/Caleb_G1)\
**Post date:** [August 7, 2014, 12:48am UTC](https://discourse.softpress.com/t/pro-box-sizing/20688/4 "2014-08-07T00:48:54Z")

</div>

The Box Sizing action does two things:

1. Applies `box-sizing: border-box;` to the element that the action is on.
2. Recalculates and overrides the width that Freeway constrains things to as a result of using `padding-box` in the design view.

I don’t typically use the Box Sizing action for my projects. However, it is incredibly useful in Backdraft, as Backdraft see’s a lot of use by people who may not understand why resizing a box in Freeway’s design view doesn’t result in a resize in the output (because the width set through the extended dialog is overriding). There is a sacrifice in code cleanliness for the “it just works” effect.

* * *

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