Jump to content

[SOLVED] Paragraph Indent?


twilitegxa

Recommended Posts

Is there a way to ensure that if a user types in multiple paragraphs into a textarea field that it displays an indent for each paragraph when it is displayed from the database?

 

Example (typed into textarea field):

 

Serena is the reincarnation of the Princess of the Moon who, in the 30th century, becomes Neo-Queen Serenity of Crystal Tokyo. She is the daughter of Queen Serenity, a kind and loving mother who ruled the entire universe from the Moon Kingdom during the Silver Millennium. Serena transforms into the Justice Fighter Sailor Moon, the leader of all the Sailor Scouts and one of the most powerful as well. Initially Serena refused to accept her role as Sailor Moon, but eventually realized that she could not escape destiny and embraced her responsibility to humankind. Although Serena possesses many qualities unbecoming her status (she is lazy, clumsy, ditzy, gluttonous, and often apathetic), her heart and soul are pure, and she has sacrificed herself many times for others. Serena may drool over any gorgeous guy she meets, but her heart belongs to Darien (known as Prince Darien of Earth during the Silver Millennium). Darien used to tease Serena about her hairstyle by calling her "meatball head", but later uses the nickname as a term of endearment. In 30th century Crystal Tokyo, Serena rules the Earth as Neo-Queen Serenity with her husband, King Darien.

 

Serena attends Crossroads Junior High School, and is in the eighth grade with Amy and Lita. She lives in Azabu Juuban with her mother Ikuko, father Kenji, brother Sammy, and feline confidante and guardian, Luna.

 

Displayed as:

 

          Serena is the reincarnation of the Princess of the Moon who, in the 30th century, becomes Neo-Queen Serenity of Crystal Tokyo. She is the daughter of Queen Serenity, a kind and loving mother who ruled the entire universe from the Moon Kingdom during the Silver Millennium. Serena transforms into the Justice Fighter Sailor Moon, the leader of all the Sailor Scouts and one of the most powerful as well. Initially Serena refused to accept her role as Sailor Moon, but eventually realized that she could not escape destiny and embraced her responsibility to humankind. Although Serena possesses many qualities unbecoming her status (she is lazy, clumsy, ditzy, gluttonous, and often apathetic), her heart and soul are pure, and she has sacrificed herself many times for others. Serena may drool over any gorgeous guy she meets, but her heart belongs to Darien (known as Prince Darien of Earth during the Silver Millennium). Darien used to tease Serena about her hairstyle by calling her "meatball head", but later uses the nickname as a term of endearment. In 30th century Crystal Tokyo, Serena rules the Earth as Neo-Queen Serenity with her husband, King Darien.

        Serena attends Crossroads Junior High School, and is in the eighth grade with Amy and Lita. She lives in Azabu Juuban with her mother Ikuko, father Kenji, brother Sammy, and feline confidante and guardian, Luna.

Link to comment
Share on other sites

That doesn't help because the two paragraphs are being pulled from one field in a table in my database. So it is displayed as:

 

$biography

 

Do you see what I'm saying?

 

I have the indent property set for my paragraphs already and I even have the variable wrapped in a paragraph tag:

 

<p>$biography</p>

 

It doesn't fix the second paragraph. I was hoping there was a way through PHP I could set it when I display it, like the strtoupper or something like that? Right now I have:

 

$biography = nl2br($posts_info['biography']);

 

That's why I posted it in the PHP forum.

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.