1
m0nty
A Question About Theme.html
  • 2004/2/10 3:58

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


my site is optimized for 1024x768

what I am wanting to do is set it so that the whole page is inside 1 fixed width table so that if anyone views it at a resolution greater than 1024 they'll just see the full site in the centre of their browser.. the main reason for this is because i use a fixed width header and banner image, and when viewed at a greater res, they stay the same but the rest will expand 100% to the full width of the browser..

i'm sure it's somethin simple but my minds a blank..

2
kahumbu
Re: A Question About Theme.html
  • 2004/2/10 4:14

  • kahumbu

  • Documentation Writer

  • Posts: 277

  • Since: 2003/8/23


Depending on how you made your theme.html, you can just specify the width of the table in pixels and place it at the center.

Something like:



Place all content here


If you are using different tables for header, content and footer, I would think about converting these separate tables into 1 big table with 3 cells.

Hope this helps. Good luck!

3
chapi
Re: A Question About Theme.html
  • 2004/2/10 8:18

  • chapi

  • Theme Designer

  • Posts: 611

  • Since: 2002/1/22


Also have a look in the styles.css of your theme. There is normally a definition for .table with width set to 100%. You have to remove this setting in order to use pixel width for tables.

4
m0nty
Re: A Question About Theme.html
  • 2004/2/10 8:32

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


thanks both :)

altho i ended up using .js script which sets the max width to whatever u define..

minmax.js which is pretty good actually. it basically adds the max-width and max-height commands to IE 5 or higher.. a feature which is so missing from IE but fully supported in other browsers such as mozilla and opera..

then just add max-width:1000px; or whatever size into the body section in the stylesheet.css in ur themes folder..

and this to your theme.html head section >

IE so lacks behind on the new css2 functions it's unbelievable.. but then again it's microsoft so that's to be expected..

Login

Who's Online

162 user(s) are online (82 user(s) are browsing Support Forums)


Members: 0


Guests: 162


more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Jul 31
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Latest GitHub Commits