Gå til innhold

[Løst]Siden blir ødelagt i IE, men ikke i FF


Anbefalte innlegg

Skrevet

Hei,

 

til min store frustrasjon blir siden jeg har laget i Dreamweaver Cs4 helt ødelagt når jeg åpner den i IE.

Legger ved et bilde, samt hele kildekoden til indexfila:

 

k04h6s.jpg

 

Men siden ser helt fin ut i FF?!

Hva skal jeg gjøre?

Kildekode:

 

<html>
<head>
<title>FailIRL.com - Nettsiden folk snakker om</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
background-color: #000;
}
#Table_01 tr td #apDiv2 a {
color: #FFF;
}
#apDiv1 {
position:absolute;
width:200px;
height:115px;
z-index:1;
}
#apDiv2 {
position:absolute;
width:44px;
height:21px;
z-index:2;
left: 381px;
top: 31px;
font-family: Verdana, Geneva, sans-serif;
font-weight: bold;
font-size: 12px;
color: #FFF;
}
#apDiv3 {
position:absolute;
width:55px;
height:21px;
z-index:3;
font-family: Verdana, Geneva, sans-serif;
font-weight: bold;
font-size: 12px;
left: 496px;
top: 30px;
color: #FFF;
}
#apDiv4 {
position:absolute;
width:40px;
height:22px;
z-index:4;
font-weight: bold;
font-family: Verdana, Geneva, sans-serif;
font-size: 12px;
color: #FFF;
left: 628px;
top: 19px;
}
#apDiv5 {
position:absolute;
width:42px;
height:21px;
z-index:5;
font-family: Verdana, Geneva, sans-serif;
font-size: 12px;
font-weight: bold;
left: 749px;
top: 31px;
color: #FFF;
}
#apDiv6 {
position:absolute;
width:87px;
height:17px;
z-index:6;
font-family: Verdana, Geneva, sans-serif;
font-size: 12px;
font-weight: bold;
left: 851px;
top: 32px;
}
#apDiv7 {
position:absolute;
width:65px;
height:23px;
z-index:7;
font-size: 12px;
font-family: Verdana, Geneva, sans-serif;
font-weight: bold;
color: #FFF;
left: 985px;
top: 31px;
}

a {
color: white;
text-decoration: none;
}

a:hover {
text-decoration: underline;
color: white;
}

#apDiv8 {
position:absolute;
width:62px;
height:19px;
z-index:8;
font-family: Verdana, Geneva, sans-serif;
font-size: 12px;
font-weight: bold;
top: 359px;
}
#apDiv9 {
position:absolute;
width:41px;
height:19px;
z-index:9;
font-family: Verdana, Geneva, sans-serif;
font-size: 12px;
font-weight: bold;
left: 1000px;
top: 402px;
}
#apDiv10 {
position:absolute;
width:78px;
height:18px;
z-index:10;
font-family: Verdana, Geneva, sans-serif;
font-size: 12px;
font-weight: bold;
left: 1000px;
top: 445px;
}
#apDiv11 {
position:absolute;
width:650px;
height:115px;
z-index:11;
left: 296px;
top: 330px;
font-family: Verdana, Geneva, sans-serif;
color: #FFF;
}
#Table_01 tr td #apDiv11 p {
font-size: 12px;
}

-->
</style></head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (Untitled-1) -->
<table width="901" height="701" border="0" align="center" cellpadding="0" cellspacing="0" 

id="Table_01">
<tr>
	<td colspan="22">
		<img src="images/index_01.jpg" width="900" height="25" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="1" height="25" alt=""></td>
