Author |
Message |
Doulos
Life Cycles Becoming CPU Cycles

Joined: Jun 06, 2005
Posts: 732
|
Posted:
Mon Aug 11, 2008 1:12 am |
|
I have modified fisubice to a fixed. I also have disabled the left and right blocks on forums. There is a problem when I try to center the forums to line it up with my header (which is centered), I modified left-center.txt like such Code:</td><td valign="top" align="center" width="100%">
|
Not only does are the forums centered, but everything within the forums is centered also - all titles, posts, everything.
Is there a way to center the forums without causing everything within them to be centered also? |
|
|
|
 |
wHiTeHaT
Life Cycles Becoming CPU Cycles

Joined: Jul 18, 2004
Posts: 579
|
Posted:
Mon Aug 11, 2008 3:01 pm |
|
if i'm correct it isnt needed at all?
Did you totaly took out left/right blocks..or did you told the theme to just not show blocks?
If step 1 you might get problems to have it centered.
If step 2....original theme already is centered, and it isnt needed. |
Last edited by wHiTeHaT on Tue Aug 12, 2008 12:30 pm; edited 2 times in total |
|
|
 |
wHiTeHaT

|
Posted:
Mon Aug 11, 2008 3:06 pm |
|
Doulos wrote: | I have modified fisubice to a fixed |
Sorry,i missed that 1.
But even then , you forum basicly should show in the content area and left and right column still should load columns area.
What might also could bug you is that the forum itself alreadyhas blocks right disabled....if i'm correct.
So if i'm right and you keep your basic theme ( your fixed one for all the restof the site and let the forums also usethe same theme setting) then you only need to activate your right blocks for the forum. |
|
|
|
 |
warren-the-ape
Worker


Joined: Nov 19, 2007
Posts: 196
Location: Netherlands
|
Posted:
Tue Aug 12, 2008 1:43 am |
|
Isn't that just normal behaviour?
Children inheret the properties of the parent, in this case the center alignment unless overruled.
Code:</td><td valign="top" align="center" width="100%">
|
Is this the complete code btw? |
|
|
|
 |
Doulos

|
Posted:
Tue Aug 12, 2008 11:09 am |
|
Actually, as I said, I added the align="center" to see if it would cause the theme to center instead of being fixed left. It did center all pages of the theme, but it also centered all the content of each part of every page. |
|
|
|
 |
jestrella
Moderator

Joined: Dec 01, 2005
Posts: 593
Location: Santiago, Dominican Republic
|
Posted:
Tue Aug 12, 2008 2:23 pm |
|
post here the content of your theme's header file |
_________________ "For those whom have not reach the sky... Every mountain seems high"
Best Regards
Jonathan Estrella
http://about.me/jestrella04 |
|
|
 |
Gremmie
Former Moderator in Good Standing

Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA
|
Posted:
Tue Aug 12, 2008 3:17 pm |
|
That behaviour you are noticing is one of the subtle things that changed from HTML to XHTML. RavenNuke is using XHTML. |
_________________ Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module |
|
|
 |
jestrella

|
Posted:
Wed Aug 13, 2008 7:49 am |
|
there must be an unclosed td, center or div tag
try validating your site to see what's wrong |
|
|
|
 |
Doulos

|
Posted:
Wed Aug 13, 2008 6:21 pm |
|
slaytanic_wehrmacht wrote: | there must be an unclosed td, center or div tag
try validating your site to see what's wrong |
I installed a fresh copy of RN22001. I did not make it a fixed width, but only changed html/themes/fisubice/left_center.html from:Code:</td><td valign="top" width="100%">
| to:Code:</td><td align="center" valign="top" width="100%">
|
This causes everything, everywhere to be centered - not just the site itself.
Only registered users can see links on this board! Get registered or login!
I just found out that this does NOT occur with Firefox, only with IE and Opera.
Any suggestions? |
|
|
|
 |
Gremmie

|
Posted:
Wed Aug 13, 2008 8:05 pm |
|
Like I said, this is because RavenNuke is using XHTML, and XHTML now propagates centering down to children (except on Firefox, which is broken right now). You need to use CSS or center a different way. |
|
|
|
 |
Doulos

|
Posted:
Thu Aug 14, 2008 11:30 am |
|
|
|
 |
Doulos

|
Posted:
Thu Aug 14, 2008 12:36 pm |
|
I found a solution. I don't understand specifically why this worked, but....
It might not be xhtml compliant, but it works so I will go with it unless/until a css solution is presented.
1. I set my fixed width.
2. Edited left_center.html to include < center >
Code:</td><td valign="top" align="center" width="100%">
|
3. Edited tables.php by 'wrapping' the entire code with these to lines...
Code:echo '<center>';
echo '</center>';
|
I have not experienced any problems with this so far, and it works with IE, Opera, and Firefox.
If anyone has some specific suggestions as to how to accomplish my goal without using these methods so as to keep the site xhtml compliant I would really appreciate it.
Thanks,
Doulos |
|
|
|
 |
Gremmie

|
Posted:
Thu Aug 14, 2008 1:25 pm |
|
I suggested using CSS or doing your centering "a different way". It sounds like you found that different way. From what you described, it doesn't sound like you have broken XHMTL compatibility. You may want to check your theme with the online W3C validator (or not - it is scary how many themes out there were coded without compliance in mind). |
|
|
|
 |
Doulos

|
Posted:
Fri Aug 15, 2008 11:51 am |
|
floppy from clan-themes suggested I modify style.css as such:Code:body {font-family: Verdana,Helvetica,sans-serif; font-size: 10px;margin:0 auto;}
|
That did not work. I guess I'll have to stick to my solution. Thansk everyone for you help. |
|
|
|
 |
|