View previous topic :: View next topic |
Author |
Message |
nel`chee
Joined: 08 Jul 2004 Posts: 2087 Location: Rijeka
|
Posted: 12.07.2004 17:23 Post subject: include file problem |
|
|
kada sam tablicu (koja drzi slike) imala normalno unutar html stranice sve
je bilo kako treba, ali kad sam stavila <--#include file="header.txt" -->
(header.txt sadrzi samo tu tablicu), sada se iznad tog headera pojavi prazan
redak koji u kodu html-a niti kodu txt filea ne postoji!
margine su odredjene u CSS-u na 0, ne znam u cemu je problem... svi ostali
dijelovi koji su includani (footer, navbar) izgledaju normalno...
pliz odgovorite ako znate... |
_________________ ♥ art & design portfolio ♥ free Photoshop brushes stuff ♥ sketchblog ♥ facebook ♥ |
|
Back to top |
|
|
Platypus
Joined: 07 Feb 2004 Posts: 235
|
Posted: 12.07.2004 18:11 Post subject: Re: include file problem |
|
|
jesu li margine u header.txt postavljene na 0? |
|
|
Back to top |
|
|
che.UP mi3.crew
Joined: 07 Sep 2003 Posts: 2320 Location: zagreb
|
Posted: 12.07.2004 18:13 Post subject: |
|
|
daj malo koda prije inkluda, malo koda iz inkluda i malo koda kojeg dobijes na kraju pa cemo probat nac di steka :) |
_________________ UP | TypeTester | Accommodations App
Meni u Firefox-u ne radi AJAX |
|
Back to top |
|
|
nel`chee
Joined: 08 Jul 2004 Posts: 2087 Location: Rijeka
|
Posted: 12.07.2004 22:50 Post subject: |
|
|
Code: | <?html version="4.0" encoding="utf-8"?>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en" "http://www.w3.org/tr/html4/dtd/html40-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>† . . n e l c h e e ' s . † . d u n g e o n . . †</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="../style.css" rel="stylesheet" type="text/css" />
</head>
<body bgcolor="#000000" text="#cccccc" link="#666666" vlink="#666666" alink="#666666">
<!--#include file="header.txt" -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td width="130" background="back.jpg">
<!--#include file="navbar.txt" --> |
ovo je u .shtml fajlu
Code: | <table width=100% border=0 cellpadding=0 cellspacing=0 id="title">
<tr>
<td width="341"> <img src="../images/nelcheetitle_01.jpg" width=341 height=26 alt=""></td>
<td width="100%" rowspan=10 background="../images/nelcheetitle_02.jpg">ova ćelija se rasteže po potrebi weeeee eeeeeee eeeeee eeeeee</td>
<td width="351"> <img src="../images/nelcheetitle_03.jpg" width=351 height=26 alt=""></td>
</tr>
<tr>
<td width="341"> <img src="../images/nelcheetitle_04.jpg" width=341 height=29 alt=""></td>
<td width="351"> <img src="../images/nelcheetitle_05.jpg" width=351 height=29 alt=""></td> |
ovo je pocetak koda header.txt
Code: | <?html version="4.0" encoding="utf-8"?>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en" "http://www.w3.org/tr/html4/dtd/html40-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>† . . n e l c h e e ' s . † . d u n g e o n . . †</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body bgcolor="#000000" text="#cccccc" link="#666666" vlink="#666666" alink="#666666">
<table width=100% border=0 cellpadding=0 cellspacing=0 id="title">
<tr>
<td width="341"> <img src="../images/nelcheetitle_01.jpg" width=341 height=26 alt=""></td>
<td width="100%" rowspan=10 background="../images/nelcheetitle_02.jpg">ova ćelija se rasteže po potrebi weeeee eeeeeee eeeeee eeeeee</td>
<td width="351"> <img src="../images/nelcheetitle_03.jpg" width=351 height=26 alt=""></td>
</tr>
<tr>
<td width="341"> <img src="../images/nelcheetitle_04.jpg" width=341 height=29 alt=""></td>
<td width="351"> <img src="../images/nelcheetitle_05.jpg" width=351 height=29 alt=""></td> |
ovo je malo tog koda kad otvorim u browseru
ja ne vidim problem |
_________________ ♥ art & design portfolio ♥ free Photoshop brushes stuff ♥ sketchblog ♥ facebook ♥ |
|
Back to top |
|
|
maxy
Joined: 07 Sep 2003 Posts: 894 Location: Zagreb
|
Posted: 12.07.2004 22:54 Post subject: |
|
|
zasto u includanim fajlovima imas doctype, <html>, <meta> i <head> tagove i nemas pripadajuce zatvarajuce </html> i </body> tagove?
ja fakat ne bi znao gdje je problem ali daj probaj u includeovima ubit nepotrebne tagove. |
|
|
Back to top |
|
|
nel`chee
Joined: 08 Jul 2004 Posts: 2087 Location: Rijeka
|
Posted: 12.07.2004 23:08 Post subject: |
|
|
tko ima meta html i doctype tagove u includanim? to je ekstrakt iz shtml-a, ovaj srednji je pocetak header.txt
u txt fajlovima nalaze se SAMO tablice, pogle malo bolje...
uostalom nisam cijele kodove uploadala, samo prvih par linija |
_________________ ♥ art & design portfolio ♥ free Photoshop brushes stuff ♥ sketchblog ♥ facebook ♥ |
|
Back to top |
|
|
maxy
Joined: 07 Sep 2003 Posts: 894 Location: Zagreb
|
Posted: 12.07.2004 23:28 Post subject: |
|
|
hm, zbog preglednosti ajde prvo kopiraj kompletni kod shtml filea pa zatim kompletne kodove includeova. |
|
|
Back to top |
|
|
nel`chee
Joined: 08 Jul 2004 Posts: 2087 Location: Rijeka
|
Posted: 12.07.2004 23:59 Post subject: |
|
|
ajde evo
ovo je shtml:
Code: | <?html version="4.0" encoding="utf-8"?>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en" "http://www.w3.org/tr/html4/dtd/html40-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>† . . n e l c h e e ' s . † . d u n g e o n . . †</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="../style.css" rel="stylesheet" type="text/css" />
</head>
<body bgcolor="#000000" text="#cccccc" link="#666666" vlink="#666666" alink="#666666">
<!--#include file="header.txt" -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td width="130" background="back.jpg">
<!--#include file="navbar.txt" -->
</td>
<td width="100%">
<h1>† About this site †</h1>
<h2>blah blah</h2>
</td>
<td width="125" align="right" background="back.jpg">
<!--#include file="sidebar.txt" -->
</td>
</tr>
<tr align="center" valign="top" background="titleback.jpg">
<td colspan="3"><!--#include file="footer.txt" --></td>
</tr>
</table>
</body>
</html>
|
ovo je header.txt:
Code: | <table width=100% border=0 cellpadding=0 cellspacing=0 id="title">
<tr>
<td width="341"> <img src="../images/nelcheetitle_01.jpg" width=341 height=26 alt=""></td>
<td width="100%" rowspan=10 background="../images/nelcheetitle_02.jpg">ova ćelija se rasteže po potrebi weeeee eeeeeee eeeeee eeeeee</td>
<td width="351"> <img src="../images/nelcheetitle_03.jpg" width=351 height=26 alt=""></td>
</tr>
<tr>
<td width="341"> <img src="../images/nelcheetitle_04.jpg" width=341 height=29 alt=""></td>
<td width="351"> <img src="../images/nelcheetitle_05.jpg" width=351 height=29 alt=""></td>
</tr>
<tr>
<td width="341"> <img src="../images/nelcheetitle_06.jpg" width=341 height=30 alt=""></td>
<td width="351"> <img src="../images/nelcheetitle_07.jpg" width=351 height=30 alt=""></td>
</tr>
<tr>
<td width="341"> <img src="../images/nelcheetitle_08.jpg" width=341 height=30 alt=""></td>
<td width="351"> <img src="../images/nelcheetitle_09.jpg" width=351 height=30 alt=""></td>
</tr>
<tr>
<td width="341"> <img src="../images/nelcheetitle_10.jpg" width=341 height=30 alt=""></td>
<td width="351"> <img src="../images/nelcheetitle_11.jpg" width=351 height=30 alt=""></td>
</tr>
<tr>
<td width="341"> <img src="../images/nelcheetitle_12.jpg" width=341 height=33 alt=""></td>
<td width="351"> <img src="../images/nelcheetitle_13.jpg" width=351 height=33 alt=""></td>
</tr>
<tr>
<td width="341"> <img src="../images/nelcheetitle_14.jpg" width=341 height=32 alt=""></td>
<td width="351"> <img src="../images/nelcheetitle_15.jpg" width=351 height=32 alt=""></td>
</tr>
<tr>
<td width="341"> <img src="../images/nelcheetitle_16.jpg" width=341 height=34 alt=""></td>
<td width="351"> <img src="../images/nelcheetitle_17.jpg" width=351 height=34 alt=""></td>
</tr>
<tr>
<td width="341"> <img src="../images/nelcheetitle_18.jpg" width=341 height=28 alt=""></td>
<td width="351"> <img src="../images/nelcheetitle_19.jpg" width=351 height=28 alt=""></td>
</tr>
<tr>
<td width="341"> <img src="../images/nelcheetitle_20.jpg" width=341 height=28 alt=""></td>
<td width="351"> <img src="../images/nelcheetitle_21.jpg" width=351 height=28 alt=""></td>
</tr>
</table> |
ovo je za usporedbu - footer.txt sa kojim nema problema
Code: | <font size="1">layout and contents © of nelchee's dungeon</font> |
ovo je za jos jednu usporedbu s kojoj nema problema - navbar.txt
Code: | <dl id="navigation">
<dt>† Site related †</dt>
<dd>
<ul>
<li><a class="bar" href=#>About</a></li>
<li><a class="bar" href=#>Terms of use</a></li>
<li><a class="bar" href=#>FAQ</a></li>
<li> <a class="bar" href=#>Awards</a></li>
<li> <a class="bar" href=#>Past layouts</a></li>
<li> <a class="bar" href=#>Credits</a></li>
<li> <a class="bar" href=#>Guestbook</a></li>
</ul>
</dd>
<dt>† About me †</dt>
<dd>
<ul>
<li> <a class="bar" href=#>Info</a></li>
<li> <a class="bar" href=#>Morgana LaFay</a></li>
<li> <a class="bar" href=#>Fanlistings</a></li>
<li> <a class="bar" href=#>Contact</a></li>
</ul>
</dd>
<dt>† Gallery †</dt>
<dd>
<ul>
<li> <a class="bar" href=#>Images</a></li>
<li> <a class="bar" href=#>Comics</a></li>
</ul>
</dd>
<dt>† Free downloads †</dt>
<dd>
<ul>
<li> <a class="bar" href=#>Avatars</a></li>
<li> <a class="bar" href=#>Buttons</a></li>
<li> <a class="bar" href=#>Layouts</a></li>
<li> <a class="bar" href=#>Blogs</a></li>
<li> <a class="bar" href=#>Fonts</a></li>
<li> <a class="bar" href=#>Cursors</a></li>
<li> <a class="bar" href=#>Enter signs</a></li>
<li> <a class="bar" href=#>Blinkies</a></li>
<li> <a class="bar" href=#>Wallpapers</a></li>
<li> <a class="bar" href=#>Brushes</a></li>
<li> <a class="bar" href=#>Templates</a></li>
</ul>
</dd>
<dt>† Custom graphics †</dt>
<dd>
<ul>
<li> <a class="bar" href=#>Free graphics</a></li>
<li> <a class="bar" href=#>Sponsored graphics</a></li>
</ul>
</dd>
<dt>† Tutorials †</dt>
<dd>
<ul>
<li> <a class="bar" href=#>HTML</a></li>
<li> <a class="bar" href=#>CSS</a></li>
</ul>
</dd>
</dl>
|
a sad pliz pomagajte |
_________________ ♥ art & design portfolio ♥ free Photoshop brushes stuff ♥ sketchblog ♥ facebook ♥ |
|
Back to top |
|
|
che.UP mi3.crew
Joined: 07 Sep 2003 Posts: 2320 Location: zagreb
|
Posted: 13.07.2004 00:13 Post subject: |
|
|
a sad daj i malo css-a jer ocito trebas maknut body margine pa neces imat taj "prazan red" :) |
_________________ UP | TypeTester | Accommodations App
Meni u Firefox-u ne radi AJAX |
|
Back to top |
|
|
nel`chee
Joined: 08 Jul 2004 Posts: 2087 Location: Rijeka
|
Posted: 13.07.2004 00:32 Post subject: |
|
|
dakle, je li itko procitao moj prvi post u kojem pise da su margine postavljene na NULU?
adj na, NA!
Code: | body {
background-color: #000000;
font-family: Georgia;
font-size: 12px;
line-height: 24px;
color: #FFFFFF;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
scrollbar-arrow-color: #999999;
scrollbar-3dlight-color: #000000;
scrollbar-highlight-color: #333333;
scrollbar-face-color: #000000;
scrollbar-shadow-color: #333333;
scrollbar-darkshadow-color: #000000;
scrollbar-track-color: #000000;
} |
da napomenem, taj prazan red ima centimetar-i-po sigurno, dakle ko da je novi paragraf ili nesto... ono fkt bode u oci..
Last edited by nel`chee on 13.07.2004 00:35; edited 1 time in total |
_________________ ♥ art & design portfolio ♥ free Photoshop brushes stuff ♥ sketchblog ♥ facebook ♥ |
|
Back to top |
|
|
che.UP mi3.crew
Joined: 07 Sep 2003 Posts: 2320 Location: zagreb
|
Posted: 13.07.2004 00:34 Post subject: |
|
|
btw, jel ti se isto desi i kad kopiras tu tablicu direktno u file, bez da inkludas?
da, procito sam al kasno :P nego... daj stavi i padding: 0; u medjuvremenu... a mozes i margin: 0; pa smanjis css za 3 reda :) |
_________________ UP | TypeTester | Accommodations App
Meni u Firefox-u ne radi AJAX |
|
Back to top |
|
|
nel`chee
Joined: 08 Jul 2004 Posts: 2087 Location: Rijeka
|
Posted: 13.07.2004 00:39 Post subject: |
|
|
nel`chee wrote: | kada sam tablicu (koja drzi slike) imala normalno unutar html stranice sve
je bilo kako treba, ali kad sam stavila <--#include file="header.txt" -->
|
ajd budem. e i hvala nisam znala jel to vazi |
_________________ ♥ art & design portfolio ♥ free Photoshop brushes stuff ♥ sketchblog ♥ facebook ♥ |
|
Back to top |
|
|
che.UP mi3.crew
Joined: 07 Sep 2003 Posts: 2320 Location: zagreb
|
Posted: 13.07.2004 00:42 Post subject: |
|
|
erm da :) nesto mi govori da je davno proslo vrijeme za spavanje :) sori :) |
_________________ UP | TypeTester | Accommodations App
Meni u Firefox-u ne radi AJAX |
|
Back to top |
|
|
damir
Joined: 10 Jul 2004 Posts: 49
|
Posted: 13.07.2004 01:27 Post subject: čudni includeovi |
|
|
A da pejstaš dio rendanog koda iz browsera? Jednostavnije je nego u glavi slagati fajlove, pogotovo kad spajaš tablice iz više fajlova. |
|
|
Back to top |
|
|
nel`chee
Joined: 08 Jul 2004 Posts: 2087 Location: Rijeka
|
|
Back to top |
|
|
zytzagoo mi3.crew
Joined: 25 Aug 2003 Posts: 1842 Location: Zagreb, Hrvatska
|
Posted: 13.07.2004 10:54 Post subject: |
|
|
Aj probaj u css dodat nesto tipa:
Code: |
td img {
display: block;
} |
I pocisti si viska pocetni space u svakom td-u u kojem je slika... I probaj staviti ovako:
Code: | <td width="130" background="back.jpg"><!--#include file="navbar.txt" --></td> |
Dakle, da ti je include u istoj liniji sa otvaranjem i zatvaranjem td-a... Jer bi ti inace ovaj include mogao komotno zapocetni newline ili nesto takvo, pa te mozda i to zafrkava...
HTH |
_________________ [+]I[+]am[+]my[+]own[+]religion[+] |
|
Back to top |
|
|
blackduke mi3.crew
Joined: 08 Sep 2003 Posts: 2681 Location: Zagreb
|
Posted: 13.07.2004 10:59 Post subject: |
|
|
jebote work in progress
moved! :) |
|
|
Back to top |
|
|
nel`chee
Joined: 08 Jul 2004 Posts: 2087 Location: Rijeka
|
Posted: 13.07.2004 23:49 Post subject: |
|
|
zytzagoo wrote: | Aj probaj u css dodat nesto tipa:
<cut>
Dakle, da ti je include u istoj liniji sa otvaranjem i zatvaranjem td-a... Jer bi ti inace ovaj include mogao komotno zapocetni newline ili nesto takvo, pa te mozda i to zafrkava...
HTH |
nije pomoglo |
_________________ ♥ art & design portfolio ♥ free Photoshop brushes stuff ♥ sketchblog ♥ facebook ♥ |
|
Back to top |
|
|
kejs
Joined: 14 Jul 2004 Posts: 2
|
Posted: 14.07.2004 08:34 Post subject: |
|
|
ja ne dobijem prazan red
mozda glupo pitanje ali si sigurna da je to tak ?
<link href="../style.css" rel="stylesheet" type="text/css" />
ako nema praznog reda u kodu onda bi problem morao bit kod margina, probaj u shmtl fajlu stavit margine na 0. |
|
|
Back to top |
|
|
nel`chee
Joined: 08 Jul 2004 Posts: 2087 Location: Rijeka
|
|
Back to top |
|
|
|