bravo81 Posted May 27, 2008 Share Posted May 27, 2008 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 More sharing options...
Pioden Posted May 27, 2008 Share Posted May 27, 2008 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 https://forums.phpfreaks.com/topic/107420-savingediting-text-to-display/#findComment-550659 Share on other sites More sharing options...
bravo81 Posted May 27, 2008 Author Share Posted May 27, 2008 That worked great, thanks Pioden. But I didnt understand why I should delete that bit of code? Whats the purpose of that? Thanks for your help, Dean. Link to comment https://forums.phpfreaks.com/topic/107420-savingediting-text-to-display/#findComment-550688 Share on other sites More sharing options...
Pioden Posted May 27, 2008 Share Posted May 27, 2008 It had no purpose - that's why delete it! It just seemed to be a bit of something left over - and stuff like that can cause chaos if your not careful! Cheers Huw Link to comment https://forums.phpfreaks.com/topic/107420-savingediting-text-to-display/#findComment-550694 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.