General Community > Scripting Help

SSI - Alignment ?

<< < (2/4) > >>

System32Cro:
hm... try add style="text-align: left;"

KrisiS:

--- Code: ---<div id="forum" style="text-align: left;">
<h4>Latest forum posts</h4>
<?php ssi_recentPosts(4, array(9,12,26,27,46,36,39,38,55,10,3,24)); ?>
<a href="http://ugn-gaming.com/forum/index.php?action=recent"><font color="red">View Most recent forum posts</font></a>
</div>
--- End code ---

This does not work, are you sure it is not something that needs to be edited within the SSI?

floridaflatlander:

--- Quote from: KrisiS on June 09, 2012, 10:52:00 AM ---
--- Code: ---<div id="forum" style="text-align: left;">
<h4>Latest forum posts</h4>
<?php ssi_recentPosts(4, array(9,12,26,27,46,36,39,38,55,10,3,24)); ?>
<a href="http://ugn-gaming.com/forum/index.php?action=recent"><font color="red">View Most recent forum posts</font></a>
</div>
--- End code ---

This does not work, are you sure it is not something that needs to be edited within the SSI?

--- End quote ---

Look at your source and see if there is any other thing that may be in the div that will effect the output. Firefox's firebug can help.

You may have an inheritance problem(if you do firefug will tell you) so try


--- Code: ---<div id="forum-ssi" >
<h4 style="text-align: left;">Latest forum posts</h4>
<?php ssi_recentPosts(4, array(9,12,26,27,46,36,39,38,55,10,3,24)); ?>
<a href="http://ugn-gaming.com/forum/index.php?action=recent"><font color="red">View Most recent forum posts</font></a>
</div>
--- End code ---

and/or try on your css page,

--- Code: ---<div id="forum-ssi" >
<h4 >Latest forum posts</h4>
<?php ssi_recentPosts(4, array(9,12,26,27,46,36,39,38,55,10,3,24)); ?>
<a href="http://ugn-gaming.com/forum/index.php?action=recent"><font color="red">View Most recent forum posts</font></a>
</div>

#forum-ssi h4 {
text-align: left;"
 }

--- End code ---

KrisiS:
It doesnt seem to work.

On a fresh page I have done the following and it still returns the same alignment (where it leaves gaps depending on the size of a post)
I know it is overkill with the align="left" but I've just entered it like that to cover more ground at once.


--- Code: ---<tr height="350"bgcolor="#ffffff" align="left">
<td align="left">
<div align="left">
<?php ssi_recentPosts(4, array(9,12,26,27,46,36,39,38,55,10,3,24)); ?>
</td>
</tr>

--- End code ---

floridaflatlander:

--- Quote from: KrisiS on June 09, 2012, 11:24:21 AM ---It doesnt seem to work.


--- Code: ---<div align="left">

--- End code ---

--- End quote ---

What doesn't seem to work?
Where is the closing div for the above code, where the is h4 you had, did you try firefox's firebug or chromes developers tools to see any inheritance?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version