Forum:Templates look horrible in Monobook

Hey, so I made some templates that look a bit like this:

http://reptiles.wikia.com/wiki/Template:Rewrite

But in Monobook, they're severely messed up:

http://reptiles.wikia.com/wiki/Template:Rewrite?useskin=monobook

Can anyone find a fix for this? Thesaurus Rex 15:56, August 1, 2011 (UTC)


 * It's like that because you specified a few table properties in your Monobook.css. You'll have to remove those, or exempt them specifically on that template.
 * Really? Where are they? I don't remember adding anything that has anything to do with tables into the .css. Thesaurus Rex 16:23, August 1, 2011 (UTC)
 * It's the sixth set from the bottom, with the selector . The background color and border there are why you see your templates weird in Monobook.
 * Okay. Well I removed those, but the alignment of the template is still messed up, and now a part of the template is white. I even did Ctrl+F5 and everything. --Thesaurus Rex 16:41, August 1, 2011 (UTC)
 * It's probably the use of . Instead, put it in the style attribute as , and it should show up.
 * Okay. I just went back to a previous version, after doing what you said didn't work. That fixed the color problem. But my actual problem is the layout of the template itself. It is stretched really far, whereas in the Wikia skin it looks fine. Thesaurus Rex 02:47, August 2, 2011 (UTC)
 * It's a div, so it takes up all the space it can. Since Monobook is significantly wider than Oasis, so it's wider there. If you specify a fixed width, it'll appear that way in both skins.
 * Oh...okay, then. I'm sort of new to the whole coding thing. In the template pages, I have their widths at around 500%. I thought that would give them some kind of fixed width. Can you tell me the right way to do it? Thesaurus Rex 04:06, August 2, 2011 (UTC)
 * Width caps at, because 100% is all of the space it's capable of taking up. Since the space it's capable of taking up scales with the width of what it's inside, percents are a variable width measurement. What you want to use is  , which is pixels.   is always the exact same distance, regardless of page width (or font size). If it helps, the content area in Oasis is 670px, so anything larger and it'll crop your template.

Aar, stupid me, I have no idea where I got the 500% bit from. It's 500px in another part of the template that does not deal in the width of the div. There actually is no div parameter for width. So now I put one up there at 640px, and it works. Thank you for your troubles. Now, I just need to figure out what's wrong with the border, and then try to fix the color. But I think I should address the double border first. Just to make sure there's no mistakes in description, here's the template itself:

 

Thanks a bunch for your help so far, if you can help me now with this confusing bit that would be great. --Thesaurus Rex 01:29, August 3, 2011 (UTC)