</tr>
<tr>
	<td colspan="3" rowspan="2">
		<img src="images/index_02.jpg" width="96" height="31" alt=""></td>
	<td>
		<img src="images/index_03.jpg" width="89" height="24" alt="">
		<div id="apDiv2"><a href="index.html">Hjem</a></div></td>
	<td rowspan="2">
		<img src="images/index_04.jpg" width="26" height="31" alt=""></td>
	<td>
		<img src="images/index_05.jpg" width="103" height="24" alt=""></td>
	<td rowspan="2">
		<img src="images/index_06.jpg" width="30" height="31" alt=""></td>
	<td>
		<img src="images/index_07.jpg" width="89" height="24" alt="">
		<div id="apDiv3"><a href="about.html">Om oss</a></div></td>
	<td rowspan="2">
		<img src="images/index_08.jpg" width="24" height="31" alt=""></td>
	<td>
		<img src="images/index_09.jpg" width="105" height="24" alt="">
		<div id="apDiv4">
		  <p><a href="fails.html">Fails</a></p>
		  <p> </p>
		</div></td>
	<td rowspan="2">
		<img src="images/index_10.jpg" width="17" height="31" alt=""></td>
	<td>
		<img src="images/index_11.jpg" width="106" height="24" alt="">
		<div id="apDiv5"><a href="index.html">Wins</a></div></td>
	<td colspan="2" rowspan="2">
		<img src="images/index_12.jpg" width="17" height="31" alt=""></td>
	<td colspan="3">
		<img src="images/index_13.jpg" width="106" height="24" alt="">
		<div id="apDiv6"><a href="kontakt.html">Kontakt oss</a></div></td>
	<td colspan="5" rowspan="2">
		<img src="images/index_14.jpg" width="92" height="31" alt="">
		<div id="apDiv7"><a href="diverse.html">Diverse</a></div></td>
	<td>
		<img src="images/spacer.gif" width="1" height="24" alt=""></td>
</tr>
<tr>
	<td>
		<img src="images/index_15.jpg" width="89" height="7" alt=""></td>
	<td>
		<img src="images/index_16.jpg" width="103" height="7" alt=""></td>
	<td>
		<img src="images/index_17.jpg" width="89" height="7" alt=""></td>
	<td>
		<img src="images/index_18.jpg" width="105" height="7" alt=""></td>
	<td>
		<img src="images/index_19.jpg" width="106" height="7" alt=""></td>
	<td colspan="3">
		<img src="images/index_20.jpg" width="106" height="7" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="1" height="7" alt=""></td>
</tr>
<tr>
	<td rowspan="14">
		<img src="images/index_21.jpg" width="25" height="644" alt=""></td>
	<td colspan="20">
		<img src="images/index_22.jpg" width="848" height="260" alt=""></td>
	<td rowspan="14">
		<img src="images/index_23.jpg" width="27" height="644" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="1" height="260" alt=""></td>
</tr>
<tr>
	<td colspan="20">
		<img src="images/index_24.jpg" width="848" height="20" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="1" height="20" alt=""></td>
</tr>
<tr>
	<td rowspan="12">
		<img src="images/index_25.jpg" width="14" height="364" alt=""></td>
	<td colspan="11" rowspan="10">
		<img src="images/index_26.jpg" width="652" height="307" alt="">
		<div id="apDiv11">
		  <p><strong>Hovedsiden<br>
		  </strong><strong><br>
		  </strong>Du har nå kommet til FailIRL sitt nettsted, 

www.failirl.com!<br>
Vi håper du nyter oppholdet på siden, og at du tar deg selv 5 minutter  til 

å utforske siden litt, for å se på videoer og bilder av alle fails  og wins 

vi legger ut!<br>
Velkommen til den nye siden til FailIRL!</p>
             <p> </p>
             <p><strong>Hjelp oss å bli bedre!<br>
               <br>
             </strong>Vår webdesigner jobber hele tiden med nye løsninger for 

å få deg  til å like siden. Men vi dete klarer vi ikke uten din hjelp! Send 

oss  en tilbakemelding på siden, dette gjøres via kontaktskjemaet. Hjelp oss  

til en bedre og mer brukervennelig side!</p>
             <p><br>
             </p>
		  <p>  </p>
		  <p> </p>
		  <p> </p>
	  </div>
<div id="apDiv1"></div></td>
	<td colspan="8">
		<img src="images/index_27.jpg" width="182" height="20" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="1" height="20" alt=""></td>
</tr>
<tr>
	<td colspan="2" rowspan="11">
		<img src="images/index_28.jpg" width="50" height="344" alt=""></td>
	<td colspan="5">
		<img src="images/index_29.jpg" width="118" height="27" alt="">
		<div id="apDiv8"><a href="nyheter.html">Nyheter</a></div></td>
	<td rowspan="11">
		<img src="images/index_30.jpg" width="14" height="344" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="1" height="27" alt=""></td>
</tr>
<tr>
	<td colspan="5">
		<img src="images/index_31.jpg" width="118" height="13" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="1" height="13" alt=""></td>
</tr>
<tr>
	<td colspan="5">
		<img src="images/index_32.jpg" width="118" height="31" alt="">
		<div id="apDiv9"><a href="arkiv.html">Arkiv</a></div></td>
	<td>
		<img src="images/spacer.gif" width="1" height="31" alt=""></td>
