1
Bazus
Can someone help me solve this mistery
  • 2004/3/31 4:10

  • Bazus

  • Not too shy to talk

  • Posts: 144

  • Since: 2002/9/23


I have this site: mrch.org and I have been trying to center it on the screen but I haven't found out why it doesn't center.

I placed in the <body> tag algin=center

and after the body the first tag is <center> and last tag is </center> however still shows left ... any one please give me a clue how to center it.

I would appreciate it.


2
kloy1334
Re: Can someone help me solve this mistery
  • 2004/3/31 4:33

  • kloy1334

  • Just popping in

  • Posts: 27

  • Since: 2004/3/20


Are you talking about:

index.html

or:

/themes/[theme]/theme.php?

I think it is inside theme.php but I remember that for me, centreing it didn't work either.

3
Stewdio
Re: Can someone help me solve this mistery
  • 2004/3/31 4:36

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


You will need to edit a file in your themes/[themeName] directory.

Look for style.css

This is what controls your table.

I should also mention, that although you have styleNN.css, it is producing horrible results under Firefox/Mozilla/Netscape browers. You may want to look into this.

Your style.css (For IE)is working properly it seems, except for the minor adjustment you want to make.

4
HughG
Re: Can someone help me solve this mistery
  • 2004/3/31 5:53

  • HughG

  • Not too shy to talk

  • Posts: 124

  • Since: 2003/2/21


in your theme.html - try putting:

<div align="center">


just above the start of the left column area.

Resized Image

5
Bazus
Re: Can someone help me solve this mistery
  • 2004/4/12 18:13

  • Bazus

  • Not too shy to talk

  • Posts: 144

  • Since: 2002/9/23


None of the advise helped.

remember, I have encapsulated the template inside a profesional template so there's noting to do with the original theme.html code.

http://www.mrch.org

6
JackJ
Re: Can someone help me solve this mistery
  • 2004/4/12 20:08

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


Bazus

You have a missing " in your center code


<DIV ALIGN="CENTER><TABLE WIDTH="85%" ALIGN="CENTER"><TR><TD>

Should be:

<DIV ALIGN="CENTER">

7
Bazus
Re: Can someone help me solve this mistery
  • 2004/4/12 20:20

  • Bazus

  • Not too shy to talk

  • Posts: 144

  • Since: 2002/9/23


that was a minor detail I left out, but after fixing it didn't do much to change the situation.

still don't center

8
JackJ
Re: Can someone help me solve this mistery
  • 2004/4/12 20:25

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


strange, I pasted your code into an HTML editor and it centers on mine after making that "minor" adjustment..

Have you set your general preferences to "update HTML" etc and cleared out your template_c folder?

Perhaps something in your style sheet is overriding things?

9
JackJ
Re: Can someone help me solve this mistery
  • 2004/4/12 20:45

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


Your header is referencing the style.css sheet in your default folder

Try taking out or editing this line in your style sheet on line 3

table {width: 100%; margin: 5; padding: 5; font-size: small;}

you may need to edit your smarty templates for 100% widths etc for some blocks

10
Bazus
Re: Can someone help me solve this mistery
  • 2004/4/12 21:11

  • Bazus

  • Not too shy to talk

  • Posts: 144

  • Since: 2002/9/23


Your suggestions are getting effect.

I did removed entirely the statement from style.css:

table {width: 100%; margin: 5; padding: 5; font-size: small;}

and placed <center> after <body> statement in the theme.html..

it did centered the whole page, just that the block at the top got centered too, if I could make it align left it would be a total fix.

thanks anyways Jackl for the great help

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I just edited the top block with <div align=left> and that did the final fix.

Thanks for helping me solve this problem it took more than 5 months to solve

Login

Who's Online

155 user(s) are online (89 user(s) are browsing Support Forums)


Members: 0


Guests: 155


more...

Donat-O-Meter

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

Latest GitHub Commits