1
HBlinky
Fixed width layout ?
  • 2004/4/22 13:39

  • HBlinky

  • Just popping in

  • Posts: 23

  • Since: 2004/2/1 1


I'd love to make a fixed width layout, but my efforts haven't gotten me anywhere just yet.

Is there an easy way ? Should I just add a fixed width table / div around the entire template ?

Also, my menus don't line up.

My main / user menu is wider than the rest, due to the table embedded into the block, that pushes it out. How can I get the table to sit nicely inside the block ?

www.stoopidnews.com is the site, you can see I've been messing around with it a lot.

2
m0nty
Re: Fixed width layout ?
  • 2004/4/22 14:08

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


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..

3
HBlinky
Re: Fixed width layout ?
  • 2004/4/23 5:31

  • HBlinky

  • Just popping in

  • Posts: 23

  • Since: 2004/2/1 1


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 ?

4
Mithrandir
Re: Fixed width layout ?

You can also try setting the maxwidth of the body in css
body {max-width800px}

5
djsckizo
Re: Fixed width layout ?
  • 2004/4/23 11:31

  • djsckizo

  • Just can't stay away

  • Posts: 401

  • Since: 2003/5/9 8


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.

6
HBlinky
Re: Fixed width layout ?
  • 2004/4/23 15:19

  • HBlinky

  • Just popping in

  • Posts: 23

  • Since: 2004/2/1 1


Yes, it worked perfectly. Thanks a lot everyone for your help so far.

Login

Who's Online

179 user(s) are online (109 user(s) are browsing Support Forums)


Members: 0


Guests: 179


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits