Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: HTML page setup

  1. #1
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question HTML page setup

    hello everybody

    this is my first post on the forum, i excuse if im crazy since i am not a professional developer.

    i need one help please
    i am displaying data from the database to web page in plain table format ( no CSS is used )

    (1) in the page setup of the page
    how can make the table headers <th> to appear on each page as per the page setup

    expecting any sort of help

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Quote Originally Posted by make me rain View Post
    i am displaying data from the database to web page in plain table format ( no CSS is used )
    You should be using CSS - that's how you define what the page is supposed to look like.

    Quote Originally Posted by make me rain View Post
    (1) in the page setup of the page
    how can make the table headers <th> to appear on each page as per the page setup
    By including them in the appropriate spot in the HTML.

    I have an example table on http://www.felgall.com/xtutt09.htm that shows you where all the tags in a table go and how they can be used.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #3
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Quote Originally Posted by felgall View Post
    ...By including them in the appropriate spot in the HTML...
    Isn't the <thead> element supposed to repeat on each page by default? Just using a <thead> for the header and a <tbody> for the data should handle this by default, if I remember correctly.
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #4
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Quote Originally Posted by Rowsdower! View Post
    Isn't the <thead> element supposed to repeat on each page by default? Just using a <thead> for the header and a <tbody> for the data should handle this by default, if I remember correctly.
    When printing that is what is supposed to happen. I am not sure how many browsers have actually implemented it properly yet though - it's a few years since I last checked and support at that time was almost non-existent.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •