# Padding messing up (css)

**URL:** <https://forum.kirupa.com/t/padding-messing-up-css/186926>\
**Category:** Uncategorized\
**Created:** [April 25, 2006, 1:06pm UTC](https://forum.kirupa.com/t/padding-messing-up-css/186926 "2006-04-25T13:06:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danulf](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/danulf/32/555_2.png) [@danulf](https://forum.kirupa.com/u/danulf)\
**Post date:** [April 25, 2006, 1:06pm UTC](https://forum.kirupa.com/t/padding-messing-up-css/186926/1 "2006-04-25T13:06:16Z")

</div>

I hope there’s a quick answer for this…

I use Avant browser which is an IE-based browser, and I often forget to look things over in Firefox etc. How is padding used in Firefox? Because when I set padding, it works the way it should in IE and Avant, but in firefox the box, with the padding applied to it, expands. So if I set padding-right to 4px, the box expands 4 pixels. Anyone know what the problem is? :-/

It doesn’t happen to everything, but if I have text on the very right of a box, it expands. It works normal if the text in centered or to the left.

---

<div class="post-metadata">

**Author:** ![JoshuaJonah](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshuajonah/32/1775_2.png) [@JoshuaJonah](https://forum.kirupa.com/u/JoshuaJonah)\
**Post date:** [April 25, 2006, 1:07pm UTC](https://forum.kirupa.com/t/padding-messing-up-css/186926/2 "2006-04-25T13:07:31Z")

</div>

oh… I though that said pudding messing up, but no pictures, im out:)

---

<div class="post-metadata">

**Author:** ![bwh2](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@bwh2](https://forum.kirupa.com/u/bwh2)\
**Post date:** [April 25, 2006, 2:25pm UTC](https://forum.kirupa.com/t/padding-messing-up-css/186926/3 "2006-04-25T14:25:26Z")

</div>

read up on the box model problem.
