Gå til innhold

Legger til <!DOCTYPE.. og overflow funker ikke


Anbefalte innlegg

Hei.

 

Så snart jeg legger til enten

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

 

eller

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

 

eller noen andre for den del, så funker ikke overflow: auto'en lenger.

Tar jeg de vekk igjen, funker det som det skal.

 

Noen tips? Takk på forhånd.

Lenke til kommentar
Videoannonse
Annonse
Har du en link til den siden du har problemer med?

 

 

URL = "link"

Jeg har ikke lagt den ut noen plass nei. Har akkurat begynt å lage den. Men er det koden dere vil se på, så er den her;

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<link rel="stylesheet" type="text/css" href="style.css"/>

<title>alexhardware.net</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<!-- ImageReady Slices (design.psd) -->

<table id="Table_01" width="701" height="651" border="0" cellpadding="0" cellspacing="0">

<tr>

  <td rowspan="18">

   <img src="images/design_01.jpg" width="21" height="650" alt=""></td>

  <td colspan="12">

   <img src="images/design_02.jpg" width="651" height="136" alt=""></td>

  <td rowspan="18">

   <img src="images/design_03.jpg" width="28" height="650" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="1" height="136" alt=""></td>

</tr>

<tr>

  <td rowspan="16">

   <img src="images/design_04.jpg" width="5" height="486" alt=""></td>

  <td colspan="2">

   <img src="images/design_05.jpg" width="81" height="24" alt=""></td>

  <td colspan="3">

   <img src="images/design_06.jpg" width="110" height="24" alt=""></td>

  <td>

   <img src="images/design_07.jpg" width="154" height="24" alt=""></td>

  <td>

   <img src="images/design_08.jpg" width="99" height="24" alt=""></td>

  <td>

   <img src="images/design_09.jpg" width="97" height="24" alt=""></td>

  <td colspan="2">

   <img src="images/design_10.jpg" width="101" height="24" alt=""></td>

  <td rowspan="16">

   <img src="images/design_11.jpg" width="4" height="486" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="1" height="24" alt=""></td>

</tr>

<tr>

  <td colspan="10">

   <img src="images/design_12.jpg" width="642" height="5" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="1" height="5" alt=""></td>

</tr>

<tr>

  <td colspan="4">

   <img src="images/design_13.jpg" width="115" height="19" alt=""></td>

  <td colspan="5" rowspan="13" background="images/design_14.jpg"><div align="left" style="height: 384; overflow: auto"><p>s</p>

    <p>s</p>

    <p>s</p>

    <p>s</p>

    <p>s</p>

    <p>s</p>

    <p>s</p>

     <p>s</p>

     <p>s</p>

     <p>s</p>

     <p>s</p>

     <p>s</p>

     <p>s</p>

     <p>s</p>

     <p>s</p>

     </div></td>

  <td rowspan="14">

   <img src="images/design_15.jpg" width="2" height="457" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="1" height="19" alt=""></td>

</tr>

<tr>

  <td rowspan="13">

   <img src="images/design_16.jpg" width="11" height="438" alt=""></td>

  <td colspan="2">

   <img src="images/design_17.jpg" width="91" height="16" alt=""></td>

  <td rowspan="13">

   <img src="images/design_18.jpg" width="13" height="438" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="1" height="16" alt=""></td>

</tr>

<tr>

  <td colspan="2">

   <img src="images/design_19.jpg" width="91" height="16" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="1" height="16" alt=""></td>

</tr>

<tr>

  <td colspan="2">

   <img src="images/design_20.jpg" width="91" height="16" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="1" height="16" alt=""></td>

</tr>

<tr>

  <td colspan="2">

   <img src="images/design_21.jpg" width="91" height="35" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="1" height="35" alt=""></td>

</tr>

<tr>

  <td colspan="2" background="images/design_22.jpg">    </td>

  <td>

   <img src="images/spacer.gif" width="1" height="95" alt=""></td>

</tr>

<tr>

  <td colspan="2">

   <img src="images/design_23.jpg" width="91" height="36" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="1" height="36" alt=""></td>

</tr>

<tr>

  <td colspan="2">

   <img src="images/design_24.jpg" width="91" height="15" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="1" height="15" alt=""></td>

</tr>

<tr>

  <td colspan="2">

   <img src="images/design_25.jpg" width="91" height="17" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="1" height="17" alt=""></td>

</tr>

<tr>

  <td colspan="2">

   <img src="images/design_26.jpg" width="91" height="16" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="1" height="16" alt=""></td>

</tr>

<tr>

  <td colspan="2">

   <img src="images/design_27.jpg" width="91" height="16" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="1" height="16" alt=""></td>

</tr>

<tr>

  <td colspan="2">

   <img src="images/design_28.jpg" width="91" height="17" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="1" height="17" alt=""></td>

</tr>

<tr>

  <td colspan="2" rowspan="2">

   <img src="images/design_29.jpg" width="91" height="143" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="1" height="70" alt=""></td>

</tr>

<tr>

  <td colspan="5">

   <img src="images/design_30.jpg" width="525" height="73" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="1" height="73" alt=""></td>

</tr>

<tr>

  <td colspan="12">

   <img src="images/design_31.jpg" width="651" height="28" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="1" height="28" alt=""></td>

</tr>

<tr>

  <td>

   <img src="images/spacer.gif" width="21" height="1" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="5" height="1" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="11" height="1" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="70" height="1" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="21" height="1" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="13" height="1" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="76" height="1" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="154" height="1" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="99" height="1" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="97" height="1" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="99" height="1" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="2" height="1" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="4" height="1" alt=""></td>

  <td>

   <img src="images/spacer.gif" width="28" height="1" alt=""></td>

  <td></td>

</tr>

</table>

<!-- End ImageReady Slices -->

</body>

</html>

Endret av alex100
Lenke til kommentar
kildekode er alltid smart å ha når man har et programmeringsproblem. Tipper det var det Arve mente.

 

Anbefaler deg forøvrig å laste opp avataren din til avatarbanken til hw, så vi slipper å vente i ti minutter på at den skal lastes...

Oki :)

 

Denne avatarbanken har jeg ikke hørt om, hvor finner jeg den?

Lenke til kommentar
kildekode er alltid smart å ha når man har et programmeringsproblem. Tipper det var det Arve mente.

 

Anbefaler deg forøvrig å laste opp avataren din til avatarbanken til hw, så vi slipper å vente i ti minutter på at den skal lastes...

Oki :)

 

Denne avatarbanken har jeg ikke hørt om, hvor finner jeg den?

Der du redigerer din avatar har det nå kommet en "Last Opp"-funksjon isteden for bare URL-location..

Lenke til kommentar

Har nå lagt til html-taggen (og oppdatert koden over med forandringen), men det funker fortsatt ikke.

 

Edit: Det må vere noe med den doctype-koden, for alt funker så fint, så fint med en gang jeg tar den vekk. Trenger jeg den egentlig?

Endret av alex100
Lenke til kommentar

Litt OT :

 

Bare ville anbefale deg en ting, før du koder for mye.

 

Tables er upraktisk og ut, etter denne artikkelen.

 

Da du akkurat har begynt å kode, kan det være være lurt å kode div/CSS i

stedet for tables ;)

 

Jeg ble overrasket selv over hvor mye bedere det var. :)

Lenke til kommentar

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...