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 6813899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:37:26+00:00 2026-05-26T20:37:26+00:00

I have a <p> element I want to fix its position, but the text

  • 0

I have a <p> element I want to fix its position, but the text inside it becomes chunked into single words with a newline after every word.

For example:

<div id='daddy_cont'>
<img src='images/default/daddy.png'>
<div id='daddy_comment_cont'>
    <p id='daddy_comment'>Some random text here</p>     
</div>

css:

#daddy_cont {
    z-index: 10;
    position: fixed;
    left: 0px;
    bottom: 0px;
}
#daddy_comment_cont {
    position: absolute;
    left: 140px;
    bottom: 100px;

    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    -khtml-border-radius: 10px;
    border-radius: 10px;

   -moz-box-shadow: 0px 0px 2px #4a4a4a;
   -webkit-box-shadow: 0px 0px 2px #4a4a4a;
   box-shadow: 0px 0px 2px #4a4a4a;    
}
#daddy_comment {
    font-size: 13px;
    line-height: 18px;
    padding: 10px;
    color: #333;
}

But the text comes out like this:

Some
random
text
here

with a newline after every word.

I want the text to not split into single words going down vertically, and at the same time I want the <p> element to have dynamic width, I don’t want to set a fixed with.

  • 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-26T20:37:27+00:00Added an answer on May 26, 2026 at 8:37 pm

    You can add this style on #daddy_comment

    position: relative;
    width: 100%;

    the complete will be:

     #daddy_comment {
         font-size: 13px;
         line-height: 18px;    padding: 10px;
        color: #333;
        position: relative;
        width: 100%; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want to have an element inside a div set to height 100%. The
I have an array MyArray and I want to remove one element at position
I have an element I want to be shown whenever the cursor is moved
I want to have a element that displays in the multiple selection display style
i have some element in my container and want to save all properties of
I have an element in GWT. I want it to float right. I have
I have an element: <select id=row /> I want to append a string to
I have an element, like this: <div id=navleft> </div> I want to make this
Suppose I have an element on my page with id some_id. I want to
With reXml using Ruby, I have a particular element and I want to completely

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.