Avatar billede ouch Nybegynder
29. december 2003 - 20:07 Der er 19 kommentarer og
1 løsning

<td> blok skal være samme højde som den næste

http://www.zerosplugins.1go.dk/

Kig nederst på siden. Jeg har imiddelertidigt sat border til 1 for at demonstrere mit problem. "Credits" boksen skal være samme højde som "Mirror Information" boksen. Som ses i HTML koden er de begge i den samme <tr> i den samme <table>.

Det skal selvfølgelig ikke være en løsning så som at tilføje 3-4 tomme linier hver gang jeg laver lidt om på en af boksene men en smart måde ligesom "style='width:45%'" som jeg har gjort for at få boksene til at fylde max. 75% af sidens bredde.

Det er da muligt ikk? :'(
Avatar billede nitram30 Nybegynder
29. december 2003 - 22:55 #1
Sådan her ?


<html>

<head>
<title>Zero's AdminMod Plugins</title>
<link rel="stylesheet" href="http://zerosplugins.1go.dk/style.css">
</head>

<body>
<center>

<div class='spacer'>

<table style='width:50%' cellspacing='3'><tr><td vertical-align: top;'>

<table cellpadding='0' cellspacing='0'>
<tr>
<td class='captiontopleft'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='24' height='3' alt='' style='display: block;' /></td>
<td class='captiontopmiddle'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='1' height='3' alt='' style='display: block;' /></td>
<td class='captiontopright'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='11' height='3' alt='' style='display: block;' /></td>
</tr>
</table>

<table cellpadding='0' cellspacing='0'>
<tr>
<td class='captionleft'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='24' height='18' alt='' style='display: block;' /></td>
<td class='captionbar' style='white-space:nowrap'>Yo there!</td>
<td class='captionend'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='12' height='18' alt='' style='display: block;' /></td>
<td class='captionmain'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='1' height='18' alt='' style='display: block;' /></td>
<td class='captionright'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='11' height='18' alt='' style='display: block;' /></td>
</tr>
</table>

<table cellpadding='0' cellspacing='0'>
<tr>
<td class='bodyleft'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='3' height='1' alt='' style='display: block;' /></td>
<td class='bodymain'>

<center><font size='5'>Zero's AdminMod Plugins</font></center><br />
<br />
Heres my 1337 AdminMod plugins ;)<br />
If anyone can offer me some good file hosting then i would be glad.<br />
<br />
Things to note:<br />
I usually dont test any of my plugins with Steam. They should however work fine.<br />
Compiled .amx file is always included.<br />
Under normal circumstances (in plugins without sensitive content), the source .sma is also included.<br />
All .zip files should be unzipped into mod folder, except the sources, as they are places in the root of the .zip.<br />
Unless anything else is written, then all commands and usage will appear in admin_help, after the plugin is installed.<br />
<br />
Not much else to say, Feel free to mail me, if you have any trouble with my plugins! <a href='mailto:zero3cool@bonbon.net'>zero3cool@bonbon.net</a><br />
<br />
Enough talk, Check em out!
</td>
<td class='bodyright'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='3' height='1' alt='' style='display: block;' /></td>
</tr>
</table>

<table cellpadding='0' cellspacing='0'>
<tr>
<td class='bottomleft'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='10' height='9' alt='' style='display: block;' /></td>
<td class='bottommain'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='1' height='9' alt='' style='display: block;' /></td>
<td class='bottomright'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='10' height='9' alt='' style='display: block;' /></td>
</tr>
</table>

</td></tr></table>

</div>
</center>
<center>

<div class='spacer'>

<table style='width:80%' cellspacing='3'><tr><td vertical-align: top;'>

<table cellpadding='0' cellspacing='0'>
<tr>
<td class='captiontopleft'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='24' height='3' alt='' style='display: block;' /></td>
<td class='captiontopmiddle'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='1' height='3' alt='' style='display: block;' /></td>
<td class='captiontopright'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='11' height='3' alt='' style='display: block;' /></td>
</tr>
</table>

<table cellpadding='0' cellspacing='0'>
<tr>
<td class='captionleft'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='24' height='18' alt='' style='display: block;' /></td>
<td class='captionbar' style='white-space:nowrap'>Practice Plugin</td>
<td class='captionend'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='12' height='18' alt='' style='display: block;' /></td>
<td class='captionmain'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='1' height='18' alt='' style='display: block;' /></td>
<td class='captionright'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='11' height='18' alt='' style='display: block;' /></td>
</tr>
</table>

