Avatar billede metal_hansen Nybegynder
26. december 2003 - 23:13 Der er 4 kommentarer og
1 løsning

Hjælp til tables!! nemt for tabel-kyndig!

Jeg har en side, som er opdelt i tables, men jeg vil gerne ha den lavet lidt om - det er sikkert ret simpelt, men jeg er en nar til tables, så det vil ta mig flere dage at få det her til at se korrekt ud!

Du kan se siden her: http://trommeslager.dk/cms_view_article.php?aid=13

Det jeg vil ændre, er såmænd kun den 'bar' hvor der står forfatter, er rangbillede etc (altså den 'midterste' del) - og så delen ude til højre, hvor artiklen står.
Jeg vil gerne ha at den del hvor der er forfatter etc kommener OVENPÅ den del hvor ARTIKLEN står.
Det er bla. for at udnytte pladsen på siden bedre. Der er for meget spild, som det ser ud nu.

Kan du hjælpe?!

På forhånd tak!

PS: hvis ikke jeg har forklaret det godt nok, så sig til!

Koden er her (husk bare at ignorer php-koderne! det er jo kun tabellerne der skal ændres..)


<a name="top"></a>

<table width="100%" cellspacing="0" cellpadding="0" border="0">
    <tr>
        <td><a href="{U_VIEW_ARTICLE}" class="maintitle">{ARTICLE_TITLE}</a></td>
    </tr>
</table>

<br />

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
    <tr>
        <td align="left" class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a href="{U_ARTICLES}" class="nav">{L_ARTICLES}</a>
            <!-- BEGIN switch_chapter -->
            -> <a href="{switch_chapter.U_VIEW_CHAPTER}" class="nav">{switch_chapter.CHAPTER_NAME}</a>
            <!-- END switch_chapter -->
            <!-- BEGIN switch_subchapter -->
            -> <a href="{switch_subchapter.U_VIEW_CHAPTER}" class="nav">{switch_subchapter.CHAPTER_NAME}</a>
            <!-- END switch_subchapter -->
        </td>
    </tr>
</table>

<table width="100%" cellspacing="0" cellpadding="0" border="0">
    <tr>
        <td valign="top">{ARTICLES_NAV}</td>
        <td width="10">&nbsp;</td>
        <td valign="top" width="100%"><table width="100%" cellspacing="1" cellpadding="3" border="0" class="forumline">
            <tr>
                <th class="thTop">{L_AUTHOR}</th>
                <th class="thTop">{L_ARTICLE}</th>
            </tr>
            <tr>
                <td width="145" align="left" valign="top" class="row1" nowrap="nowrap"><span class="name"><b>{AUTHOR}</b></span><br /><span class="postdetails">{POSTER_RANK}<br />{RANK_IMAGE}{POSTER_AVATAR}<br /><br />{POSTER_JOINED}<br />{POSTER_ARTICLES}<br />{POSTER_COMMENTS}<br />{POSTER_FROM}</span></td>
                <td width="100%" height="28" valign="top" class="row2"><table width="100%" cellspacing="0" cellpadding="0" border="0">
                    <tr>
                        <td width="100%"><span class="postdetails">{ARTICLE_ICON}&nbsp;{L_POSTED}: {POST_TIME}</span></td>
                        <td valign="top" nowrap="nowrap">{APPROVE_IMG} {EDIT_IMG} {DELETE_IMG}</td>
                    </tr>
                    <tr>
                        <td colspan="2"><hr /></td>
                    </tr>
                    <tr>
                        <td colspan="2"><span class="postbody">{ARTICLE_TEXT}</span></td>
                    </tr>
                </table></td>
            </tr>
            <tr>
                <td colspan="2" class="catBottom"><table width="100%" cellspacing="0" cellpadding="0" border="0">
                    <tr>
                        <td align="left" nowrap="nowrap">
                            <!-- BEGIN enable_rating -->
                            <form action="{enable_rating.S_RATE_ACTION}" method="post">
                            <span class="gensmall">{L_RATE_ARTICLE}:&nbsp;{enable_rating.S_RATING}&nbsp;{enable_rating.S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_RATE}" /></span>
                            </form>
                        </td>
                        <!-- END enable_rating -->
                        <td align="right" nowrap="nowrap">
                            <span class="gensmall">{L_RATING}: {S_RATING_STATS}</span>
                        </td>
                    </tr>
                </table></td>
            </tr>
        </table>

        {RATINGBOX}

        {COMMENTSBOX}

        <table width="100%" cellspacing="0" cellpadding="0" border="0">
            <tr>
                <td valign="top" nowrap="nowrap"><span class="nav">{S_POST_COMMENT}</span><br />
                    <span class="nav">{PAGE_NUMBER}</span></td>
                <td align="right" valign="top" nowrap="nowrap">
                    <span class="gensmall">{S_TIMEZONE}</span><br />
                    <span class="nav">{PAGINATION}</span><br />
                    {CHAPTERBOX}
                    <span class="gensmall">{S_AUTH_CAN}</span>
                </td>
            </tr>
        </table></td>
    </tr>
