Jump to content

Saving/Editing text to display


bravo81

Recommended Posts

Hi everyone,

 

Im trying to display text on this page:

www.southernheavenflorida.com/newshf/

 

But I want it to be editable, I have set it up and it works using a MySQL DB.

 

It only sits on one line, no new line, <br> /n etc.

 

I want an easyer way to do it as this is getting harder everytime i try to fix it.

 

Any suggestions? tutorials? would be appreciated!

 

I was thinking about just saving to a .txt file.

 

Of course, im not a PHP pro and only know what I have learnt my self.

 

Regards,

 

Dean.

Link to comment
https://forums.phpfreaks.com/topic/107420-savingediting-text-to-display/
Share on other sites

Seems to me you could code in some CSS to keep everything limited to a certain size. Try something like this:

 

Add a class to your div containing the content

<div align="center" class="content">
Welcome
<br>
Welcome to Southern Heaven Florida! ...

 

and add something like this in the head tags of your HTML

 

<style type="text/css">
<!--
.content {
margin:auto;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
width:500px;
text-align:justify;

}
-->
</style>

 

BTW your source code has this at the top - you should delete it.

 

<html>

<head>

<link href="../style.css" rel="stylesheet" />

</head>

<body>

</body>

</html>

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.