<table cellpadding='0' cellspacing='0'>
<tr>
<td class='bodyleft'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='3' height='1' alt='' style='display: block;' /></td>
<td class='bodymain'>

<center>
<table cellpadding=10 cellspacing=10><tr>

<td style='width:40%'><p align=right>
<img src='http://zerosplugins.1go.dk/snapshots/practice.jpg' alt='AdminMod Practice Plugin'><br />
<br />
<img src='http://zerosplugins.1go.dk/snapshots/practice2.jpg' alt='AdminMod Practice Plugin'><br />
<br />
<img src='http://zerosplugins.1go.dk/snapshots/practice3.jpg' alt='AdminMod Practice Plugin'><br />
</p></td>

<td>
<font size='5'>Practice plugin</font><br />
Version 1.0 - Last update: 1/12/03<br />
<br />
This plugin allows you, to quickly kick all members that are not in your clan and set a password on the server, to hold a practice.
When used, all players will get a warning, telling them they will be kicked in 15 seconds if they are not in your clan, and so will they be :)<br />
Be carefull to spell your tag right, or all your members will be kicked too! Note that anyone wearing your tag wont be kicked, even if they are not in your clan!. Also note, that immune admins wont be kicked neither.<br />
<br />
<table>
    <tr>
        <td style='width:15%'></td>

        <td style='width:30%'>
        Download binary (.amx):<br />
        <a href='http://prdownloads.sourceforge.net/zerosplugins/practice1_0.zip?download'>Download mirror 1</a><br />
        <a href='http://frip.dk/zerosplugins/downloads/practice1_0.zip'>Download mirror 2</a><br />
        <a href='http://www.zepher.f2s.com/zeros_plugins/practice1_0.zip'>Download mirror 3</a><br />
        <a href='http://www.fxpforum.com/EEV/practice1_0.zip'>Download mirror 4</a><br />
        </td>

        <td style='width:10%'></td>

        <td style='width:30%'>
        Download source (.sma):<br />
        <a href='http://prdownloads.sourceforge.net/zerosplugins/practice1_0_source.zip?download'>Download mirror 1</a><br />
        <a href='http://frip.dk/zerosplugins/downloads/practice1_0_source.zip'>Download mirror 2</a><br />
        <a href='http://www.zepher.f2s.com/zeros_plugins/practice1_0_source.zip'>Download mirror 3</a><br />
        <a href='http://www.fxpforum.com/EEV/practice1_0_source.zip'>Download mirror 4</a><br />
        </td>

        <td style='width:15%'></td>
    </tr>
</table>
</td>

</tr></table>
</center>

</td>
<td class='bodyright'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='3' height='1' alt='' style='display: block;' /></td>
</tr>
</table>

<table cellpadding='0' cellspacing='0'>
<tr>
<td class='bottomleft'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='10' height='9' alt='' style='display: block;' /></td>
<td class='bottommain'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='1' height='9' alt='' style='display: block;' /></td>
<td class='bottomright'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='10' height='9' alt='' style='display: block;' /></td>
</tr>
</table>

</td></tr></table>

</div>
</center>
<center>

<div class='spacer'>

<table style='width:80%' cellspacing='3'><tr><td vertical-align: top;'>

<table cellpadding='0' cellspacing='0'>
<tr>
<td class='captiontopleft'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='24' height='3' alt='' style='display: block;' /></td>
<td class='captiontopmiddle'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='1' height='3' alt='' style='display: block;' /></td>
<td class='captiontopright'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='11' height='3' alt='' style='display: block;' /></td>
</tr>
</table>

<table cellpadding='0' cellspacing='0'>
<tr>
<td class='captionleft'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='24' height='18' alt='' style='display: block;' /></td>
<td class='captionbar' style='white-space:nowrap'>TeleTo Plugin</td>
<td class='captionend'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='12' height='18' alt='' style='display: block;' /></td>
<td class='captionmain'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='1' height='18' alt='' style='display: block;' /></td>
<td class='captionright'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='11' height='18' alt='' style='display: block;' /></td>
</tr>
</table>

<table cellpadding='0' cellspacing='0'>
<tr>
<td class='bodyleft'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='3' height='1' alt='' style='display: block;' /></td>
<td class='bodymain'>

<center>
<table cellpadding=10 cellspacing=10><tr>

<td style='width:40%'><p align=right>
<img src='http://zerosplugins.1go.dk/snapshots/teleto.jpg' alt='AdminMod TeleTo Plugin'><br />
</p></td>

