HTML Section Paging -


how can link header href menu page of section header still on top in inner html.

here header , div menu:

        <img src="img/logo.png" width="65" height="65">     <h1 style="color:#b2bcb1;">bangkit<small>wm</small></h1>      <div id="menu">      <a href="#">about</a>      <a href="#">portofolio</a>      <a href="#">contact</a>      </div>  </header> 

and here section class want linked in href of header menu:

<div class="main">       <section class="page one">         <div class="page-container">             <h2>about me</h2>             <p>fokus untuk mengakhiri karir</p>             <p><small><a href="bangkitwira.com"></a><a href="index2.html">that child</a></small></p>         </div>     </section>        <section class="page two">         <div class="page-container">             <h2>portofolio</h2>             <p>menerangkan pekerjaan web yang sudahberhasil saya buat</p>         </div>     </section>        <section class="page three">         <div class="page-container">             <h2>contact<small> &bull; me</small></h2>             <p>mengapa? karena untuk memudahkan komunikasi diantara kita</p>         </div>     </section>  </div> 

use ids on elements classes.

this link:

<a href="#page_one">about</a> 

will send user div:

<section id="page_one" class="page one">     <div class="page-container">         <h2>about me</h2>         <p>fokus untuk mengakhiri karir</p>         <p><small><a href="bangkitwira.com"></a><a href="index2.html">that child</a></small></p>     </div> </section> 

as aside declaration:

<section class="page three"> 

will give section 2 classes, not one. element can have multiple classes if separated space.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -