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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:06:25+00:00 2026-05-28T14:06:25+00:00

I am attempting to put several messages in a thread-like layout. To see the

  • 0

I am attempting to put several messages in a thread-like layout. To see the result of what I have, go here: http://jsfiddle.net/sunjay03/Aykqc/embedded/result/

If you adjust the width of the screen, you will see that the text in the lower message does not layout properly. As well as that, I can’t seem to get the date to always go to the very right of the screen.

Here is the link to the full jsfiddle: http://jsfiddle.net/sunjay03/Aykqc/

Here are some images of what I’d like to happen:
preview with large width
enter image description here

Any help?

  • 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-28T14:06:26+00:00Added an answer on May 28, 2026 at 2:06 pm

    I fiddled around with your fiddle and made this of it:

    http://jsfiddle.net/S7drj/1/

    HTML:

    <div class="messages">
        <div class="message">
            <div class="message-image">
                <img src="http://www.sunjay.ca/images/logo_notext.gif" alt="profile_image">
            </div>
            <div class="message-body">
                <div class="message-name">
                    <span class="message-date">Nov. 15, 2010</span>
                    <h3>John Smith</h3>
                </div>
                <div class="message-text">
                    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
                </div>
            </div>
        </div>
        <div class="message">
            <div class="message-image">
                <img src="http://www.sunjay.ca/images/logo_notext.gif" alt="profile_image">
            </div>
            <div class="message-body">
                <div class="message-name">
                    <span class="message-date">Nov. 15, 2010</span>
                    <h3>Joe Smith</h3>
                </div>
                <div class="message-text">
                    <p>Aliquam commodo dui at mauris tempus eu commodo nunc commodo. Quisque accumsan semper sapien, quis tristique odio egestas ac.</p>
                </div>
            </div>
        </div>
    </div>
    

    CSS:

    body
    {
        margin: 20px;
    }
    
    .message
    {
        padding: 2px;
        margin: 2px;
        clear: both;
        width:100%;
    }
    
    .message .message-image
    {
        padding: 5px;
        float:left;
    }
    
    .message .message-body
    {
    }
    
    .message .message-body .message-name
    {
    }
    
    .message .message-body .message-name h3
    {
    }
    
    .message .message-body .message-text
    {
    }
    
    .message .message-body .message-date
    {
        float: right;
    }
    

    Is that how you want it?

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

Sidebar

Related Questions

Here's a snippet of a script of mine attempting to put extra Unicode awesomeness
Attempting to get Spring internationalization working. I have used classpath:messages basename, created .properties files
I'm attempting to process the body of an HTTP PUT request, but it seems
I'm attempting to put a web service wrapper around several third-party web services. For
I have a web application and I'm attempting to put an ajax timer control
I have a datatable that I am attempting to put drill-downs into based on
I'm attempting to put line breaks in the following method chain in VB.NET, but
I am attempting to put auditing in my application based on properties that have
I'm attempting to put a few drop down menus inside of an a4j:repeat. The
I'm attempting to put together a little mashup with some twitter APIs. However, the

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.