<td>
<font size='5'>TeleTo plugin</font><br />
Version 1.0 - Last update: 1/12/03<br />
<br />
This plugin allows you, to teleport another player, a team, or all players, to you or another player,  All of your choice!<br />
The purpose of this plugin, is for use in so-called escape maps for TFC. When a player reaches a spot, you can teleport everyone to him so everyone can work together against the goal, and nobody will be behind the whole time.<br />
<br />
<table>
    <tr>
        <td style='width:15%'></td>

        <td style='width:30%'>
        Download binary (.amx):<br />
        <a href='http://prdownloads.sourceforge.net/zerosplugins/teleto1_0.zip?download'>Download mirror 1</a><br />
        <a href='http://frip.dk/zerosplugins/downloads/teleto1_0.zip'>Download mirror 2</a><br />
        <a href='http://www.zepher.f2s.com/zeros_plugins/teleto1_0.zip'>Download mirror 3</a><br />
        <a href='http://www.fxpforum.com/EEV/teleto1_0.zip'>Download mirror 4</a><br />
        </td>

        <td style='width:10%'></td>

        <td style='width:30%'>
        Download source (.sma):<br />
        <a href='http://prdownloads.sourceforge.net/zerosplugins/teleto1_0_source.zip?download'>Download mirror 1</a><br />
        <a href='http://frip.dk/zerosplugins/downloads/teleto1_0_source.zip'>Download mirror 2</a><br />
        <a href='http://www.zepher.f2s.com/zeros_plugins/teleto1_0_source.zip'>Download mirror 3</a><br />
        <a href='http://www.fxpforum.com/EEV/teleto1_0_source.zip'>Download mirror 4</a><br />
        </td>

        <td style='width:15%'></td>
    </tr>
</table>
</td>

</tr></table>
</center>

</td>
<td class='bodyright'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='3' height='1' alt='' style='display: block;' /></td>
</tr>
</table>

<table cellpadding='0' cellspacing='0'>
<tr>
<td class='bottomleft'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='10' height='9' alt='' style='display: block;' /></td>
<td class='bottommain'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='1' height='9' alt='' style='display: block;' /></td>
<td class='bottomright'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='10' height='9' alt='' style='display: block;' /></td>
</tr>
</table>

</td></tr></table>

</div>
</center>
<center>

<div class='spacer'>

<table style='width:80%' cellspacing='3'><tr><td vertical-align: top;'>

<table cellpadding='0' cellspacing='0'>
<tr>
<td class='captiontopleft'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='24' height='3' alt='' style='display: block;' /></td>
<td class='captiontopmiddle'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='1' height='3' alt='' style='display: block;' /></td>
<td class='captiontopright'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='11' height='3' alt='' style='display: block;' /></td>
</tr>
</table>

<table cellpadding='0' cellspacing='0'>
<tr>
<td class='captionleft'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='24' height='18' alt='' style='display: block;' /></td>
<td class='captionbar' style='white-space:nowrap'>MyCommands Plugin</td>
<td class='captionend'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='12' height='18' alt='' style='display: block;' /></td>
<td class='captionmain'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='1' height='18' alt='' style='display: block;' /></td>
<td class='captionright'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='11' height='18' alt='' style='display: block;' /></td>
</tr>
</table>

<table cellpadding='0' cellspacing='0'>
<tr>
<td class='bodyleft'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='3' height='1' alt='' style='display: block;' /></td>
<td class='bodymain'>

<center>
<table cellpadding=10 cellspacing=10><tr>

<td style='width:40%'><p align=right>
<img src='http://zerosplugins.1go.dk/snapshots/mycommands.jpg' alt='AdminMod MyCommands Plugin'><br />
<br />
<img src='http://zerosplugins.1go.dk/snapshots/mycommands2.jpg' alt='AdminMod MyCommands Plugin'><br />
</p></td>

<td>
<font size='5'>MyCommands plugin</font><br />
Version 1.0 - Last update: 1/12/03<br />
<br />
This plugin allows you, to create an AdminMod (admin_) command for any changeable server cvar.
It should be mod independant, as long as AdminMod supports the mod.<br />
Remember to review the config file (addons/adminmod/config/mycommands.txt), and add some commands.<br />
<br />

