• You can see my problem here.

    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)
  • Um. Not a clue from looking at a .png. I usually troubleshoot by viewing source first.

    Thread Starter idbehold

    (@idbehold)

    Its kinda hard since its the admin page…

    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

    (@idbehold)

    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

    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

    (@macmanx)

    Could it be because you’re using a 3rd party CSS?

    Thread Starter idbehold

    (@idbehold)

    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.

    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.