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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:49:25+00:00 2026-05-23T07:49:25+00:00

I seem too be having a strange problem. I have a django app that

  • 0

I seem too be having a strange problem.

I have a django app that can crate a note from a form. All of these notes that are entered from this form are stored in a table list. Like so.

<div style="overflow:auto; height:100px; width:721px; padding:12px; border:1px solid #C0C0C0">
{% for note in notes %}
        <table style="border:1px solid #C0C0C0">
        <tr><th >{{note.datetime}} {{note.datetime.time}} - Posted by {{note.user}}</th></tr>
        <tr><td>{{ note.note}}</td></tr>
        </table>
{% endfor %}
</div>

As you can see, the first row will print the username, date and time. The second row produces that note. The problem is if I crate a note that has a very long length, (many words) the first row starts moving more to the right. I do not want this to happen. How can I stop the header row to stay on the left, no matter how many words & letters you enter for notes?

  • 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-23T07:49:26+00:00Added an answer on May 23, 2026 at 7:49 am

    By default a th will center it’s text. So you should left align it instead:

    <tr><th style="text-align: left">{{note.datetime}} {{note.datetime.time}} - Posted by {{note.user}}</th></tr>
    

    Of course I am also obliged to tell you that adding style attributes to tags like this should be avoided. Really your css should exist in a separate file, but obviously that doesn’t help with your existing problem.

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

Sidebar

Related Questions

I'm having an error I can't seem to get past. I have a simple
I'm having a problem generating dynamic links to items from my code. Code that
I am new to Git and I seem to have one branch too many
Seem to be having an issue with std::auto_ptr and assignment, such that the object
I'm working on a Windows Phone app and am having the following problem. I
Having a problem at the moment that many of my pages load [using GooglePageSpeed]
Been reading/searching but can't seem to figure out how to do this without having
I am trying to return a variable from onreadystatechange and seem to be having
I seem to have a problem, I have a growing business to run but
It doesn't seem like it would be too hard to implement in assembly. gcc

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.