</table>
Avatar billede metal_hansen Nybegynder
27. december 2003 - 00:45 #1
<a name="top"></a>

<table width="100%" cellspacing="0" cellpadding="0" border="0">
    <tr>
        <td><a href="{U_VIEW_ARTICLE}" class="maintitle">{ARTICLE_TITLE}</a></td>
    </tr>
</table>

<br />

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
    <tr>
        <td align="left" class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a href="{U_ARTICLES}" class="nav">{L_ARTICLES}</a>
            <!-- BEGIN switch_chapter -->
            -> <a href="{switch_chapter.U_VIEW_CHAPTER}" class="nav">{switch_chapter.CHAPTER_NAME}</a>
            <!-- END switch_chapter -->
            <!-- BEGIN switch_subchapter -->
            -> <a href="{switch_subchapter.U_VIEW_CHAPTER}" class="nav">{switch_subchapter.CHAPTER_NAME}</a>
            <!-- END switch_subchapter -->
        </td>
    </tr>
</table>


<table width="100%" cellspacing="0" cellpadding="0" border="0">
    <tr>
        <td valign="top">{ARTICLES_NAV}</td>
        <td width="10">&nbsp;</td>
        <td valign="top" width="100%">
       
        <table width="100%" cellspacing="1" cellpadding="3" border="0" class="forumline">
            <tr>
                <th class="thTop">{L_AUTHOR}</th>
            </tr>
            <tr>
                <td width="100%" align="left" valign="top" class="row1" nowrap="nowrap"><span class="name"><b>{AUTHOR}</b></span><br /><span class="postdetails">{POSTER_RANK}<br />{RANK_IMAGE}{POSTER_AVATAR}<br /><br />{POSTER_JOINED}<br />{POSTER_ARTICLES}<br />{POSTER_COMMENTS}<br />{POSTER_FROM}</span></td>
            </tr>
            <tr>
                <td width="100%" height="28" valign="top" class="row2">
               
                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                    <tr>
                    <th class="thTop">{L_ARTICLE}</th>
                    </tr>
                    <tr>
                        <td width="100%"><span class="postdetails">{ARTICLE_ICON}&nbsp;{L_POSTED}: {POST_TIME}</span></td>
                        <td valign="top" nowrap="nowrap">{APPROVE_IMG} {EDIT_IMG} {DELETE_IMG}</td>
                    </tr>
                    <tr>
                        <td><hr /></td>
                    </tr>
                    <tr>
                        <td><span class="postbody">{ARTICLE_TEXT}</span></td>
                    </tr>
                </table>

                </td>
            </tr>
            <tr>
                <td colspan="2" class="catBottom">
               
               
                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                    <tr>
                        <td align="left" nowrap="nowrap">
                            <!-- BEGIN enable_rating -->
                            <form action="{enable_rating.S_RATE_ACTION}" method="post">
                            <span class="gensmall">{L_RATE_ARTICLE}:&nbsp;{enable_rating.S_RATING}&nbsp;{enable_rating.S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_RATE}" /></span>
                            </form>
                        </td>
                        <!-- END enable_rating -->
                        <td align="right" nowrap="nowrap">
                            <span class="gensmall">{L_RATING}: {S_RATING_STATS}</span>
                        </td>
                    </tr>
                </table>
               
                </td>
            </tr>
        </table>
       
       
        {RATINGBOX}

        {COMMENTSBOX}

        <table width="100%" cellspacing="0" cellpadding="0" border="0">
            <tr>
                <td valign="top" nowrap="nowrap"><span class="nav">{S_POST_COMMENT}</span><br />
                    <span class="nav">{PAGE_NUMBER}</span></td>
                <td align="right" valign="top" nowrap="nowrap">
                    <span class="gensmall">{S_TIMEZONE}</span><br />
                    <span class="nav">{PAGINATION}</span><br />
                    {CHAPTERBOX}
                    <span class="gensmall">{S_AUTH_CAN}</span>
                </td>
            </tr>
        </table>
       
        </td>
    </tr>
