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

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.