</tr>
<tr>
	<td colspan="5">
		<img src="images/index_33.jpg" width="118" height="13" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="1" height="13" alt=""></td>
</tr>
<tr>
	<td colspan="5">
		<img src="images/index_34.jpg" width="118" height="31" alt="">
		<div id="apDiv10"><a href="sponsorer.html">Sponsorer</a></div></td>
	<td>
		<img src="images/spacer.gif" width="1" height="31" alt=""></td>
</tr>
<tr>
	<td colspan="5">
		<img src="images/index_35.jpg" width="118" height="14" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="1" height="14" alt=""></td>
</tr>
<tr>
	<td rowspan="2">
		<img src="images/index_36.jpg" width="9" height="116" alt=""></td>
	<td colspan="2">
		<img src="images/index_37.jpg" width="82" height="65" alt=""></td>
	<td colspan="2" rowspan="2">
		<img src="images/index_38.jpg" width="27" height="116" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="1" height="65" alt=""></td>
</tr>
<tr>
	<td colspan="2">
		<img src="images/index_39.jpg" width="82" height="51" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="1" height="51" alt=""></td>
</tr>
<tr>
	<td colspan="4" rowspan="2">
		<img src="images/index_40.jpg" width="100" height="60" alt=""></td>
	<td rowspan="3">
		<img src="images/index_41.jpg" width="18" height="99" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="1" height="42" alt=""></td>
</tr>
<tr>
	<td colspan="11" rowspan="2">
		<img src="images/index_42.jpg" width="652" height="57" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="1" height="18" alt=""></td>
</tr>
<tr>
	<td colspan="4">
		<img src="images/index_43.jpg" width="100" height="39" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="1" height="39" alt=""></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="25" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="14" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="57" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="89" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="26" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="103" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="30" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="89" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="24" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="105" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="17" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="106" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="6" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="11" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="39" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="9" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="58" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="24" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="9" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="18" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="14" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="27" height="1" alt=""></td>
	<td></td>
</tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>

 

Har ikke peiling på hva jeg skal gjøre for å fikse dette!

 

Håper på svar!

-Fredrik

Videoannonse
Annonse
Skrevet

Du har 6 feil i W3C-validatoren. Men det har du selvsagt sjekket siden du jobber med å lage nettsider.............? Eller?

 

Dessuten er ikke dokumentet deklarert.

Skrevet
Du har 6 feil i W3C-validatoren. Men det har du selvsagt sjekket siden du jobber med å lage nettsider.............? Eller?

 

Dessuten er ikke dokumentet deklarert.

Har ikke sagt noen om at jeg jobber med webdesign?

Bare en hobby :)

 

Kan du utdype svaret ditt litt mer, slik at jeg kanskje kan gjøre noe endringer? :)

Skrevet

Koden er søppel

 

Du benytter html-tabeller til formatering, spacer.gifs, og absolutt posisjonering av tabell celler. Selvfølgelig benytter du også br-elementet.

 

Skriv om koden

 

Du burde skrive om koden til div-struktur. Formater først mot FF eller noe annet moderne, og så hacker du med conditionals mot IE.

 

Conditionals

 

Hvis siden vises riktig i FF, så er det mest sannsynligvis IE som er problemet. Du kan hacke den koden du har nå med conditinals i css mot IE. Du må da jobbe med hvert tilfelle av bugs hver for seg. Koden din er relativ enkel så det er mest trolig at det er samme problemet ganske mange steder.

 

Kjøp deg en stor kopp kaffe for å holde deg våken. Hacking mot IE krever tid og resurser. Kjøp også plaster. Du kommer til å rive deg i håret og skalle i veggen. IE er ett bevis på at komersialisering er viktigere enn selve produktet.

 

Frode

Skrevet

Generelt sett blir det å lage sider i Dreamweaver som å skrive engelsk stil med Google Translate: Det funker, men resultatet blir ikke nødvendigvis helt topp.

 

Det finnes ikke en løsning på problemene dine, dessverre. Jeg vil anbefale deg å se på hvordan man bruker divs istedenfor tabeller. Tabeller kan fint brukes til, nettopp, tabeller, og bør ikke brukes til layout.

 

Uansett hvor mye du roter med koden DW har gitt deg, tviler jeg på at du vil få samme resultat i alle nettlesere. Lykke til. ;)

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
  • Hvem er aktive   0 medlemmer

    • Ingen innloggede medlemmer aktive
×
×
  • Opprett ny...