Title: Problem with Admin CSS or HTML
Last modified: August 18, 2016

---

# Problem with Admin CSS or HTML

 *  [idbehold](https://wordpress.org/support/users/idbehold/)
 * (@idbehold)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/problem-with-admin-css-or-html/)
 * You can see my problem [here](http://img81.exs.cx/img81/8768/wordpress2mr.png).
 * The html is setup like this (just look at you plugin.php under wp-admin):
    `<
   div class="wrap"> <table width="100%" cellpadding="3" cellspacing="3"> (all the
   plugin info) </table> </div>
 * The CSS looks like this:
    `body { background: #fff; color: #000; margin: 0 auto;
   padding: 0; width: 760px; border-top: 2px solid #060; }
 * `.wrap {
    border: 1px solid #ccc; margin: 15px 5%; padding: .5em 1em; background:#
   f5f5f5; }
 * Can anyone figure out why it is going off the edge of the div. I cant even get
   it to change its size, I’ve tried setting the table’s width at 50% and 400(px),
   but no luck. Can anyone fix this?

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

 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/problem-with-admin-css-or-html/#post-176000)
 * Um. Not a clue from looking at a .png. I usually troubleshoot by viewing source
   first.
 *  Thread Starter [idbehold](https://wordpress.org/support/users/idbehold/)
 * (@idbehold)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/problem-with-admin-css-or-html/#post-176002)
 * Its kinda hard since its the admin page…
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/problem-with-admin-css-or-html/#post-176009)
 * My plugins. php file looks just like what you posted. The CSS shows pretty much
   exactly the same as your post – EXCEPT for the ` width: 760px;` – did you add
   that in?
 *  Thread Starter [idbehold](https://wordpress.org/support/users/idbehold/)
 * (@idbehold)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/problem-with-admin-css-or-html/#post-176015)
 * The only things I changed are in this ZIP, all of the other code is the standard
   stuff you get with the WP 1.5 download:
 * [http://randywalker.net/wp-content/wp-admin.zip](http://randywalker.net/wp-content/wp-admin.zip)
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/problem-with-admin-css-or-html/#post-176019)
 * I’ve got it, will look at it in depth tomorrow – just at this point I’m wondering
   if it’s a problem with a clear element or lack thereof – but it’s late for me,
   I’ve been up since before daylight today, and was just headed for bed; I WILL
   look at it further tomorrow. I’m too fuzzy right now to be sensible! Sorry….
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/problem-with-admin-css-or-html/#post-176038)
 * Could it be because you’re using a 3rd party CSS?
 *  Thread Starter [idbehold](https://wordpress.org/support/users/idbehold/)
 * (@idbehold)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/problem-with-admin-css-or-html/#post-176285)
 * Um, I realize that it is a third party CSS, and I have posted the CSS and the
   HTML, which look valid, however it is messing up for some reason, that is what
   I’m trying to fix.
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/problem-with-admin-css-or-html/#post-176293)
 * I tend to think you’d be better off putting the `width: 760px;` somewhere besides
   the body element for one thing – usually the body element will be 100% even if
   not declared specifically, and you’ll have other “wrappers” set for a specific
   narrower width.
 * Another thing, you’ve got various floats in there, but only one clear, and of
   course that may not be a problem at all – keep in mind that I actually have practically
   no background in the php files in wp combined with the admin css file…. I build
   sites with css/html exclusively, but have hardly played with anything in WP except
   tweaking others’ themes….
 * [In other words, I’m most likely no help at all, and feel free to tell me to 
   take a flying…. maybe Lorelle will be along soon – she’s about the best WP css
   guru I’ve run across yet! And good luck, please let us know how it gets sorted….]

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

The topic ‘Problem with Admin CSS or HTML’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 3 participants
 * Last reply from: [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * Last activity: [21 years, 2 months ago](https://wordpress.org/support/topic/problem-with-admin-css-or-html/#post-176293)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
