|
-
Aug 28th, 2010, 07:02 PM
#1
Thread Starter
Sleep mode
[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.
-
Aug 28th, 2010, 08:36 PM
#2
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
-
Aug 28th, 2010, 09:10 PM
#3
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.
-
Aug 29th, 2010, 02:56 PM
#4
Thread Starter
Sleep mode
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|