Jump to content

[SOLVED] stupid text...


ag3nt42

Recommended Posts

hello all,

 

I'm sure this is an easy question but its driving me frikin nuts..

 

I have a included txt file.. that the owner of the site writes out whatever he wants..

 

Then I display that txt on the home page... My problem is the owner doesn't know html coding and can't format his own text.. and every attempt I have made at auto formatting the text is a goose chase..

 

It works in IE but NOT in FF.. I'm going bonkers over it. Is there a set way of doing this?

 

I'm guessing there must be being that I'm typing into a text field right now.. And once I hit the submit button the text will look exactly as I have just typed it. Thats What I need to happen with My text.

 

thanks for helping,

Ag3nt42

Link to comment
Share on other sites

welcome.txt:

Welcome to CompuTrain Enterprises, Inc.

CompuTrain has been designing and developing Fund Accounting Software since 1994.
We are a privately held corporation located in South Bend, Indiana,just down the
street from the University of Notre Dame.

Our overall purpose is to provide the best possible fund accounting program, support
and training on the market. CompuTrain is committed to providing our customers with
the solutions they need and want.

CompuTrain listens to its customers incorporating their ideas, suggestions and needs
into the software solutions. The end result is a user-friendly program that will save 
you time and money.

Please take a look over our Products  to see some key advantages of our software
and company.



CompuTrain 
Enterprises, Inc.

888-477-4550
574-271-2766
FAX 775-522-3916

P.O Box 8015
South Bend, IN

 

index.php:

<?php
require('header.php');

require('menu/menu.php');

echo("<div class='txt'>");
include('Editable/welcome.txt','r');
echo("</div>");

require('footer.php');
?>

 

compu.css:

/*******************************************/
/** COMPUTRAIN ENTERPRISES INC - CSS FILE **/
/*******************************************/
/**************/
/** MAIN CSS **/
/**************/
body {
margin:auto;
text-align:center;
background-image:url(imgs/silvercoins.png);
color:white;
}
div.container {
margin:auto;
text-align:center;
width:900px;
height:95%;
background-image:url('imgs/background.png');
}
div.header {
background-image:url('imgs/header.png');
background-position:bottom center;
background-repeat:no-repeat;
width:100%;
height:163px;
margin:auto;
text-align:left;
}
img,a{border:none;}
a{color:white;text-decoration:none;}
/**************/
/** MENU CSS **/
/**************/
.menu {
margin:auto;
text-align:center;
display:block;
padding:0;
margin:0;
float:left;
position:relative;
left:20px;
list-style-type:none;
}
.home a:hover {
background-image:url('imgs/button1Over.png');
background-position:bottom center;	
width:130px;
height:45px;
cursor:hand;
float:left;
list-style-type:none;

}
.home {
background-image:url('imgs/button1.png');
background-position:bottom center;	
width:130px;
height:45px;
cursor:hand;
float:left;
list-style-type:none;

}
.products a:hover {
background-image:url('imgs/button2Over.png');
background-position:bottom center;
width:120px;
height:45px;
cursor:hand;
float:left;
list-style-type:none;
}
.products {
background-image:url('imgs/button2.png');
background-position:bottom center;
width:120px;
height:45px;
cursor:hand;
float:left;
list-style-type:none;
}
.services a:hover {
background-image:url('imgs/button2Over.png');
background-position:bottom center;
width:120px;
height:45px;
cursor:hand;
float:left;
list-style-type:none;
}
.services {
background-image:url('imgs/button2.png');
background-position:bottom center;
width:120px;
height:45px;
cursor:hand;
float:left;
list-style-type:none;
}
.news a:hover {
background-image:url('imgs/button2Over.png');
background-position:bottom center;
width:120px;
height:45px;
cursor:hand;
float:left;
list-style-type:none;

}
.news {
background-image:url('imgs/button2.png');
background-position:bottom center;
width:120px;
height:45px;
cursor:hand;
float:left;
list-style-type:none;

}
.downloads a:hover {
background-image:url('imgs/button2Over.png');
background-position:bottom center;
width:120px;
height:45px;
cursor:hand;
float:left;
list-style-type:none;
}
.downloads {
background-image:url('imgs/button2.png');
background-position:bottom center;
width:120px;
height:45px;
cursor:hand;
float:left;
list-style-type:none;
}
.summit a:hover {
background-image:url('imgs/button2Over.png');
background-position:bottom center;
width:120px;
height:45px;
cursor:hand;
float:left;
list-style-type:none;
}
.summit {
background-image:url('imgs/button2.png');
background-position:bottom center;
width:120px;
height:45px;
cursor:hand;
float:left;
list-style-type:none;
}
.contact a:hover {
background-image:url('imgs/button3Over.png');
background-position:bottom center;
width:130px;
height:45px;
cursor:hand;
float:left;
list-style-type:none;

}
.contact {
background-image:url('imgs/button3.png');
background-position:bottom center;
width:130px;
height:45px;
cursor:hand;
float:left;
list-style-type:none;

}
/**********/
/** IMGS **/
/**********/
div.logo {
background-image:url('imgs/logo2.png');
background-repeat:no-repeat;
width:395px;
height:48px;
position:relative;
top:50px;
left:30px;
}
div.img1 {
background-image:url('imgs/img2.png');
width:450px;
height:131px;
position:relative;
left:390px;
top:-40px;
}
/*****************/
/* INDEX CONTENT */
/*****************/
.txt {
white-space:pre;
}

/***************/
/** COPYRIGHT **/
/***************/
div.CopyRight {
font-size: -1;
background-image:url('imgs/backgroundcap.png');
text-align:center;
margin:auto;
height:27px;
background-repeat:no-repeat;
width:902px;
}

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.