</table>
Avatar billede athlon-pascal Juniormester
27. december 2003 - 01:12 #2
Prøv det her:

<a name="top"></a>

<table width="100%" cellspacing="0" cellpadding="0" border="0">
    <tr>
        <td><a href="{U_VIEW_ARTICLE}" class="maintitle">{ARTICLE_TITLE}</a></td>
    </tr>
</table>

<br />

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
    <tr>
        <td align="left" class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a href="{U_ARTICLES}" class="nav">{L_ARTICLES}</a>
            <!-- BEGIN switch_chapter -->
            -> <a href="{switch_chapter.U_VIEW_CHAPTER}" class="nav">{switch_chapter.CHAPTER_NAME}</a>
            <!-- END switch_chapter -->
            <!-- BEGIN switch_subchapter -->
            -> <a href="{switch_subchapter.U_VIEW_CHAPTER}" class="nav">{switch_subchapter.CHAPTER_NAME}</a>
            <!-- END switch_subchapter -->
        </td>
    </tr>
</table>


<table width="100%" cellspacing="0" cellpadding="0" border="0">
    <tr>
        <td valign="top">{ARTICLES_NAV}</td>
        <td width="10">&nbsp;</td>
        <td valign="top" width="100%">
     
        <table width="100%" cellspacing="1" cellpadding="3" border="0" class="forumline">
            <tr>
                <th class="thTop">{L_AUTHOR}</th>
            </tr>
            <tr>
                <td width="100%" align="left" valign="top" class="row1" nowrap="nowrap"><span class="name"><b>{AUTHOR}</b></span><br /><span class="postdetails">{POSTER_RANK}<br />{RANK_IMAGE}{POSTER_AVATAR}<br /><br />{POSTER_JOINED}<br />{POSTER_ARTICLES}<br />{POSTER_COMMENTS}<br />{POSTER_FROM}</span></td>
            </tr>
            <tr>
                <td width="100%" height="28" valign="top" class="row2">
             
                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                    <tr>
                    <th class="thTop">{L_ARTICLE}</th>
                    </tr>
                    <tr>
                        <td width=100%>
                            <table border="0" cellpadding="0" cellspacing="0">
                                <td width="100%"><span class="postdetails">{ARTICLE_ICON}&nbsp;{L_POSTED}: {POST_TIME}</span></td>
                                <td valign="top" nowrap="nowrap">{APPROVE_IMG} {EDIT_IMG} {DELETE_IMG}</td>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td><hr /></td>
                    </tr>
                    <tr>
                        <td><span class="postbody">{ARTICLE_TEXT}</span></td>
                    </tr>
                </table>

                </td>
            </tr>
            <tr>
                <td colspan="2" class="catBottom">
             
             
                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                    <tr>
                        <td align="left" nowrap="nowrap">
                            <!-- BEGIN enable_rating -->
                            <form action="{enable_rating.S_RATE_ACTION}" method="post">
                            <span class="gensmall">{L_RATE_ARTICLE}:&nbsp;{enable_rating.S_RATING}&nbsp;{enable_rating.S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_RATE}" /></span>
                            </form>
                        </td>
                        <!-- END enable_rating -->
                        <td align="right" nowrap="nowrap">
                            <span class="gensmall">{L_RATING}: {S_RATING_STATS}</span>
                        </td>
                    </tr>
                </table>
             
                </td>
            </tr>
        </table>
     
     
        {RATINGBOX}

        {COMMENTSBOX}

        <table width="100%" cellspacing="0" cellpadding="0" border="0">
            <tr>
                <td valign="top" nowrap="nowrap"><span class="nav">{S_POST_COMMENT}</span><br />
                    <span class="nav">{PAGE_NUMBER}</span></td>
                <td align="right" valign="top" nowrap="nowrap">
                    <span class="gensmall">{S_TIMEZONE}</span><br />
                    <span class="nav">{PAGINATION}</span><br />
                    {CHAPTERBOX}
                    <span class="gensmall">{S_AUTH_CAN}</span>
                </td>
            </tr>
        </table>
     
        </td>
    </tr>