<table>
    <tr>
        <td style='width:15%'></td>

        <td style='width:30%'>
        Download binary (.amx):<br />
        <a href='http://prdownloads.sourceforge.net/zerosplugins/mycommands1_0.zip?download'>Download mirror 1</a><br />
        <a href='http://frip.dk/zerosplugins/downloads/mycommands1_0.zip'>Download mirror 2</a><br />
        <a href='http://www.zepher.f2s.com/zeros_plugins/mycommands1_0.zip'>Download mirror 3</a><br />
        <a href='http://www.fxpforum.com/EEV/mycommands1_0.zip'>Download mirror 4</a><br />
        </td>

        <td style='width:10%'></td>

        <td style='width:30%'>
        Download source (.sma):<br />
        <a href='http://prdownloads.sourceforge.net/zerosplugins/mycommands1_0_source.zip?download'>Download mirror 1</a><br />
        <a href='http://frip.dk/zerosplugins/downloads/mycommands1_0_source.zip'>Download mirror 2</a><br />
        <a href='http://www.zepher.f2s.com/zeros_plugins/mycommands1_0_source.zip'>Download mirror 3</a><br />
        <a href='http://www.fxpforum.com/EEV/mycommands1_0_source.zip'>Download mirror 4</a><br />
        </td>

        <td style='width:15%'></td>
    </tr>
</table>

</td>

</tr></table>
</center>

</td>
<td class='bodyright'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='3' height='1' alt='' style='display: block;' /></td>
</tr>
</table>

<table cellpadding='0' cellspacing='0'>
<tr>
<td class='bottomleft'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='10' height='9' alt='' style='display: block;' /></td>
<td class='bottommain'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='1' height='9' alt='' style='display: block;' /></td>
<td class='bottomright'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='10' height='9' alt='' style='display: block;' /></td>
</tr>
</table>

</td></tr></table>

</div>
</center><center>
<div class='spacer'>
<table style='width:80%' cellspacing='3' border='1'>

<tr>
<td style='width:35%' vertical-align: top;'>
    <table cellpadding='0' cellspacing='0'>
        <tr>
            <td class='captiontopleft'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='24' height='3' alt='' style='display: block;' /></td>
            <td class='captiontopmiddle'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='1' height='3' alt='' style='display: block;' /></td>
            <td class='captiontopright'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='11' height='3' alt='' style='display: block;' /></td>
        </tr>
    </table>

    <table cellpadding='0' cellspacing='0'>
        <tr>
            <td class='captionleft'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='24' height='18' alt='' style='display: block;' /></td>
            <td class='captionbar' style='white-space:nowrap'>Credits</td>
            <td class='captionend'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='12' height='18' alt='' style='display: block;' /></td>
            <td class='captionmain'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='1' height='18' alt='' style='display: block;' /></td>
            <td class='captionright'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='11' height='18' alt='' style='display: block;' /></td>
        </tr>
    </table>

    <table cellpadding='0' cellspacing='0'>
        <tr>
            <td class='bodyleft'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='3' height='1' alt='' style='display: block;' /></td>

            <td class='bodymain'>
                <center>
                <table height="150" cellpadding=10 cellspacing=10>
                    <tr>
                        <td></td>
                        <td><font size='4'>Credits:</font><br /></td>
                    </tr>
                    <tr>
                        <td><a href='http://www.adminmod.org/'><img src='http://zerosplugins.1go.dk/banners/adminmod.jpg' border='0'></a><br /></td>
                        <td><a href='http://www.adminmod.org/'>AdminMod</a> - Without this you wouldnt be here<br /></td>
                    </tr>
                    <tr>
                        <td><a href='http://e107.org/'><img src='http://zerosplugins.1go.dk/banners/e107.jpg' border='0'></a><br /></td>
                        <td><a href='http://e107.org/'>e107</a> - The place i stole this cool theme from ;)<br /></td>
                    </tr>
                </table>
                </center>

            </td>

            <td class='bodyright'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='3' height='1' alt='' style='display: block;' /></td>
        </tr>
    </table>

    <table cellpadding='0' cellspacing='0'>
        <tr>
            <td class='bottomleft'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='10' height='9' alt='' style='display: block;' /></td>
            <td class='bottommain'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='1' height='9' alt='' style='display: block;' /></td>
            <td class='bottomright'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='10' height='9' alt='' style='display: block;' /></td>
        </tr>
    </table>
</td>

