News:

Click here for Toll-Free Service for your business starting at $2.00 per month

Main Menu

Help needed in editing index.htm pg

Started by kyoki, December 05, 2005, 01:30:46 PM

Previous topic - Next topic

kyoki

i have a whole different code in my index.htm file and it keeps showing up as something else....some other code that i might have had a while back....and even though i am using m y css file called stylesheet.css it still isnt using any css.....just look at the page http://kyoki-designs.co.nr it looks nothing like the code below should produce:<html>
<head>
<title>::Kyoki Designs::</title>
<link rel="stylesheet" href="stylesheet.css" type="text/css">
</HEAD>
<center>
<body>
<body topmargin=10 leftmargin=0 rightmargin=0>
<table width="600" border="0" cellspacing="0" cellpadding="0" align="center" class="border2">
<tr> <td><img src="top.jpg"></td></tr><tr> <td>

</td></tr><tr> <td>


</td></tr><tr> <td>
<table width="100%" border="0" cellspacing="4" cellpadding="0" class="border0">
<table width="100%" border="0" cellspacing="4" cellpadding="2" name="body">

<!--------------Start Menu Code---------------->
<tr> <td valign="top" width="168">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="border">
<tr><td class="menutop" align="left">Menu</td></tr><tr><td class="menubody">

» <a href="index.htm">Link Here</a><br>
» <a href="index.htm">Link Here</a><br>
» <a href="index.htm">Link Here</a><br>
» <a href="index.htm">Link Here</a><br>
» <a href="index.htm">Link Here</a><br>

</td></tr></table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="border">
<tr><td class="bottom" align="left"></td></tr>
</center></td></tr></table>
<p>


<table width="100%" border="0" cellspacing="0" cellpadding="0" class="border">
<tr><td class="menutop" align="left">Menu</td></tr><tr><td class="menubody">

» <a href="index.htm">Link Here</a><br>
» <a href="index.htm">Link Here</a><br>
» <a href="index.htm">Link Here</a><br>
» <a href="index.htm">Link Here</a><br>
» <a href="index.htm">Link Here</a><br>

</td></tr></table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="border">
<tr><td class="bottom" align="left"></td></tr>
</center></td></tr></table>
<p>

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="border">
<tr><td class="menutop" align="left">Menu</td></tr><tr><td class="menubody">

» <a href="index.htm">Link Here</a><br>
» <a href="index.htm">Link Here</a><br>
» <a href="index.htm">Link Here</a><br>
» <a href="index.htm">Link Here</a><br>
» <a href="index.htm">Link Here</a><br>

</td></tr></table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="border">
<tr><td class="bottom" align="left"></td></tr>
</center></td></tr></table>
<p>



<table width="100%" border="0" cellspacing="0" cellpadding="0" class="border">
<tr><td class="menutop" align="left">Menu</td></tr><tr><td class="menubody">

» <a href="index.htm">Link Here</a><br>
» <a href="index.htm">Link Here</a><br>
» <a href="index.htm">Link Here</a><br>
» <a href="index.htm">Link Here</a><br>
» <a href="index.htm">Link Here</a><br>

</td></tr></table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="border">
<tr><td class="bottom" align="left"></td></tr>
</center></td></tr></table>
<p>


<table width="100%" border="0" cellspacing="0" cellpadding="0" class="border">
<tr><td class="menutop" align="left">Credits</td></tr><tr><td class="menubody">



» Brushes from <a href="http://www.celestial-star.net" target="_blank">Celestial-Star.net</a><br>
</td></tr></table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="border">
<tr><td class="bottom" align="left"></td></tr>
</center>
</td></tr></table><br></td><td valign="top">
<p>

<!--------------End Menu Code---------------->