</table>
Avatar billede metal_hansen Nybegynder
27. december 2003 - 01:21 #3
den originale kode:


<a name="top"></a>

<table width="100%" cellspacing="0" cellpadding="0" border="0">
    <tr>
        <td><a href="{U_VIEW_ARTICLE}" class="maintitle">{ARTICLE_TITLE}</a></td>
    </tr>
</table>

<br />

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
    <tr>
        <td align="left" class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a href="{U_ARTICLES}" class="nav">{L_ARTICLES}</a>
            <!-- BEGIN switch_chapter -->
            -> <a href="{switch_chapter.U_VIEW_CHAPTER}" class="nav">{switch_chapter.CHAPTER_NAME}</a>
            <!-- END switch_chapter -->
            <!-- BEGIN switch_subchapter -->
            -> <a href="{switch_subchapter.U_VIEW_CHAPTER}" class="nav">{switch_subchapter.CHAPTER_NAME}</a>
            <!-- END switch_subchapter -->
        </td>
    </tr>
</table>

<table width="100%" cellspacing="0" cellpadding="0" border="0">
    <tr>
        <td valign="top">{ARTICLES_NAV}</td>
        <td width="10">&nbsp;</td>
        <td valign="top" width="100%"><table width="100%" cellspacing="1" cellpadding="3" border="0" class="forumline">
            <tr>
                <th class="thTop">{L_AUTHOR}</th>
                <th class="thTop">{L_ARTICLE}</th>
            </tr>
            <tr>
                <td width="145" align="left" valign="top" class="row1" nowrap="nowrap"><span class="name"><b>{AUTHOR}</b></span><br /><span class="postdetails">{POSTER_RANK}<br />{RANK_IMAGE}{POSTER_AVATAR}<br /><br />{POSTER_JOINED}<br />{POSTER_ARTICLES}<br />{POSTER_COMMENTS}<br />{POSTER_FROM}</span></td>
                <td width="100%" height="28" valign="top" class="row2"><table width="100%" cellspacing="0" cellpadding="0" border="0">
                    <tr>
                        <td width="100%"><span class="postdetails">{ARTICLE_ICON}&nbsp;{L_POSTED}: {POST_TIME}</span></td>
                        <td valign="top" nowrap="nowrap">{APPROVE_IMG} {EDIT_IMG} {DELETE_IMG}</td>
                    </tr>
                    <tr>
                        <td colspan="2"><hr /></td>
                    </tr>
                    <tr>
                        <td colspan="2"><span class="postbody">{ARTICLE_TEXT}</span></td>
                    </tr>
                </table></td>
            </tr>
            <tr>
                <td colspan="2" class="catBottom"><table width="100%" cellspacing="0" cellpadding="0" border="0">
                    <tr>
                        <td align="left" nowrap="nowrap">
                            <!-- BEGIN enable_rating -->
                            <form action="{enable_rating.S_RATE_ACTION}" method="post">
                            <span class="gensmall">{L_RATE_ARTICLE}:&nbsp;{enable_rating.S_RATING}&nbsp;{enable_rating.S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_RATE}" /></span>
                            </form>
                        </td>
                        <!-- END enable_rating -->
                        <td align="right" nowrap="nowrap">
                            <span class="gensmall">{L_RATING}: {S_RATING_STATS}</span>
                        </td>
                    </tr>
                </table></td>
            </tr>
        </table>

        {RATINGBOX}

        {COMMENTSBOX}

        <table width="100%" cellspacing="0" cellpadding="0" border="0">
            <tr>
                <td valign="top" nowrap="nowrap"><span class="nav">{S_POST_COMMENT}</span><br />
                    <span class="nav">{PAGE_NUMBER}</span></td>
                <td align="right" valign="top" nowrap="nowrap">
                    <span class="gensmall">{S_TIMEZONE}</span><br />
                    <span class="nav">{PAGINATION}</span><br />
                    {CHAPTERBOX}
                    <span class="gensmall">{S_AUTH_CAN}</span>
                </td>
            </tr>
        </table></td>
    </tr>
</table>
Avatar billede athlon-pascal Juniormester
27. december 2003 - 01:58 #4
Prøv det her:

<a name="top"></a>