<td style='width:45%' vertical-align: top;'>
    <table cellpadding='0' cellspacing='0'>
        <tr>
            <td class='captiontopleft'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='24' height='3' alt='' style='display: block;' /></td>
            <td class='captiontopmiddle'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='1' height='3' alt='' style='display: block;' /></td>
            <td class='captiontopright'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='11' height='3' alt='' style='display: block;' /></td>
        </tr>
    </table>

    <table cellpadding='0' cellspacing='0'>
        <tr>
            <td class='captionleft'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='24' height='18' alt='' style='display: block;' /></td>
            <td class='captionbar' style='white-space:nowrap'>Mirror Information</td>
            <td class='captionend'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='12' height='18' alt='' style='display: block;' /></td>
            <td class='captionmain'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='1' height='18' alt='' style='display: block;' /></td>
            <td class='captionright'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='11' height='18' alt='' style='display: block;' /></td>
        </tr>
    </table>

    <table height='150' cellpadding='0' cellspacing='0'>
        <tr>
            <td class='bodyleft'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='3' height='1' alt='' style='display: block;' /></td>

            <td class='bodymain'>
                <center>
                <table cellpadding=10 cellspacing=10>
                    <tr>
                        <td></td>
                        <td><font size='4'>Mirror Credits/Information</font><br /></td>
                    </tr>
                    <tr>
                        <td><a href='http://www.sourceforce.net/'><img src='http://zerosplugins.1go.dk/banners/sourceforce.jpg' border='0'></a><br /></td>
                        <td><a href='http://www.sourceforce.net/'>Sourceforce</a> - Mirror 1 - Link to Sourceforce's own mirrors<br /></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><a href='http://www.frip.dk/'>Frip</a> - Mirror 2 - Direct link<br /></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>ZepheR - Mirror 3 - Direct link<br /></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>Gismo - Mirror 4 - Direct link<br /></td>
                    </tr>
                </table>
                </center>
            </td>

            <td class='bodyright'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='3' height='1' alt='' style='display: block;' /></td>
        </tr>
    </table>

    <table cellpadding='0' cellspacing='0'>
        <tr>
            <td class='bottomleft'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='10' height='9' alt='' style='display: block;' /></td>
            <td class='bottommain'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='1' height='9' alt='' style='display: block;' /></td>
            <td class='bottomright'><img src='http://zerosplugins.1go.dk/images/blank.gif' width='10' height='9' alt='' style='display: block;' /></td>
        </tr>
    </table>
</td>
</tr>

</table>
</div>
</center>

</body>
</html>
Avatar billede ouch Nybegynder
30. december 2003 - 12:04 #2
Ikke helt. Hvis jeg ændrer på indholdet i en af boksene så skal jeg til at ændre højden på begge bokse hvilket ikke rigtigt løser mit problem.
Avatar billede nitram30 Nybegynder
30. december 2003 - 17:26 #3
Der er fordele og udlemper ved det du vil have.
Der skal også tages højde for at hver gang du lægger et billede ind vil det også ændre sig..
Kigger lige på det igen. :-)
Avatar billede roenving Novice
30. december 2003 - 17:30 #4
Hvad med noget lignende dette:

<script type="text/javascript">
var divs = ['left','middle','right'];

function syncronizeDivs(){
    var maxH = 0;
    d = document.getElementsByTagName("DIV");
    for(i=0;d.length>i;i++){
        for(j=0;divs.length>j;j++){
            if(d[i].className==divs[j])maxH = Math.max(maxH,d[i].offsetHeight);
        }
    }
    for(i=0;d.length>i;i++){
        for(j=0;divs.length>j;j++){
            if(d[i].className==divs[j])d[i].style.height=maxH + 'px';
        }
    }
}
</script>

-- som er lavet til divs, men uden problemer kan bruges på <td>s
Avatar billede ouch Nybegynder
30. december 2003 - 17:40 #5
Og hvordan bruger jeg den på mine <td>'s?
Avatar billede roenving Novice
30. december 2003 - 17:41 #6
Giver dem et id, som du så også skriver i den var-ting, som starter scriptet, og så ændrer "DIV" til "TD" !-)
Avatar billede ouch Nybegynder
31. december 2003 - 11:06 #7
left, middle eller right?
Avatar billede roenving Novice
02. januar 2004 - 03:46 #8
Ja !-)
Avatar billede ouch Nybegynder
02. januar 2004 - 09:46 #9
Hmm kan ikke få det til at virke. Ændrede
'left','middle','right'
til
'fixed'
og indsatte
style='fixed'
Men ingenting sker.
Avatar billede roenving Novice
03. januar 2004 - 02:38 #10
id="fixed"
Avatar billede ouch Nybegynder
03. januar 2004 - 14:25 #11
Ser ikke ud til at virke. Prøvede både i første td og begge 2.
Avatar billede roenving Novice
03. januar 2004 - 23:51 #12
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Synkroniser højde</title>
<meta name="keywords" content="roenving,http://www.eksperten.dk/spm/445031">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
table,tr,td{margin:0px;padding:0px;border:0px;border-collapse:collapse;}
.left{
  background:brown;
}
.middle{
  background:coral;
}
.right{
  background:lightblue;
}
</style>
<script type="text/javascript">
var tds = ['left','middle','right'];

