1
Oesie
How do I center a Xoops site?
  • 2005/2/2 18:14

  • Oesie

  • Just popping in

  • Posts: 41

  • Since: 2004/6/1 1


Guys I'm strugling with my own theme. I want to center it, and I still haven't found a way to fix it. Looking to other themes won't help me so far so I wanted to ask this in the newbie section.

What am I doing wrong on this site.

2
rcjohnson
Re: How do I center a Xoops site?
  • 2005/2/2 18:27

  • rcjohnson

  • Not too shy to talk

  • Posts: 187

  • Since: 2004/7/23


Your syle sheet may be overriding your html tag in your top table.

If you add this to your "middle" table, it should center itself.



  <
table cellspacing="0" [b]align="center">[/b]
    <
tr>
      <
td id="leftcolumn">

        


Hope that helps...

3
Oesie
Re: How do I center a Xoops site?
  • 2005/2/2 18:57

  • Oesie

  • Just popping in

  • Posts: 41

  • Since: 2004/6/1 1


Already tried it, but my text goes centered on that.

4
rcjohnson
Re: How do I center a Xoops site?
  • 2005/2/2 19:33

  • rcjohnson

  • Not too shy to talk

  • Posts: 187

  • Since: 2004/7/23


have you tried setting the alignment values for the blocks in the style sheet?

5
tjnemez
Re: How do I center a Xoops site?
  • 2005/2/2 19:52

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21




your html


6
Oesie
Re: How do I center a Xoops site?
  • 2005/2/15 11:45

  • Oesie

  • Just popping in

  • Posts: 41

  • Since: 2004/6/1 1


Well, firefox is showing the website like I wanted correctly. I'm still not sure what is going on.

But then I've another question. In my css I can't find a clue where to remove the lines that are around my boxes on the 'startpage'.

Anybody?

7
batdevis
Re: How do I center a Xoops site?
  • 2005/2/15 12:26

  • batdevis

  • Just popping in

  • Posts: 41

  • Since: 2002/8/16


Quote:

Oesie wrote:
In my css I can't find a clue where to remove the lines that are around my boxes on the 'startpage'.

Anybody?


have a look at the blocks templates

8
ackbarr
Re: How do I center a Xoops site?

Technical reason: IE incorrectly cascades the text-align property to block level child elements.

Workaround: Take a look at CSS Centering 101 which will explain the technique.

Per your second question, in Firefox you can get information about how a page is rendered (what css rules are being applied) by using the DOM Inspector (Tools->DOM Inspector)

More Info:
Guide to the DOM Inspector

9
Oesie
Re: How do I center a Xoops site?
  • 2005/2/16 8:30

  • Oesie

  • Just popping in

  • Posts: 41

  • Since: 2004/6/1 1


Some interesting options you said there.

The fastest solution for me was to take an excisting theme that was already centered. I applied my theme on it an it seems to work perfectly now.

Login

Who's Online

266 user(s) are online (199 user(s) are browsing Support Forums)


Members: 0


Guests: 266


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