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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:48:33+00:00 2026-06-13T08:48:33+00:00

I searched for some solutions in PHP/HTML/CSS for this, but nothing worked so far,

  • 0

I searched for some solutions in PHP/HTML/CSS for this, but nothing worked so far, maybe because in most of those examples were sooo much of code so I got lost in it. Could someone explain to me what I need to do or put some simple sample code here?

  • 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-06-13T08:48:34+00:00Added an answer on June 13, 2026 at 8:48 am

    This code (taken from the link in your comment) is the basic code you need. Next time you need to figure that kind of thing out, just remove segments of code to see what breaks, and leave out everything that doesn’t break something that you need.

    <html>
    <head>
    <style>
    div.tableContainer {
        clear: both;
        border: 1px solid #963;
        height: 285px; /* html>body tbody.scrollContent height plus 23px for the header */
        overflow: auto;
        width: 756px /* Remember to leave 16px for the scrollbar! */
    }
    
    html>body tbody.scrollContent {
        display: block;
        height: 262px;
        overflow: auto;
        width: 100%
    }
    
    
    html>body thead.fixedHeader tr {
        display: block
    }
    
    html>body thead.fixedHeader th { /* TH 1 */
        width: 200px
    }
    
    html>body thead.fixedHeader th + th { /* TH 2 */
        width: 240px
    }
    
    html>body thead.fixedHeader th + th + th { /* TH 3 +16px for scrollbar */
        width: 316px
    }
    
    html>body tbody.scrollContent td { /* TD 1 */
        width: 200px
    }
    
    html>body thead.scrollContent td + td { /* TD 2 */
        width: 240px
    }
    
    html>body thead.scrollContent td + td + td { /* TD 3 +16px for scrollbar */
        width: 316px
    }
    </style>
    </head>
    <body>
    
    <div id="tableContainer" class="tableContainer">
    <table width="100%" cellspacing="0" cellpadding="0" border="0" class="scrollTable">
        <thead class="fixedHeader">
            <tr class="alternateRow">
                <th><a href="#">Header 1</a></th>
                <th><a href="#">Header 2</a></th>
                <th><a href="#">Header 3</a></th>
            </tr>
        </thead>
        <tbody class="scrollContent">
            <tr class="normalRow">
                <td>Cell Content 1</td>
                <td>Cell Content 2</td>
                <td>Cell Content 3</td>
            </tr>
            <tr class="alternateRow">
                <td>More Cell Content 1</td>
                <td>More Cell Content 2</td>
                <td>More Cell Content 3</td>
            </tr>
            .........
        </tbody>
    </table>
    </div>
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have searched and there are some php or flash based solutions, but none
I've searched for an answer and found some c#-examples, but could not get this
I've searched the Internet and have found some good solutions for teeing STDOUT to
I've searched and I found some things about compiling to JARs in Eclipse, but
Searched around on SO for an answer. Found some interesting stuff but I am
I have searched this topic on google a bit and seen some best practices.
Just last week, I was doing some PHP stuff. I worked a little solution
I've searched among jquery selectors for some time now, but can't find any solution
In my php project i should have some background process , but in safe
I have searched many threads so far but cant seem to find a solution.

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.