function syncronizeTds(){
    var maxH = 0;
    d = document.getElementsByTagName("TD");
    for(i=0;d.length>i;i++){
        for(j=0;tds.length>j;j++){
            if(d[i].className==tds[j])maxH = Math.max(maxH,d[i].offsetHeight);
        }
    }
    for(i=0;d.length>i;i++){
        for(j=0;tds.length>j;j++){
            if(d[i].className==tds[j])d[i].style.height=maxH + 'px';
        }
    }
}
</script>
</head>
<body onload="syncronizeTds()">
<table style="font-family:verdane, tahoma, arial, sans-serif;">
  <tr>
    <td>&nbsp;</td>
    <td style="font-size:18px;font-weight:bold;">Overskrift</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><table><tr>
    <td class="left">&nbsp;</td></tr></table>
    <td class="middle" style="">
      Her er en tekst<br>
      Den fylder mere en nabo-cellerne, men de skulle gerne følge med ned !-)</td>
    <td><table><tr>
    <td class="right">&nbsp;</td></tr></table>
  </tr>
</body>
</html>
Avatar billede ouch Nybegynder
04. januar 2004 - 13:40 #13
Virker ikke (se selv om jeg har gjort noget forkert i min kildekode).

og dog..:

Jeg har allerede class='bodymain' hvordan sætter jeg en til ind?
Avatar billede roenving Novice
04. januar 2004 - 15:41 #14
<td class='bodymain left'>
<td class='bodymain right'>

-- burde gerne virke !-)
Avatar billede ouch Nybegynder
05. januar 2004 - 21:32 #15
Ser ikke ud til at virke :(
Avatar billede roenving Novice
06. januar 2004 - 00:51 #16
Vi kan faktisk lave den simplere, når du ikke i forvejen bruger ids, for 03/01-2004 23:51:12 virker jo faktisk:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Synkroniser højde</title>
<meta name="keywords" content="roenving,http://www.eksperten.dk/spm/445031">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
table,tr,td{margin:0px;padding:0px;border:0px;border-collapse:collapse;}
#left{
  background:brown;
}
#middle{
  background:coral;
}
#right{
  background:lightblue;
}
</style>
<script type="text/javascript">
var tds = ['left','middle','right'];

function syncronizeTds(){
    var maxH = 0;
    for(i=0;tds.length>i;i++){
        maxH = Math.max(maxH,document.getElementById(tds[i]).offsetHeight);
    }
    for(i=0;tds.length>i;i++){
        document.getElementById(tds[i]).style.height=maxH + 'px';
    }
}
</script>
</head>
<body onload="syncronizeTds()">
<table style="font-family:verdane, tahoma, arial, sans-serif;">
  <tr>
    <td>&nbsp;</td>
    <td style="font-size:18px;font-weight:bold;">Overskrift</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><table><tr>
    <td id="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr></table>
    <td id="middle" style="">
      Her er en tekst<br>
      Den fylder mere en nabo-cellerne, men de skulle gerne følge med ned !-)</td>
    <td><table><tr>
    <td id="right">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr></table>
  </tr>
</body>
</html>
Avatar billede ouch Nybegynder
06. januar 2004 - 13:47 #17
Juuhuu nu er den der næsten. Teksten skal dog automatisk rette sig efter den nye højde hvilket den ikke gør.
Avatar billede roenving Novice
06. januar 2004 - 18:38 #18
Hvilken tekst skal rette sig ind hvordan ?-)
Avatar billede ouch Nybegynder
06. januar 2004 - 22:09 #19
Credits står nu med en masse spildplads. Pladsen skal automatisk fylde hele td'en ud ligesom billederne og teksten gør i forhold til hinanden. (Resize vinduet så kan du se).
Avatar billede ouch Nybegynder
29. marts 2004 - 09:18 #20
Lukker...
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

IT-JOB