1
jimbofoxman
Problem with Content 0.5

I created a table in Content 0.5 and it's centered in the design view on the page, but when it is published, it is left justified.

Anyone have any idea why this is?

2
jimbofoxman
Re: Problem with Content 0.5

BUMP

It just doesn't seem to be Content. Anytime I try to do it in a module like Content, SmartSection, etc. it does it. In this particular case it is FCKEditor being used.

I would really like a way to center something, so I am not just stuck with left justified.

3
Lance_
Re: Problem with Content 0.5
  • 2006/2/21 2:09

  • Lance_

  • Home away from home

  • Posts: 983

  • Since: 2004/1/12


If you set to HTML mode, can you not put in the center tags manually? Not ideal, just a workaround.
GDL-Web.com :: Website development.
Xoopslance.com::Freelancing and Projects
thelionsden-arena.net:: Clan/League/Ladder Hosting

4
jimbofoxman
Re: Problem with Content 0.5

I'm stumped as to why that won't work, cause that's what I got in the table tag, align="center"

5
domecc
Re: Problem with Content 0.5
  • 2006/2/21 5:02

  • domecc

  • Just popping in

  • Posts: 71

  • Since: 2005/10/30


Maybe this would work:

style="align:center;"
XoopsChina Webmaster

6
khuhner
Re: Problem with Content 0.5
  • 2006/2/21 17:37

  • khuhner

  • Quite a regular

  • Posts: 232

  • Since: 2006/1/6 3


Verify your theme or more explicitly your CSS style settings isnt contributing to the problem.

As mentioned, you can override the setting by editing the HTML code for the desired 'content'.

7
jimbofoxman
Re: Problem with Content 0.5

Here is the source of what I enter into FCKEditor. Obviously this is just a snippet of the code, but it shows my table statement.
<table width="325" cellspacing="0" cellpadding="0" border="0" align="center">
    <
tbody>
        <
tr>
            <
td><span style="font-weight: bold;">Juniors</span><br/>
            
1Aircraft ASAT*<br/>
            
2Military Vehicles ASAT*<br/>
            
3Civilian Vehicles ASAT*<br/>
            
4Miscellaneous<br/>
            <
br/>


Here is what I see if I view the page source
<td id="centercolumn"> <!-- Display center blocks if any --> 
 
                  <!-- 
End display center blocks --> 
                  <
div id="content"> <div class="blockContent">

     <
table width="325" cellspacing="0" cellpadding="0" border="0" align="center">
    <
tbody>
        <
tr>
            <
td><span style="font-weight: bold;">Juniors</span><br/>
            
1Aircraft ASAT*<br/>
            
2Military Vehicles ASAT*<br/>
            
3Civilian Vehicles ASAT*<br/>

            
4Miscellaneous<br/>
            <
br/>


Here is the CSS for the CENTERCOLUMN
td#centercolumn
{
    
font-size12px;
    
color#464646;
    
padding-left2px;
    
width100%;
    
padding-right2px;
    
background-color#E7E9EB;
    
border-right1px solid #ffffff;
    
border-left1px solid #ffffff;
}
td#centercolumn th
{
    
color#42474F;
    
background-color#D8DBDE;
}
td#centerCcolumn div.blockTitle
{
    
padding3px;
    
color#FFFFFF;
    
font-weightbold;
    
margin-top0px;
    
margin-right0px;
    
margin-left0px;
    
font-size11px;
    
background-color#9299A5;
    
margin-bottom5px;
    
padding-left18px;
    
background-imageurl('images/blue_plus.png');
    
background-repeatno-repeat;
    
background-positionleft;
    
border-bottom1px solid #3D5656;
}
td#centerCcolumn div.blockContent
{
    
margin-right0px;
    
margin-left0px;
    
margin-bottom8px;
    
line-height120%;

8
jimbofoxman
Re: Problem with Content 0.5

Bump

9
dizzymarkus
Re: Problem with Content 0.5

I was able to acomplish this by using div tags

IE <div align="center"> body </div>


I did it to the whold body tag and worked beautifully hope this helps some.


Markus

10
jimbofoxman
Re: Problem with Content 0.5

Well no luck still, I even went to a simple 1 row, 1 column setup and it still places it on the left no matter what I do.

Here's the code now. Produces fine in Dreamweaver and in the FCKEditor Preview, but not when it's actually produced on the site.

<div align="center">
<
table width="325" cellspacing="0" cellpadding="0" border="0" align="center">
    <
tbody>
        <
tr>
            <
td>             <strong>JUNIORS</strong><br/>
            <
p>             1Aircraft All ScalesAll Types <br/>
            
2Military Vehicles ASAT* <br/>
            
3Civilian Vehicles ASAT* <br/>
            
4Miscellaneous </p>
            <
p><strong>AIRCRAFT<br/>
            </
strong>51/144 &ampSmaller All Types <br/>
            
61/72 Single Engine Prop (1/143 to 1/72)<br/>
            
71/72 Multi Engine Prop (1/143 to 1/72)<br/>
            
81/72 Single Engine Jet (1/143 to 1/72)<br/>
            
91/72 Multi Engine Jet (1/143 to 1/72)<br/>
            
101/48 Single Engine Prop Allied (1/71 to 1/48)<br/>
            
111/48 Single Engine Prop Axis (1/71 to 1/48)<br/>
            
121/48 Multi Engine Prop (1/71 to 1/48)<br/>
            
131/48 Jet (1/71 to 1/48)<br/>
            
141/32 &ampLarger Prop (1/47 &ampLarger)<br/>
            
151/32 &ampLarger Jet (1/47 &ampLarger)<br/>
            
16Helicopter ASAT* <br/>
            
17Pre 1930 ASAT* <br/>
            
18ConversionsVacuform and Scratch</p>
            <
p><strong>MILITARY VEHICLES </strong><br/>
            
191/72 &ampSmaller All Types <br/>
            
20Wheeled <br/>
            
21Fully Tracked Pre 1946 Allied<br/>
            
22Fully Tracked Pre 1946 Axis<br/>
            
23Fully Tracked 1946 Modern<br/>
            
24Artillery Towed &ampSelf-propelled Guns ASAT *</p>
            <
p><strong>CIVILIAN VEHICLES </strong><br/>
            
251/32 &ampSmaller All Types<br/>
            
26Factory Stock <br/>
            
27Custom &ampRods <br/>
            
28Competition <br/>
            
29Commercial ASAT* <br/>
            
30Motorcycles ASAT*</p>
            <
p><strong>SHIPS</strong><br/>
            
31Sails and/or Oars ASAT* <br/>
            
32Powered Surface ASAT* <br/>
            
33Submarines ASAT*</p>
            <
p><strong>FIGURES</strong><br/>
            
3454 MM &ampSmaller All Types<br/>
            
3555 MM &ampLarger All TypesIncluding Busts</p>
            <
p><strong>SPACE &ampFICTION </strong><br/>
            
36Science FictionFantasy ASAT<br/>
            
37Real Space ASAT</p>
            <
p><strong>DIORAMAS</strong><br/>
            
38Small Composition All ScalesAll Types<br/>
            
39Large Composition All ScalesAll Types</p>
            <
p><strong>MISCELLANEOUS<br/>
            </
strong>40All Others</p>
            <
p><strong>* ASAT All ScalesAll Types </strong></p>
            </
td>
        </
tr>
    </
tbody>
</
table>
</
div>

Login

Who's Online

186 user(s) are online (131 user(s) are browsing Support Forums)


Members: 0


Guests: 186


more...

Donat-O-Meter

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

Latest GitHub Commits