| Re: Fixed width layout ? |
| by HBlinky on 2004/4/23 15:19:46 Yes, it worked perfectly. Thanks a lot everyone for your help so far. |
| Re: Fixed width layout ? |
| by djsckizo on 2004/4/23 11:31:56 I was wondering how to center my theme a while back, at 800px wide. This thread should help, in particular the last post by StudioC. https://xoops.org/modules/newbb/viewtopic.php?topic_id=14564&forum=5#forumpost59583 That's the one that works for me. |
| Re: Fixed width layout ? |
| by Mithrandir on 2004/4/23 9:54:03 You can also try setting the maxwidth of the body in css le="color: #000000"><?php body {max-width: 800px}
|
| Re: Fixed width layout ? |
| by HBlinky on 2004/4/23 5:31:06 this is pretty much what I tried previously, though I hardcoded the table width into the HTML, rather than using CSS. Unfortunately, this doesn't work either. I've set the widths of the columns in the css, and that seems to work ok. the columns though, have split apart, and there's a gap between them. I seriously don't know where I'm going with it any more, should I just start over with the theme ? |
| Re: Fixed width layout ? |
| by m0nty on 2004/4/22 14:08:50 the easiest way i know is to add this line straight under your <body> tag <table class="sitename" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> then add this just above the </body> tag </tr> </table> once done edit your style.css file and add this class .sitename { width: 990px; } of course you can change sitename to whatever you want as long as they both match in theme.html & style.css you can set the width to anything but remember to account for scrollbars. there maybe a better way of doing it, but this is how i managed it.. |