Hi there! I wasn't here from a long time and i wanna debate a little problem. Since the forum is really big i hope i posted in the right section and the problem wasn't debate until now..
So i'm a beginer in html/css stuff and i have a problem: i just created a menu but i don't know how to connect the menu with the "container". I divided the whole site in divs. At the moment i have 3 divs: Banner, Menu and container..the thing is: how can i connect the web pages with the menu without writing whole site in 1000 html pages (suposing that my site will have a big number of html pages, i want to have the banner, the footer and the rest code write in a single html page....and in the rest html pages to write just the necesary code, without the banner and the footer again).
example:
index.html:
HTML Code:
<html>
<head>
<meta tag bla bla>
</head>
<body>
<div class=banner>
img a href...
</div>
<div class=menu>
<ul>
<li><a href="index.html>HOME</a></li>
<li><a href="videos.html">VIDEOS</a></li>
</ul>
</div>
<div class=footer>
img a href..
</div>
</body>
</html>
</code>
and the videos.html:
<html>
<head>
</head>
<body>
<div class=container>
here we post the videos.
</div>
</body>
</html>
I hope u understand what i want..in the videos.html i dont wanna write again the footer and the rest page..just the important content.
I tried before with frames, but i dont like because the top frame (where the menu we supose it it) it remain fixed..and the main frame is scrolling..and i want all page to scrol down/up not just the main frame..and anyway i thing it is an old method..better with divs
Well i hope u understant my problem..and sorry for my enghlish 
Last edited by chrishirst; 12-19-2009 at 02:14 PM..
|