1
awreneau
One size fits all?
  • 2004/1/23 13:39

  • awreneau

  • Friend of XOOPS

  • Posts: 41

  • Since: 2003/2/4 1


I have a site running XOOPS and currently it's locked into one width, meaning that the site displayed on a 800 x 600 you have to scroll horizontally and a the site displayed on a 1280 x 1024 has wasted space on the right and left margins.

I notice that the xoops.org site is not this way. What file do I need to edit in order to make it "auto wrap".

Thanks

2
Herko
Re: One size fits all?
  • 2004/1/23 14:06

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


Theme.html, make sure that the widths are relative wher you want, and fixed where you don't want them to change (for instance, make the header, footer and center content part relative width, and the left- and right bars fixed.)

Herko

3
wtravel
Re: One size fits all?

Also it is possible that in your theme.css file(s) table width or DIV class widths are present.

Kind regards,

Martijn

4
awreneau
Re: One size fits all?
  • 2004/1/23 14:45

  • awreneau

  • Friend of XOOPS

  • Posts: 41

  • Since: 2003/2/4 1


I'm going to start with the theme.html file first and I'll look into the .css file second. I'm not sure I follow which line to edit, sooooo I'm begging mercy here. I've copied the "start of header" section below and I'm hoping you can tell me which line to change.











HomeForumsJoinDownloadsAbout








<{$block.lang_username}><{$block.lang_password}>
Username /  Password






I've got some idea as what to change but I dont want to risk my website being screwed up so I would really appreciate your help, or should I say literally holding my hand thru this. I want to change the line that reads

table border="0" width="900" cellspacing="0" cellpadding="0">

But I'm not sure this is it.

Thanks again.

5
sunsnapper
Re: One size fits all?

Yeah that's the correct line. You can try changing the width to "100%" instead of "900". "100%" will allow the page to size itself to the browser window and whatever resolution the user is at.


note that you have two lines that currently have a width of 900. You will likely want to correct them both.



6
awreneau
Re: One size fits all?
  • 2004/1/23 15:52

  • awreneau

  • Friend of XOOPS

  • Posts: 41

  • Since: 2003/2/4 1


Well, that took care of some it. I dont see a section that reads something to the affect of "Center Blocks".

What would be the indication.

check out the site now. Located here.

7
sunsnapper
Re: One size fits all?

First, do a search for 340% to find this line:



340% is an error, change to 347 or to 100%, like this:


Next search for center and you will find two types:

You have a bunch of tags that say

remove the align="center" so that you have


You also have tags that just say
...

You can remove the
and
tags completely.

Beautiful.

8
awreneau
Re: One size fits all?
  • 2004/1/26 0:51

  • awreneau

  • Friend of XOOPS

  • Posts: 41

  • Since: 2003/2/4 1


If you havent filed your taxes already put me down as a dependent.

I've done what you suggested and everything is now auto sizing to the outer margins with the ecception of the middle block, recent forum posts as well as news.

Thanks for you help thus far but would you mind helping me a bit more.

Thanks


9
sunsnapper
Re: One size fits all?

I don't know for sure, I haven't tested this, but... in your CSS files for your theme try changing

td#centerCcolumn {padding: 0px 3px 1px 3px;}

to

td#centerCcolumn {width: 98%; padding: 0px 3px 1px 3px;}

That would be the first thing I would try.

I hope that helps.

10
svaha
Re: One size fits all?
  • 2004/1/26 8:39

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


I've read several posts on this issue.
Is it not better to set the width to values lower then 100%, because then some browsers are forced to calculate the actual page, rather then just put it on the page?
So : width ="99%" or even lower?


Login

Who's Online

467 user(s) are online (333 user(s) are browsing Support Forums)


Members: 0


Guests: 467


more...

Donat-O-Meter

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

Latest GitHub Commits