#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    5
    Rep Power
    0

    Break up a block of text with css


    Hi
    Is there a way to break up a block of text into paragraphs, on the page the html is wrapped like this :
    <font class td>blablablabla</font>

    the css for this class is :
    .td{font-family:Verdana;font-size:12px;font-style:normal;font-weight:normal;font-variant:normal;color:#000000}
  2. #2
  3. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,316
    Rep Power
    7171
    Do you have <p> or <br> tags in the text where you want the breaks to be?
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    5
    Rep Power
    0
    Originally Posted by E-Oreo
    Do you have <p> or <br> tags in the text where you want the breaks to be?
    No there are no p tags the text is added through an admin panel controlled by php then shows up in the font tag on the page. also tried adding <br> and p tag when adding the text in the box but that just shows with the text.
  6. #4
  7. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,316
    Rep Power
    7171
    How do you want to specify where the line breaks fall then?

    It sounds like you need to make a change to your PHP back-end so that you can insert linebreaks or paragraph tags.
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    5
    Rep Power
    0
    Originally Posted by E-Oreo
    How do you want to specify where the line breaks fall then?

    It sounds like you need to make a change to your PHP back-end so that you can insert linebreaks or paragraph tags.
    Yes that is what im thinking but the script for most part is ioncube, but thought it may be possible to add a class to the font tag and if so to write some php to recognize that class and adjust the text accordingly is that possible?.
  10. #6
  11. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,316
    Rep Power
    7171
    It might be possible to add a class to the font tag, and if it is, then you could use PHP to recognize that class and adjust the text in it. The performance would be bad, but for a low traffic site it wouldn't matter. Whether or not you can modify the font tag depends on your system. I don't think CSS is going to help you at all here.
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around

IMN logo majestic logo threadwatch logo seochat tools logo