Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 08-05-2009, 07:33 PM SSI/ shtml
Average Talker

Posts: 21
Name: Robert Culos
Trades: 0
Hi - My code is not producing the .txt file I'm asking it to. Any help?

<div class="maintext">
<h3>News:</h3>
<div style="font-size:12px">

<!--#include file="news.txt" -->

</div>
</div>


Thanks!
rmculos is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-05-2009, 07:42 PM Re: SSI/ shtml
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Did you give the div any dimensions ?
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-05-2009, 08:30 PM Re: SSI/ shtml
Banned

Posts: 315
Name: Doug
Trades: 1
Is your text file in the same directory as the file calling it.
If not you need more of a path statement than what you are showing.
marketingman100 is offline
Reply With Quote
View Public Profile
 
Old 08-05-2009, 09:04 PM Re: SSI/ shtml
Average Talker

Posts: 21
Name: Robert Culos
Trades: 0
I"m not sure how to specify dimensions LadyNRed.

Here's the whole page:

<body class="body">
<br />
<div id="container">
<div id="mainContent">
<div class="logo"><a href="index.html"><img src="images/logo.jpg" width="181" height="163" border="0" /></a></div>
<div class="menu"><a href="why-and-how.html" class="menu2">WHY &amp; HOW</a> | <a href="services.html" class="menu2">SERVICES</a> | <a href="about.html" class="menu2">ABOUT</a> | <a href="faq.html" class="menu2">FAQ</a> | <span style="color:#036">NEWS</span> | <a href="reviews.html" class="menu2">REVIEWS</a></div>
<img src="images/contact_arrow.gif" width="41" height="37" border="0" class="arrow" />
<div class="contact"><a href="contact.html" class="menu2"><strong>CONTACT US</strong></a></div>
<div class="line">&nbsp;</div>
<div class="headerpic"><img src="images/header.jpg" width="630" height="152" border="0" /></div>
<div class="line2">&nbsp;</div>
<div class="rightbig">The <span class="darkblue">latest</span> <br />updates.</div>
<br /><br />

<div class="maintext">
<h3>News:</h3>
<div style="font-size:12px; margin-top: 10px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px;">

<!--#include file="news.txt"-->

</div>
</div>

<div class="line3">&nbsp;</div>
<div class="footer"><span class="footer2"> Copyright &copy; 2009 Mind Over Matter Organizing</span><br />
Website designed by <a href="http://www.lesstrue.com" title="Less True Labs - www.lesstrue.com">Less True Labs</a>
<br />
<br />
</div>
<div class="footer2"></div>
<div class="foot">&nbsp;</div>

</div>
</div>

</body>
</html>
rmculos is offline
Reply With Quote
View Public Profile
 
Old 08-05-2009, 09:28 PM Re: SSI/ shtml
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
<div style="font-size:12px; margin-top: 10px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px;">
Add height: xxpx and/or width: xxpx to all that, but you really should put all that styling in an external css file.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-05-2009, 09:45 PM Re: SSI/ shtml
Average Talker

Posts: 21
Name: Robert Culos
Trades: 0
I tried that and still nothing. The .txt file is in the same directory as the shtml.

Also, I have a CSS sheet but don't know where to call it:

It's here:

@charset "utf-8";
body { font: 100% Arial, Helvetica, sans-serif;background:#DDF0F7;margin:0;padding:0;text-align:center;color:#000000; }
a { text-decoration:none; }
.body #container { width: 1024px;background:#ffffff;margin:0 auto;text-align:left; background-image:url(images/background.jpg); background-repeat:repeat-y; }
.body #mainContent { padding-left:20px }
.logo { padding-left:20px; padding-right:20px; padding-top:20px; }
.menu { color:#999; margin-left:485px; margin-top:-180px; word-spacing:5px }
.menu2 { color:#999; }
a:hover.menu2 { color:#036 }
.arrow { margin-left:830px; }
.contact { margin-left:878px; margin-top:-30px; font-size:16px; }
.line { width: 1000px; height:1px; background-color:#CCC; margin-top:140px; margin-left:5px }
.line2 { width: 1000px; height:1px; background-color:#CCC; margin-top:5px; margin-left:5px }
.line3 { width: 1000px; height:1px; background-color:#CCC; margin-top:30px; margin-left:5px }
.headerpic { margin-left:25px; margin-top:5px }
.rightbig { font-size:40px; color:#999; width: 300px; margin-left:680px; margin-top:-130px; font-weight:bold; }
.darkblue { color:#036 }
h3 { color:#036 }
h3.why { color:#036; font-size:18px}
.text { padding-left:250px; width:380px; margin-top:-150px; font-size:18px; color:#036 }
.maintext { padding-top:-20px; padding-left:30px }
.check { margin-left:550px; margin-top:-270px }
.checktext { width:410px; margin-left:560px; margin-top:-400px; color:#999 }
strong { color:#036 }
.footer {
font-size:10px;
padding-left:25px;
padding-top:5px;
margin-bottom:20px
}
.footer2 {
font-size:10px;
margin-left:0px;
margin-top:-40px
}
.foot {
height:10px
}
li.pad { padding-bottom:20px }
.about { margin-left:50px; margin-top:100px; }

Thanks so much!
rmculos is offline
Reply With Quote
View Public Profile
 
Old 08-05-2009, 11:48 PM Re: SSI/ shtml
The-Pixel's Avatar
I <3 Pixel's

Posts: 888
Name: Lindi Wheaton
Location: In Photoshop
Trades: 0
hmmm interesting... Are you absolutely sure the '.txt file is in the same directory as the shtml'? Perhaps you are looking at a different section by mistake?
__________________
The-Pixel

Please login or register to view this content. Registration is FREE
:: iPhone Apps, Pre-Made Templates, Widgets, Menus, etc.

Please login or register to view this content. Registration is FREE
:: Web Design / Development, Business Cards, Logo Designs, etc.
The-Pixel is offline
Reply With Quote
View Public Profile Visit The-Pixel's homepage!
 
Old 08-06-2009, 07:46 AM Re: SSI/ shtml
Banned

Posts: 81
Location: kavoir.com
Trades: 0
First of firsts, can you make sure if the server is running the HTML file containing all those code you posted as SSI? I mean, are you sure the SSI directive is being parsed at all?
yangyang is offline
Reply With Quote
View Public Profile Visit yangyang's homepage!
 
Old 08-06-2009, 10:45 AM Re: SSI/ shtml
Banned

Posts: 315
Name: Doug
Trades: 1
Well, if you aren't calling your CSS properly, most of your page is not going to display properly. You need to do some reading on how to implement SSI's and CSS.
There are thousands of articles on both topics all over the web.

Then if they still aren't working........the folks here will jump right in.

or you can go into marketplace on this web site and hire someone to help you.
marketingman100 is offline
Reply With Quote
View Public Profile
 
Old 08-06-2009, 04:16 PM Re: SSI/ shtml
Average Talker

Posts: 21
Name: Robert Culos
Trades: 0
Thanks all - it's working now, not sure what I did/didn't do before.
rmculos is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to SSI/ shtml
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.67009 seconds with 12 queries