xoops forums

mjz55

Quite a regular
Posted on: 2009/11/25 8:46
mjz55
mjz55 (Show more)
Quite a regular
Posts: 298
Since: 2007/1/18
#1

Cannot center graphic on main page using block

Using XOOPS 2016, at djmikez.com. I cannot get the graphic to be centered in either IE or Firefox. I must be missing something with html. Any help would and is appreciated.

Runeher

Module Developer
Posted on: 2009/11/25 9:39
Runeher
Runeher (Show more)
Module Developer
Posts: 825
Since: 2008/1/24
#2

Re: Cannot center graphic on main page using block

Xoops 2016 ? Maybe time for an upgrade?

Can you not put your graphics in a centered div?

ghia

Community Support Member
Posted on: 2009/11/25 10:51
ghia
ghia (Show more)
Community Support Member
Posts: 4954
Since: 2008/7/3 1
#3

Re: Cannot center graphic on main page using block

Add a
width:100%;
to your table selector in /themes/4metal/style.css

mjz55

Quite a regular
Posted on: 2009/11/27 14:03
mjz55
mjz55 (Show more)
Quite a regular
Posts: 298
Since: 2007/1/18
#4

Re: Cannot center graphic on main page using block

ghia, do you know what line I should add that to? I'm not 100% good with html.

Yes, I know I should upgrade. Everytime I do that I crash my site and have to have the webhost re-install.

ghia

Community Support Member
Posted on: 2009/11/27 14:28
ghia
ghia (Show more)
Community Support Member
Posts: 4954
Since: 2008/7/3 1
#5

Re: Cannot center graphic on main page using block

line 3
table {margin5font-sizesmall}

=>
table {width100%; font-sizesmall;}
margin is not working. Correct would be margin: 5px; , but that would ruin the layout.

hackbrill

Friend of XOOPS
Posted on: 2009/11/28 5:50
hackbrill
hackbrill (Show more)
Friend of XOOPS
Posts: 283
Since: 2005/7/14
#6

Re: Cannot center graphic on main page using block

If you get rid of the table format, you could center the graphic using align="absmiddle" in the center block.