Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6756489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:31:48+00:00 2026-05-26T13:31:48+00:00

<div id=textcontent> <center> <br /><p>……….. ARTICLE IN HERE ………</p> </center> </div> #textcontent { margin-right:

  • 0
        <div id="textcontent">
            <center>
            <br /><p>........... ARTICLE IN HERE .........</p>
            </center>
        </div>


#textcontent {  
    margin-right: 25px;
}

#textcontent p {    
    margin-right: -24px;
    width: 663px;
}

ARTICLE IN HERE will display an article posted by user.

Snapshot:

enter image description here

Problem:

A line of an article by pass the side boundries. How can i set specific fixed width so the text gets indented (moved to second line) automatically and doesn’t pass the side borders?

Note: text area height gets expanded automatically as lines of text increase.

Extra Info:

<div id="posted_wrap">
        <div id="posted_middle">
            <div id="posted_top"></div>         
                   <div id="textcontent">
                   <center>
                      <br /><p><?php echo $thread; ?></p>
                   </center>
                </div>
            <br />
            <div id="posted_bottom"></div>
       </div></div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:31:49+00:00Added an answer on May 26, 2026 at 1:31 pm
    #textcontent p {
    margin:0 auto;
    text-align:center;
    width: 663px;
    

    Remove <center> as it’s not needed, and is deprecated. Set your margin of your paragraph tag to have auto (left and right).

    That code works. The code you posted works too – so you may have a positioning or float issue going on above the code you’re struggling with.

    If those black “chalk” lines are a background image you can add:
    padding:0 10px (for example) to your <p> tag to keep the text inside further from the edges.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<div id=posted_wrap> <div id=posted_middle> <div id=posted_top></div> <div id=textcontent> <br /><p>ARTICLE</p> </div> <br /> <div
div#thing { position: absolute; top: 0px; z-index: 2; margin: 0 auto; } <div id=thing>
I have a container div with a fixed width and height , with overflow:
I have around 3 floating div s, 2 left and 1 right, then I
Let say I have this HTML code snippet: <div id=container> <div id=textContent>Text Content Te</div>
I want the the text to randomly appear left, center, or right within the
i have this echo <div class='weather . $cell->textContent .'>; this works fine when textContent
I want the div to be exactly in the center horizontally. I've tried this:
I have a div set up something like this: <div id=test> <p>Hello</p> <p style=display:
I have this code: <div class=small_map_wrapper> <script type=text/javascript>loadMap('44.7958873,20.471077899999954');</script> I will fetch this content with:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.