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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:39:30+00:00 2026-05-11T01:39:30+00:00

I am trying to have a table header, in a seperate div stay in

  • 0

I am trying to have a table header, in a seperate div stay in place while a div undernearth is able to scroll al arge list of records. Both divs are in a div named Layer 3. Hereis the css file I am using:

#Layer3 {     position:absolute;     width: 89%;     height: 40%;     left: 10%;     top: 56%;     background-color: #f1ffff; }  #Layer3 h1 {     font-size: medium;     color: #000033;     text-decoration: none;     text-align: center; }  .tableheader { }  .tablecontent {     overflow: auto; } 

and part of the php code I am using to generate the html:

echo '<div id='tableheader' class='tableheader'>';  echo '<h1>{$query} Auctions</h1>' . '\n';  echo '</div>'; echo '<div id='tablecontent' class='tablecontent'>';  echo '<table border='0' width='100%'><tr>' . '\n';   echo '<td width='15%'>Seller ID</td>' . '\n'; echo '<td width='10%'>Start Date</td>' . '\n'; echo '<td width='75%'>Description</td>' . '\n';  echo '</tr>\n';  // printing table rows  foreach ($rows as $row) {     $pk = $row['ARTICLE_NO'];     echo '<tr>' . '\n';       // table contens generated in here      echo '</tr>' . '\n';  } }  echo '</div>'; 

I am not sure what I have missed, but tableheader does not seem to be stationary, or even separate from tablecontent.

  • 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. 2026-05-11T01:39:30+00:00Added an answer on May 11, 2026 at 1:39 am

    div name does not equal div id. #Layer3 is referencing an element with an id of Layer3. Only one element is allowed to have a given id; all ids must be unique.

    Don’t forget to close your tags (table).

    If div#Layer3 is scrolling everything inside it then it has some overflow set. Redefine it to overflow:hidden in the #Layer3 style. You may need to try playing with margins and floats to get things positioned right, but ill leave that to you.

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

Sidebar

Related Questions

I have a table with users and are trying to get a list with
I have the a html structure with table header on which I am trying
I am trying to add a UISearchbar to table header view. I have the
I have a <table> that has a header row. I'm trying to add an
I am trying to have a table like this: Manager Expert Adminis. Staff Dept
I have a table column I’m trying to expand and hide. jQuery seems to
Trying to have my PHP script return some SQL table queries. Here's my script
I have a table structured as following: I'm trying to select the latest handicap
I have a table, trying to figure out how to navigate to the 3.35
I have a table with 4 columns. I'm trying to bulk insert from a

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.