Title: Page width using CSS
Last modified: August 18, 2016

---

# Page width using CSS

 *  [marzar00](https://wordpress.org/support/users/marzar00/)
 * (@marzar00)
 * [19 years ago](https://wordpress.org/support/topic/page-width-using-css/)
 * G’day
    I am making a new theme for my site and have decided to try this div and
   css thing that seem all the rage nowdays. I have made most of it, however for
   some reason the boxes expand past the window edges!
 * I think i know where the problem is coming from, however don’t know exactly why
   or what is causing it! Oh I should say where, its in the credit div (one at the
   base).
 * Any help is much appreciated,
 * Marzar

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Marcel Brinkkemper](https://wordpress.org/support/users/macbrink/)
 * (@macbrink)
 * [19 years ago](https://wordpress.org/support/topic/page-width-using-css/#post-568874)
 * G’day marzaroo.
    what is the URL of your site?
 *  Thread Starter [marzar00](https://wordpress.org/support/users/marzar00/)
 * (@marzar00)
 * [19 years ago](https://wordpress.org/support/topic/page-width-using-css/#post-568875)
 * [http://www.marzar00.finditmax.com/test-theme/index2.php](http://www.marzar00.finditmax.com/test-theme/index2.php)
 * In FireFox the credit bar is also in the wrong spot.
 *  [Marcel Brinkkemper](https://wordpress.org/support/users/macbrink/)
 * (@macbrink)
 * [19 years ago](https://wordpress.org/support/topic/page-width-using-css/#post-568952)
 * marzaroo,
    I have just given your site a quick look and noticed that you explicitely
   name all your classes like `contentPanel .contentBox .posttitle` you don’t have
   to do that. Styles are inherited from containing classes a class `.contentBox`
   thus describes the diferences in `.contentBox` compared to `.contentPanel` Also,
   you are mixing relative width (75%) with fixed width (675px). It takes too long
   to go into detail on your stylesheet but there are a lot of nice css tutorials
   on the web. e.g.: [http://www.tizag.com/cssT/index.php](http://www.tizag.com/cssT/index.php)(
   I have no connection to this site, it just came up in my search for css tutorials)
 *  Thread Starter [marzar00](https://wordpress.org/support/users/marzar00/)
 * (@marzar00)
 * [19 years ago](https://wordpress.org/support/topic/page-width-using-css/#post-569189)
 * Thanks for the help macbrink. I have made a few changes and i believe I almost
   have the hang of div and styling. However (there always is a however!), for some
   reason I get a scroll bar across the base of the page which I can’t seem to figure
   out how to remove. I have looked and there doesn’t appear to be anything past
   it.
 * Marzar
 *  [Marcel Brinkkemper](https://wordpress.org/support/users/macbrink/)
 * (@macbrink)
 * [19 years ago](https://wordpress.org/support/topic/page-width-using-css/#post-569206)
 * marzaroo, probably one element of your site is larger than the width of your 
   browser. Only a few pixel may result in the scrollbar.
 *  Thread Starter [marzar00](https://wordpress.org/support/users/marzar00/)
 * (@marzar00)
 * [19 years ago](https://wordpress.org/support/topic/page-width-using-css/#post-569234)
 * Ok, when I placed the credit bar in this occured. However, the credit bar is 
   set at 100% width! Should that not restrict all other parameters?
 * Marzar
 *  [pbear](https://wordpress.org/support/users/pbear/)
 * (@pbear)
 * [19 years ago](https://wordpress.org/support/topic/page-width-using-css/#post-569245)
 * Sometimes you need to play with the widths. If I set your .wp-admin-bar to width:
   99.7% I lose the horizontal scroll bar.
 * Site looks nice. Good luck with it. 🙂

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Page width using CSS’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [div](https://wordpress.org/support/topic-tag/div/)
 * [expand](https://wordpress.org/support/topic-tag/expand/)
 * [window](https://wordpress.org/support/topic-tag/window/)

 * 7 replies
 * 3 participants
 * Last reply from: [pbear](https://wordpress.org/support/users/pbear/)
 * Last activity: [19 years ago](https://wordpress.org/support/topic/page-width-using-css/#post-569245)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
