Results 1 to 10 of 16
-
15th Apr 2010, 12:26 PM #1OPMemberWebsite's:
StoneArcade.comalignment help needed
Hi guys,a couple people tried to help me in the shoutbox yesterday with this problem,but im a total noob coder lol.. maybe someone can help me align the cat headers for me (see screenshot,or site for wht i mean)
PHP Code:<table cellspacing="2" cellpadding="2">
{php} global $SEOFriendlyURLs,$themepath;
$catarray = am_listgamecats($db, 'none', 'flat'); // Get the array of category names
$c=1;
$m=4;
foreach ($catarray as $a) {
if($c == 1) { echo '<tr>';}
echo '<td valign="top" width="25%">';
echo '<div class="topcategory">';
if($SEOFriendlyURLs == 0)
{
$url = './index.php?cat='.urlencode($a);
} else {
$url = './index.php?cat='.urlencode($a);
}
echo '<table width="100%" cellspacing="2" cellpadding="2">
<tr>
<td valign="top" align="center"><a href="'.$url.'"><h2><b>'.$a.'</h2></b></a>
</td></tr>
<tr>
<td valign="top">';
echo '<center>';
am_listnewgames('table', 5, $a,true,60,60);
echo '</center></td></tr>';
echo '<tr>
<td valign="top"><a href="'.$url.'">More '.$a.' Games</a>
</td>
</tr>';
echo '</table>';
echo '</td>';
if($c == $m) { echo '</tr>'; $c=0;} $c++;
}
{/php}
</table>
screenshot of wht needs to be aligned,notice the cat headers are riding the top
iMage Reviewed by iMage on . alignment help needed Hi guys,a couple people tried to help me in the shoutbox yesterday with this problem,but im a total noob coder lol.. maybe someone can help me align the cat headers for me (see screenshot,or site for wht i mean) <table cellspacing="2" cellpadding="2"> {php} global $SEOFriendlyURLs,$themepath; $catarray = am_listgamecats($db, 'none', 'flat'); // Get the array of category names $c=1; $m=4; foreach ($catarray as $a) { Rating: 5
-
15th Apr 2010, 12:33 PM #2Respected DeveloperWebsite's:
wrzc.orgCan you say what it is you want to align. I've no idea what the problem is.
EDIT: ok is it the headings with the blue background. They don't look right vertically?Tutorial How to SEO your Warez Site a guide to help you increase your organic traffic
Huge list of Warez Sites and free Multiposter Templates
-
15th Apr 2010, 12:34 PM #3Respected MemberWebsite's:
GraffThe.Net MCSkatty.com MCSkatty.co.uk MCSkatty.net MCSkatty.org MCSkatty.infoMaybe try changing teh ...
Code:<td valign="top" align="center"><a href="'.$url.'"><h2><b>'.$a.'</h2></b></a></td>
Code:<td valign="middle" align="center"><a href="'.$url.'"><h2><b>'.$a.'</h2></b></a></td>
Code:<table cellspacing="2" cellpadding="2"> {php} global $SEOFriendlyURLs,$themepath; $catarray = am_listgamecats($db, 'none', 'flat'); // Get the array of category names $c=1; $m=4; foreach ($catarray as $a) { if($c == 1) { echo '<tr>';} echo '<td valign="top" width="25%">'; echo '<div class="topcategory">'; if($SEOFriendlyURLs == 0) { $url = './index.php?cat='.urlencode($a); } else { $url = './index.php?cat='.urlencode($a); } echo '<table width="100%" cellspacing="2" cellpadding="2"> <tr> <td valign="middle" align="center"><a href="'.$url.'"><h2><b>'.$a.'</h2></b></a> </td></tr> <tr> <td valign="top">'; echo '<center>'; am_listnewgames('table', 5, $a,true,60,60); echo '</center></td></tr>'; echo '<tr> <td valign="top"><a href="'.$url.'">More '.$a.' Games</a> </td> </tr>'; echo '</table>'; echo '</td>'; if($c == $m) { echo '</tr>'; $c=0;} $c++; } {/php} </table>
atm teh title is vertically aligned to teh top of teh table when you want it aligned in teh middle.
-
15th Apr 2010, 12:35 PM #4OPMemberWebsite's:
StoneArcade.comsee in the screenshot (or on the site) how the category headers ( arcade,adventure etc) all seem to be at the very top of the box? i want them to align to the middle
thanks for reply K3V i will give it a go,i think i tried tht last night tho and it didnt work
-
15th Apr 2010, 12:38 PM #5Respected DeveloperWebsite's:
wrzc.orgYa now I see the problem and what you want fixed. Personally I think it's this line that need's to be changed
Code:echo '<td valign="top" width="25%">';
Code:echo '<td valign="middle" width="25%">';
Tutorial How to SEO your Warez Site a guide to help you increase your organic traffic
Huge list of Warez Sites and free Multiposter Templates
-
15th Apr 2010, 12:40 PM #6OPMemberWebsite's:
StoneArcade.comok i will try that Happy.. thanks for helping Happy and K3V ( i tried ur solution K3V and didnt work sorry)
Edit: nope tht didnt work either Happy
-
15th Apr 2010, 01:01 PM #7OPMemberWebsite's:
StoneArcade.comim wondering with those solutions not working if its in the main css instead?..
im thinking its something maybe in this bit of the css,the tableback1 is teh bg bit there
PHP Code:background:url('images/tableback1.gif') top center;
float:left;
display:block;
margin:0 0 0 0}
.blockdiv h4{
text-align:center;
font-size:95%;
position:relative;
-
15th Apr 2010, 02:16 PM #8Member
whats the css for div class="topcategory"
-
15th Apr 2010, 02:21 PM #9MemberWebsite's:
FlowForums.com
-
15th Apr 2010, 02:39 PM #10Respected Developer
in your main.css file find these lines
.topcategory h2 a, .topcategory h2{
font-size:18px;
text-align:center;
color:#ececec;
text-decoration:none;
margin:-7px 14px 5px auto}
margin:0px 14px 5px autoBots Development | Web Development | Wordpress Customization | PSD Conversion
Life has many twists and turns in it, you have to take what you are given and use it for the best.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
vBulletin Category Alignment - Need help
By nk2join in forum vBulletinReplies: 5Last Post: 23rd Mar 2012, 04:17 PM -
help with Html image alignment
By cgworld in forum Web Development AreaReplies: 6Last Post: 27th Sep 2011, 09:22 PM -
Alignment problem help me
By dheeraj4uuuu in forum Web Development AreaReplies: 3Last Post: 19th Jul 2011, 02:14 PM -
Wordpress Categories Alignment
By Brenton in forum WordpressReplies: 4Last Post: 25th Aug 2010, 01:37 PM -
DEDICATED,ACTIVE NEEDED - Moderators/GM's Needed with BENEFITS
By robert in forum Community CooperativeReplies: 0Last Post: 18th Jul 2010, 03:36 PM
themaCreator - create posts from...
Version 3.47 released. Open older version (or...