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

  • Home
  • SEARCH
  • 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 330703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:42:22+00:00 2026-05-12T09:42:22+00:00

I am working on a comment system and design is my weak area, So

  • 0

I am working on a comment system and design is my weak area, So far though I am getting very close to the look I am going for, my code is below.

There is my CSS code and my div’s that make up the comment section, I have stripped out all the fancy stuff as I am just having n alignment issue and it is present in the below code.

For the comment post there is 2 columns,

Left column will have a user’s photo and names and stuff
Right column will have the comment and the date and some admin stuff

My problem is that I need the contents in both columns to vertically align even
right now the left column is like 1 block space higher then the right column

Can someone please show me or help me to align it the same?

Here is a phot also to show the alignment issue, notice the photo on the left does not align with the text on the right
alt text http://img2.pict.com/4e/fe/9b/1486749/0/screenshot2b16.png

<style type="text/css">
ol.commentlist {
    margin-right:auto;
    margin-left:auto;
    padding: 0;
    list-style-type: none;
    width: 950px;
}
ol.commentlist li {
    float: left;
    margin: 0;
    padding: 10px 10px 10px 10px;
    width: 950px;

}

ol.commentlist li div.photocolumn {
    display: block;
    float: left;
    width: 120px;
}
ol.commentlist li div.commenttext {
    position: relative;
    float: right;
    margin: 0 0 15px 0;
    padding: 0 80px 0 30px;
    min-height: 53px;
    width: 700px;
    border-left: 1px solid #dfe5e7;
    overflow: hidden;
}
</style>



<ol class="commentlist">
    <li> 
        <!-- left column of the comment for user photo -->
        <div class="photocolumn"> 
                A photo goes here
        </div><!-- END left column -->

        <!-- RIGHT column of the comment  -->       
        <div class="commenttext"> 
            <p>02/12/3009</p> 
            <p>Being new to web design, I use to have those same bad habits of starting things directly into photoshop!</p> 
        </div> <!-- END right comment column --> 
    </li>   
</ol> 
  • 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-12T09:42:22+00:00Added an answer on May 12, 2026 at 9:42 am

    It’s the default margins on the paragraph element <p> that is causing you problems.

    Just add:

    div.commenttext p{margin:0;}
    

    And you’ll be fine. Of course, you can tweak the margins if you need a something a bit different.

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

Sidebar

Ask A Question

Stats

  • Questions 261k
  • Answers 261k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Try to avoid complex nested data structures. I believe people… May 13, 2026 at 11:42 am
  • Editorial Team
    Editorial Team added an answer I suggest the adapter pattern. In your case you could… May 13, 2026 at 11:42 am
  • Editorial Team
    Editorial Team added an answer Problems in your string: Unnecessary slash at the beginning (that's… May 13, 2026 at 11:42 am

Related Questions

Please forgive my long question. I have an idea for a design that I
I am working on a comment system on a social network, I am using
Alright, i promised myself i would learn Regex one day.. but today is not
I am working on a program written in Java which, for some actions ,

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.