Jump to content

How to create repeating header & replace table


eugeneg

Recommended Posts

Please point me in the right direction with two questions. 1. I understand that tables are depreciated. What mechanism is best practice for housing four columns that can expand and contract with the width of the browser window ? 2. I would like the same header on each page. How can this be written once and used dynamically so that future changes are reflected on all linked pages ? Thanks.

Link to comment
Share on other sites

1. Make each column a floating div. In CSS, define the width of each column in percents, so they add up to a total of 100%. Note that padding/margins will be added on to these percents, so it's best to apply spacing to internal elements, not to the columns themselves. 2. Use an include file. The tutorial I linked you to shows PHP, but any language supports this.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...