Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
include file problem

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 12.07.2004 16:23    Post subject: include file problem Add user to your forum ignore list Reply with quote

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 portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Platypus



Joined: 07 Feb 2004
Posts: 235

PostPosted: 12.07.2004 17:11    Post subject: Re: include file problem Add user to your forum ignore list Reply with quote

jesu li margine u header.txt postavljene na 0?
Back to top
View user's profile Send private message MSN Messenger
che.UP
mi3.crew


Joined: 07 Sep 2003
Posts: 2320
Location: zagreb

PostPosted: 12.07.2004 17:13    Post subject: Add user to your forum ignore list Reply with quote

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
View user's profile Send private message Visit poster's website
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 12.07.2004 21:50    Post subject: Add user to your forum ignore list Reply with quote

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 Sad

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
maxy



Joined: 07 Sep 2003
Posts: 894
Location: Zagreb

PostPosted: 12.07.2004 21:54    Post subject: Add user to your forum ignore list Reply with quote

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
View user's profile Send private message
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 12.07.2004 22:08    Post subject: Add user to your forum ignore list Reply with quote

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 portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
maxy



Joined: 07 Sep 2003
Posts: 894
Location: Zagreb

PostPosted: 12.07.2004 22:28    Post subject: Add user to your forum ignore list Reply with quote

hm, zbog preglednosti ajde prvo kopiraj kompletni kod shtml filea pa zatim kompletne kodove includeova.
Back to top
View user's profile Send private message
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 12.07.2004 22:59    Post subject: Add user to your forum ignore list Reply with quote

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 &copy; 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 Confused

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
che.UP
mi3.crew


Joined: 07 Sep 2003
Posts: 2320
Location: zagreb

PostPosted: 12.07.2004 23:13    Post subject: Add user to your forum ignore list Reply with quote

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
View user's profile Send private message Visit poster's website
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 12.07.2004 23:32    Post subject: Add user to your forum ignore list Reply with quote

dakle, je li itko procitao moj prvi post u kojem pise da su margine postavljene na NULU? Wink

adj na, NA! Twisted Evil
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 12.07.2004 23:35; edited 1 time in total

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
che.UP
mi3.crew


Joined: 07 Sep 2003
Posts: 2320
Location: zagreb

PostPosted: 12.07.2004 23:34    Post subject: Add user to your forum ignore list Reply with quote

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
View user's profile Send private message Visit poster's website
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 12.07.2004 23:39    Post subject: Add user to your forum ignore list Reply with quote

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


Wink

ajd budem. e i hvala nisam znala jel to vazi Laughing

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
che.UP
mi3.crew


Joined: 07 Sep 2003
Posts: 2320
Location: zagreb

PostPosted: 12.07.2004 23:42    Post subject: Add user to your forum ignore list Reply with quote

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
View user's profile Send private message Visit poster's website
damir



Joined: 10 Jul 2004
Posts: 49

PostPosted: 13.07.2004 00:27    Post subject: čudni includeovi Add user to your forum ignore list Reply with quote

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
View user's profile Send private message Visit poster's website
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 13.07.2004 01:12    Post subject: Add user to your forum ignore list Reply with quote

pa pejstala sam gore O_o
u mom drugom postu u ovom topiku

pa ljudi imam filing da vi uopce ne citate moje postove, sve trebam ponavljat 5 puta

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
zytzagoo
mi3.crew


Joined: 25 Aug 2003
Posts: 1842
Location: Zagreb, Hrvatska

PostPosted: 13.07.2004 09:54    Post subject: Add user to your forum ignore list Reply with quote

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
View user's profile Send private message Visit poster's website Twitter profile
blackduke
mi3.crew


Joined: 08 Sep 2003
Posts: 2681
Location: Zagreb

PostPosted: 13.07.2004 09:59    Post subject: Add user to your forum ignore list Reply with quote

jebote work in progress
moved! :)
Back to top
View user's profile Send private message Visit poster's website Twitter profile
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 13.07.2004 22:49    Post subject: Add user to your forum ignore list Reply with quote

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 portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
kejs



Joined: 14 Jul 2004
Posts: 2

PostPosted: 14.07.2004 07:34    Post subject: Add user to your forum ignore list Reply with quote

ja ne dobijem prazan red Smile
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
View user's profile Send private message
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 15.07.2004 12:39    Post subject: Add user to your forum ignore list Reply with quote

adresa css fajla je tocna.
ne znam, vidjet cu, mislim da cu ispocetka zbog drugih stvari...

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group