Results 1 to 4 of 4

Thread: [Resolved]HTML Website

  1. #1

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    Resolved [Resolved]HTML Website

    i'm creating html website but i'm worried about consistency across pages(nav , side contents..etc) . In asp.net we have something like masterpage which we create navigation and the whole website skeleton then inherit this page .

    How do you do this in html?
    Last edited by Pirate; Aug 29th, 2010 at 02:57 PM.

  2. #2
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: HTML Website

    Use css! Cascading style sheets hold nearly all (if not all) the information about the display of a website. If you do a search on the forums you should find plenty of examples of how to use css.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  3. #3
    Frenzied Member
    Join Date
    Apr 2009
    Location
    CA, USA
    Posts
    1,516

    Re: HTML Website

    If your server supports it, you can use server side includes:
    Code:
    <!--#include file="header.html" -->
    <!--#include file="nav.html" -->
    Page content...
    <!--#include file="footer.html" -->
    You'd house your header code in header.html, your nav in nav.html, etc. - wherever you've got code that you want to duplicate on each page, use an include.

    I'm not sure why you'd want to go with plain HTML if you already know a superior solution (ASP.Net), however.

  4. #4

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    Re: HTML Website

    I'm not sure why you'd want to go with plain HTML if you already know a superior solution (ASP.Net), however.[/QUOTE]

    for many reasons, the website will contain static data and the hosting can be any linux/windows server with no .net framework requirement.


    thanks guys ..got the idea

Posting Permissions

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



Click Here to Expand Forum to Full Width