<!--------------Start Content Code---------------->

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="border">
<tr><td class="menutop" align="left">About the Layout</td></tr><tr><td class="menubody">
My first "working" tables layout. I felt like something new, so I decicided to give the anime a break and hit the celeb genre. Also, Ive just been wanting
to learn how to code a tables layout for ages now. The layout is themed around <b>Madonna</b> because of her new album <i>Confessions on a Dance Floor</i>. God that album <b>!ROCKS!</B>
I havnt stopped listening to it ever since I got it. I geuss you could say this layout is my little tribute to the one and only <i>Madonna</i>.
</td></tr></table><p>

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="border">
<tr><td class="menutop" align="left">Blog</td></tr><tr><td class="menubody">
Less than two days till Im headed off to Scotland. Done alot of shopping in the last few days, im soooo tired =P. Still have to get my hair done and get a
nice outfit for the departure and loads more ofcoarse. Ive also still got loads of shopping to do <b>plus</b>Ive got to meet up with SOOOOOO many friends
before the day is over. Dont get me wrong.....I love them to death <i>ofcoarse</i>.....but isnt this supposed to be relaxing, vacationing and all?!?
Can you believe we still have loads of packing to do, we havnt even started so far. Im sitting here waiting for my mom to wake up so we can get started.
Oh and btw guys, I most likely am not going to be able to update as much as I would like to...not so sure about my brothers internet and whether I can mooch
off of someones wireless with my laptop either. <b>OH</b>did I tell you guys.....I GOT A NEW LAPTOP!!!=P....yeah, a Sony Vaio VGN-FJ170...it is THE BEST!!!=D
</td></tr></table><p>

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="border">
<tr><td class="menutop" align="left">Sitely</td></tr><tr><td class="menubody">
Well seeing as the site just got back....I havnt yet uploaded anything, although Ive got LOADS of layouts, mostly DIV's and Iframes made and most coded....but
on my other comp...which isnt working...so well...=C.But I promise, Ill do my best to add loads to the site k guys.=D

</td></tr></table><p>


<table width="100%" border="0" cellspacing="0" cellpadding="0" class="border">
<tr><td class="menutop" align="left">Qoute</td></tr><tr><td class="menubody">
<i>Time goes by so slowly<br>
For those who wait<br>
No time to hesitate</i><br><br>
<b>Madonna>Confessions on a Dance Floor>Hung up</b>









</td></tr></table><br></td></tr></table></td> </tr><tr><td>


<p class="header">Copyright Kyoki 05-06 | Site Owned by <a href="mailto:mindless008@hotmail.com">Kyoki</a>

</div></td></tr></table></td></tr></table>

</center>
</body></html>

<!--------------End Content Code---------------->


It looks fine when i view offline in my browser but when i put it on here it doesnt look right at all. please help me!

Thank you :)

~Mr-Freeze~

have u removed it off the site then uploaded the new index?

btw wouln't u be better off using a blog script like http://wordpress.org for e.g.

kyoki

how can i remove it off the site

btw, im changing the content.....i only added that so i could see how it looks....my site is for a whole different reason.

but yeah, how can i remove the index off the site....i did delete it and then upload it.....nothing happened.

:)Thank you

Ben

It is possible your browser cache has this page stored. Try clearing your browser's cache and try to view it again.
--Ben
Ben@freepgs.com

~Mr-Freeze~

doul't its a browser catch snice its the 1st time i went to the site  and the code is a diffrent page
in the mannage file udner the Dl click it or lointo the ftp and remove it

admin

Be sure you do not have other index.* files in your directory.  If so, you will need to remove or rename them.

Thank you,
FreePgs.com Admin

sixthcrusifix

I had a similar problem. Well maybe similar. When I trie dto link to my style.css file it no longer showd the backgrounf properties and some other stuff was missing. It kepts showing me old images that I had deleted. if you're linking to a style sheet try including it with PHP instead, this will be better than linking to it with HTML because it's like physically adding the file to your page without the cllutter.


<?php
include("http://yourdomanname.com/stylesheet.css");
?>

and if the CSS file's in the same directory you don't have to include the http: . . . obviously.

This may help if your'e having Cache issues.



in my opinion if you have a constantly changing site you should ALWAYS start every page with :

<?php
Header("Cache-Control:No-Cache");
?>

to prevent the problem. Unfortunatey you should do it from teh start if you simply edit a page your browser might still view the Cached page before you put that header in. I find it interesting that IE sometimes refuses to literaly refresh a page, and even when you push the refresh button you get the Cached page.

Cache is also really spelled Caché because it's French for "to hide" or "to store" More literally it is a noun that means "a hiding place". And I think it's dumb that we always spell it Chache, before I was hip to internet lingo I used to call it "Catch-ee". loll. I still call PNGs "Pee En Gee" s instead of the correct "Ping", but Ping is gay I like Pee En Gee.
Visite me website at http://www.sixthcrusifix.com

webzone (archived)

Including the CSS stylesheet in every page makes your page heavier and uses more bandwidth. This can be troublesome for users on dial-up. Howver, if you only use the <link> tag, the browser can keep a copy of the CSS file in its cache and speed up the page load time. The downside is that you may have to clean your cache if you change your CSS often.

Important : doing an include like this "include("http://yourdomanname.com/stylesheet.css");" will slow down the server. If you use that, PHP will need to lookup the DNS records for your domain name, then it will connect using TCP to the appropriate server (which is itself incidentally) to request the file. In a nutshell, this means that, for each page requested on your website, you will use two server threads simultaneously instead of one.

If you really need to include your CSS in your page, you should use the absolute path to the file (/fpgs/fpgshttpd/username/). This will speed up the process.

Please also note that preventing browsers from caching your pages using the No-Cache header will use more bandwidth.

sixthcrusifix

Quote from: webzone on December 06, 2005, 08:32:59 PM
Including the CSS stylesheet in every page makes your page heavier and uses more bandwidth. This can be troublesome for users on dial-up. Howver, if you only use the <link> tag, the browser can keep a copy of the CSS file in its cache and speed up the page load time. The downside is that you may have to clean your cache if you change your CSS often.

Important : doing an include like this "include("http://yourdomanname.com/stylesheet.css");" will slow down the server. If you use that, PHP will need to lookup the DNS records for your domain name, then it will connect using TCP to the appropriate server (which is itself incidentally) to request the file. In a nutshell, this means that, for each page requested on your website, you will use two server threads simultaneously instead of one.

If you really need to include your CSS in your page, you should use the absolute path to the file (/fpgs/fpgshttpd/username/). This will speed up the process.

Please also note that preventing browsers from caching your pages using the No-Cache header will use more bandwidth.


Before the fire I thought we always had to use /fpgs/fpgshttpd/username/ (Actually before the fire it was drive2/fpgshttd/username [somethign similar]) but now I can inlcude php files without it. I did think of it, that's much better than the other way.

But include shouldn't way your page down too much unless you've got realy big CSS files, and then again you might. I'm just anti-caché and as we head into the 2010's dial up connections get fewer and further between. Taking consideration for dial-up users will be an inconvenience of the past. BUT we're not there yet so I guess you should use the <link> tag like webzone says.


One question, how come this:

<style type="text/CSS">
BODY {background-image:url('BG_TEMP.jpg'); background-attachment:fixed}

</style>

worked fine ON the page but when I used the <link> tag my background dissapeard. I know it wasn't my tag because there was otehr stuf like text colors and link attributes and they all worked, just the background didn't work anymore and the CSS file was in the same directory as the BG_TEMP.jpg and it didn't even work when I included the full URL. I HAD to use include.
Visite me website at http://www.sixthcrusifix.com

webzone (archived)

Files you include using a CSS file (like a background image) are looked up relatively to the stylesheet's path.

To make it simple, if you had placed your CSS in the /style folder, but your page and the image in the root directory, then the browser tried to find the image inside the /style directory and failed.

sixthcrusifix

Quote from: webzone on December 07, 2005, 09:40:24 PM
Files you include using a CSS file (like a background image) are looked up relatively to the stylesheet's path.

To make it simple, if you had placed your CSS in the /style folder, but your page and the image in the root directory, then the browser tried to find the image inside the /style directory and failed.

but that's the thing, both style.css and BG_TEMP.jpeg ARE in the same folder. And like I said it didn't even work when I used http://nebulamystic.com/BG_TEMP.jpg -the whole URL.
Visite me website at http://www.sixthcrusifix.com

webzone (archived)

Really weird... That's a bug for sure.

(edit: fixed spelling mistake)

brainiac744

Correct me if I'm wrong, but in an external stylesheet there's no need for the <style type="text/css">, or the </style> lines. That may be your problem.

Ben

 :o Wow, do you think any other person would have noticed that? lol.

Nice catch! Yeah, you don't need the tags in a .css file. That may even be the whole cause of the problem.

That actually took me a couple minutes to find out where you were getting that from, so I'm going to post it so other people don't get confused. He's referring to http://nebulamystic.com/style.css
--Ben
Ben@freepgs.com

webzone (archived)

I took for granted that the tags weren't in the file. I should have checked before saying that it's a bug!