Avatar billede jeg_var_gangsta Nybegynder
27. december 2002 - 12:22 Der er 13 kommentarer og
1 løsning

Underlig streg i mit design!

Jeg sidder og arbejder på et design ( http://bbs.usleso.dk/experimental_part_one/ ). Lige over menuen og under det sted hvor der står USLESO er der en grøn streg midt gennem designet. Hvorfor er den der? Jeg synes jeg har gennemgået html-koden 100 gange, og jeg kan ikke finde det... Tabellen udskriver jeg med PHP for at undgå 'artifacts' forårsaget af linjeskift o.l. Her er koden for hele siden:

<?
    if(!$page){
        $page = "home";
    }
?>
<HTML>
<HEAD>
<TITLE>{ usleso.02.experimental.part.one }</TITLE>
<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=iso-8859-1'>
    <STYLE TYPE='TEXT/CSS' REL='StyleSheet'>
        BODY
            {
            background-color: #83E45D;
            text-align: left;
            }
    </STYLE>
</HEAD>
<BODY LEFTMARGIN='0' TOPMARGIN='0' MARGINWIDTH='0' MARGINHEIGHT='0'>
<?
echo "<TABLE BORDER='0' CELLPADDING='0' CELLSPACING='0'>";
    echo "<TR>";
        echo "<TD COLSPAN='2'><IMG SRC='images/top.gif' WIDTH='872' HEIGHT='235' ALT=''></TD>";
    echo "</TR>";
    echo "<TR>";
        echo "<TD ROWSPAN='5' WIDTH='526'>&nbsp;</TD>";
    echo "</TR>";
    echo "<TR>";
        echo "<TD>";
        echo "<IMG SRC='images/menu_left.gif' WIDTH='20' HEIGHT='20' ALT=''>";
        echo "<IMG SRC='images/button.gif' onMouseOver=\"this.src='images/button_over.gif'; document.menutext.src='images/menutext.php?text=home'\" onMouseOut=\"this.src='images/button.gif'; document.menutext.src='images/menutext.png'\" WIDTH='20' HEIGHT='20' ALT=''>";
        echo "<IMG SRC='images/button.gif' onMouseOver=\"this.src='images/button_over.gif'; document.menutext.src='images/menutext.php?text=stuff'\" onMouseOut=\"this.src='images/button.gif'; document.menutext.src='images/menutext.png'\" WIDTH='20' HEIGHT='20' ALT=''>";
        echo "<IMG SRC='images/button.gif' onMouseOver=\"this.src='images/button_over.gif'; document.menutext.src='images/menutext.php?text=services'\" onMouseOut=\"this.src='images/button.gif'; document.menutext.src='images/menutext.png'\" WIDTH='20' HEIGHT='20' ALT=''>";
        echo "<IMG SRC='images/button.gif' onMouseOver=\"this.src='images/button_over.gif'; document.menutext.src='images/menutext.php?text=tagwall'\" onMouseOut=\"this.src='images/button.gif'; document.menutext.src='images/menutext.png'\" WIDTH='20' HEIGHT='20' ALT=''>";
        echo "<IMG SRC='images/button.gif' onMouseOver=\"this.src='images/button_over.gif'; document.menutext.src='images/menutext.php?text=crew'\" onMouseOut=\"this.src='images/button.gif'; document.menutext.src='images/menutext.png'\" WIDTH='20' HEIGHT='20' ALT=''>";
        echo "<IMG SRC='images/button.gif' onMouseOver=\"this.src='images/button_over.gif'; document.menutext.src='images/menutext.php?text=about'\" onMouseOut=\"this.src='images/button.gif'; document.menutext.src='images/menutext.png'\" WIDTH='20' HEIGHT='20' ALT=''>";
        echo "<IMG SRC='images/menutext.png' WIDTH='170' HEIGHT='20' ALT='' NAME='menutext'>";
        echo "<IMG SRC='images/menu_right.gif' WIDTH='36' HEIGHT='20' ALT=''>";
        echo "</TD>";
    echo "</TR>";
    echo "<TR>";
        echo "<TD><IMG SRC='images/content_.php?text=home' WIDTH='285' HEIGHT='32' ALT=''><IMG SRC='images/top_right.gif' WIDTH='61' HEIGHT='32' ALT=''></TD>";
    echo "</TR>";
    echo "<TR>";
        echo "<TD STYLE='background-image: url(images/main_bg.gif);' ALIGN='CENTER'><IFRAME FRAMEBORDER='0' WIDTH='330' HEIGHT='400' SRC='content/content_home.php'></IFRAME></TD>";
    echo "</TR>";
    echo "<TR>";
        echo "<TD><IMG SRC='images/bottom.gif' WIDTH='346' HEIGHT='135' ALT=''></TD>";
    echo "</TR>";
echo "</TABLE>";
?>
</BODY>
</HTML>

/Gangsta
Avatar billede ellert Nybegynder
27. december 2002 - 12:30 #1
(du kan nøjes med ét echo " i starten og ét "; til slut - hvis alt er html
Avatar billede ellert Nybegynder
27. december 2002 - 12:31 #2
er du sikker på, at alle de højder og bredder du har angivet passer?
Avatar billede jeg_var_gangsta Nybegynder
27. december 2002 - 12:31 #3
Avatar billede sthen Nybegynder
27. december 2002 - 12:32 #4
Fjern dette:
echo "<TR>";
        echo "<TD ROWSPAN='5' WIDTH='526'>&nbsp;</TD>";
    echo "</TR>";
Avatar billede jeg_var_gangsta Nybegynder
27. december 2002 - 12:32 #5
Jep, alle højder osv. passer.
Avatar billede jeg_var_gangsta Nybegynder
27. december 2002 - 12:33 #6
sthen > det tror jeg ikke, se sidne nu...
http://bbs.usleso.dk/experimental_part_one/
Avatar billede jeg_var_gangsta Nybegynder
27. december 2002 - 12:37 #7
har sat det ind igen nu...
Avatar billede ellert Nybegynder
27. december 2002 - 12:51 #8
prøv at sætte style="background:white;" på table'et
Avatar billede whatever Nybegynder
27. december 2002 - 12:55 #9
Prøv dette (det virker hos mig):

<?
    if(!$page){
        $page = "home";
    }
?>
<HTML>
<HEAD>
<TITLE>{ usleso.02.experimental.part.one }</TITLE>
<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=iso-8859-1'>
    <STYLE TYPE='TEXT/CSS' REL='StyleSheet'>
        BODY
            {
            background-color: #83E45D;
            text-align: left;
            }
    </STYLE>
</HEAD>
<BODY LEFTMARGIN='0' TOPMARGIN='0' MARGINWIDTH='0' MARGINHEIGHT='0'>
<?
echo "<TABLE BORDER='0' CELLPADDING='0' CELLSPACING='0'>";
    echo "<TR>";
        echo "<TD COLSPAN='2'><IMG SRC='images/top.gif' WIDTH='872' HEIGHT='235' ALT=''></TD>";
    echo "</TR>";
    echo "<TR>";
        echo "<TD ROWSPAN='4' WIDTH='526'>&nbsp;</TD>";
        echo "<TD>";
        echo "<IMG SRC='images/menu_left.gif' WIDTH='20' HEIGHT='20' ALT=''>";
        echo "<IMG SRC='images/button.gif' onMouseOver=\"this.src='images/button_over.gif'; document.menutext.src='images/menutext.php?text=home'\" onMouseOut=\"this.src='images/button.gif'; document.menutext.src='images/menutext.png'\" WIDTH='20' HEIGHT='20' ALT=''>";
        echo "<IMG SRC='images/button.gif' onMouseOver=\"this.src='images/button_over.gif'; document.menutext.src='images/menutext.php?text=stuff'\" onMouseOut=\"this.src='images/button.gif'; document.menutext.src='images/menutext.png'\" WIDTH='20' HEIGHT='20' ALT=''>";
        echo "<IMG SRC='images/button.gif' onMouseOver=\"this.src='images/button_over.gif'; document.menutext.src='images/menutext.php?text=services'\" onMouseOut=\"this.src='images/button.gif'; document.menutext.src='images/menutext.png'\" WIDTH='20' HEIGHT='20' ALT=''>";
        echo "<IMG SRC='images/button.gif' onMouseOver=\"this.src='images/button_over.gif'; document.menutext.src='images/menutext.php?text=tagwall'\" onMouseOut=\"this.src='images/button.gif'; document.menutext.src='images/menutext.png'\" WIDTH='20' HEIGHT='20' ALT=''>";
        echo "<IMG SRC='images/button.gif' onMouseOver=\"this.src='images/button_over.gif'; document.menutext.src='images/menutext.php?text=crew'\" onMouseOut=\"this.src='images/button.gif'; document.menutext.src='images/menutext.png'\" WIDTH='20' HEIGHT='20' ALT=''>";
        echo "<IMG SRC='images/button.gif' onMouseOver=\"this.src='images/button_over.gif'; document.menutext.src='images/menutext.php?text=about'\" onMouseOut=\"this.src='images/button.gif'; document.menutext.src='images/menutext.png'\" WIDTH='20' HEIGHT='20' ALT=''>";
        echo "<IMG SRC='images/menutext.png' WIDTH='170' HEIGHT='20' ALT='' NAME='menutext'>";
        echo "<IMG SRC='images/menu_right.gif' WIDTH='36' HEIGHT='20' ALT=''>";
        echo "</TD>";
    echo "</TR>";
    echo "<TR>";
        echo "<TD><IMG SRC='images/content_.php?text=home' WIDTH='285' HEIGHT='32' ALT=''><IMG SRC='images/top_right.gif' WIDTH='61' HEIGHT='32' ALT=''></TD>";
    echo "</TR>";
    echo "<TR>";
        echo "<TD STYLE='background-image: url(images/main_bg.gif);' ALIGN='CENTER'><IFRAME FRAMEBORDER='0' WIDTH='330' HEIGHT='400' SRC='content/content_home.php'></IFRAME></TD>";
    echo "</TR>";
    echo "<TR>";
        echo "<TD><IMG SRC='images/bottom.gif' WIDTH='346' HEIGHT='135' ALT=''></TD>";
    echo "</TR>";
echo "</TABLE>";
?>
</BODY>
</HTML>
Avatar billede jeg_var_gangsta Nybegynder
27. december 2002 - 13:03 #10
whatever > hvad har du ændret?
Avatar billede jeg_var_gangsta Nybegynder
27. december 2002 - 13:04 #11
Whatever > Det virker!!! :D Hvad har du ændret?
Avatar billede whatever Nybegynder
27. december 2002 - 13:08 #12
Jeg har ændret denne:

echo "<TR>";
  echo "<TD ROWSPAN='5' WIDTH='526'>&nbsp;</TD>";
echo "</TR>";

så rowspan er 4, og lagt kolonnen med menune i samme række.
Avatar billede jeg_var_gangsta Nybegynder
27. december 2002 - 13:10 #13
Aaah, logisk :D
Well, du får points.
Tak for hjælpen og glædelig jul :)
Avatar billede whatever Nybegynder
27. december 2002 - 13:11 #14
Selv tak. I lige måde.
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