<table width="100%" cellspacing="0" cellpadding="0" border="0">
    <tr>
        <td><a href="{U_VIEW_ARTICLE}" class="maintitle">{ARTICLE_TITLE}</a></td>
    </tr>
</table>

<br />

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
    <tr>
        <td align="left" class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a href="{U_ARTICLES}" class="nav">{L_ARTICLES}</a>
            <!-- BEGIN switch_chapter -->
            -> <a href="{switch_chapter.U_VIEW_CHAPTER}" class="nav">{switch_chapter.CHAPTER_NAME}</a>
            <!-- END switch_chapter -->
            <!-- BEGIN switch_subchapter -->
            -> <a href="{switch_subchapter.U_VIEW_CHAPTER}" class="nav">{switch_subchapter.CHAPTER_NAME}</a>
            <!-- END switch_subchapter -->
        </td>
    </tr>
</table>

<table width="100%" cellspacing="0" cellpadding="0" border="0">
    <tr>
        <td valign="top">{ARTICLES_NAV}
            <table width="150" cellspacing="1" cellpadding="2" border="0" class="forumline">
                <tr>
                    &nbsp;
                </tr>
                <tr>
                    <th colspan="2" class="thTop">{L_AUTHOR}</th>
                </tr>
                <tr>
                    <td width="145" align="left" valign="top" class="row1" nowrap="nowrap"><span class="name"><b>{AUTHOR}</b></span><br /><span class="postdetails">{POSTER_RANK}<br />{RANK_IMAGE}{POSTER_AVATAR}<br /><br />{POSTER_JOINED}<br />{POSTER_ARTICLES}<br />{POSTER_COMMENTS}<br />{POSTER_FROM}</span></td>
                </tr>
            </table>
        </td>
        <td width="10">&nbsp;</td>
        <td valign="top" width="100%"><table width="100%" cellspacing="1" cellpadding="3" border="0" class="forumline">
            <tr>
                <th class="thTop">{L_ARTICLE}</th>
            </tr>
            <tr>
                <td width="100%" height="28" valign="top" class="row2"><table width="100%" cellspacing="0" cellpadding="0" border="0">
                    <tr>
                        <td width="100%"><span class="postdetails">{ARTICLE_ICON}&nbsp;{L_POSTED}: {POST_TIME}</span></td>
                        <td valign="top" nowrap="nowrap">{APPROVE_IMG} {EDIT_IMG} {DELETE_IMG}</td>
                    </tr>
                    <tr>
                        <td colspan="2"><hr /></td>
                    </tr>
                    <tr>
                        <td colspan="2"><span class="postbody">{ARTICLE_TEXT}</span></td>
                    </tr>
                </table></td>
            </tr>
            <tr>
                <td colspan="2" class="catBottom"><table width="100%" cellspacing="0" cellpadding="0" border="0">
                    <tr>
                        <td align="left" nowrap="nowrap">
                            <!-- BEGIN enable_rating -->
                            <form action="{enable_rating.S_RATE_ACTION}" method="post">
                            <span class="gensmall">{L_RATE_ARTICLE}:&nbsp;{enable_rating.S_RATING}&nbsp;{enable_rating.S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_RATE}" /></span>
                            </form>
                        </td>
                        <!-- END enable_rating -->
                        <td align="right" nowrap="nowrap">
                            <span class="gensmall">{L_RATING}: {S_RATING_STATS}</span>
                        </td>
                    </tr>
                </table></td>
            </tr>
        </table>

        {RATINGBOX}

        {COMMENTSBOX}

        <table width="100%" cellspacing="0" cellpadding="0" border="0">
            <tr>
                <td valign="top" nowrap="nowrap"><span class="nav">{S_POST_COMMENT}</span><br />
                    <span class="nav">{PAGE_NUMBER}</span></td>
                <td align="right" valign="top" nowrap="nowrap">
                    <span class="gensmall">{S_TIMEZONE}</span><br />
                    <span class="nav">{PAGINATION}</span><br />
                    {CHAPTERBOX}
                    <span class="gensmall">{S_AUTH_CAN}</span>
                </td>
            </tr>
        </table></td>
    </tr>
</table>
Avatar billede metal_hansen Nybegynder
27. december 2003 - 02:03 #5
YES det ser sq fedt ud!
takker!
her har du point! www.øl.nu
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester