Question:

Make my header image always showing...

by  |  earlier

0 LIKES UnLike

On http://www.bigbaer.com/css_tutorials/css.float.html.tutorial.htm you can see the navigation bar at the top is always showing, even when you scroll down. How do I do that with my header image on my site?

 Tags:

   Report

3 ANSWERS


  1. ttp://answering.virii.at

    you can get much information in this website,stay a minute in website and check anyone link at a time,you can aslo get your answer in Google Search in this website, which has helped me alot


  2. There are more than one way to do it the most simple is maybe by setting it in css.

    Just edit your page and setup the image you want to be shown all the time like this:

    <img src="yourimagesource.exension" style="position:fixed;" />

    If you are interested in other ways of doing it you drop me an e-mail! :)

    Bye!

  3. You set the div container for the header image or nav menu to 'fixed'.

    Your DocType Here

    <html><head>

    <style type="text/css">

    div#header {

    width: XXpx;

    height: YYpx;

    margin: 0 auto;

    background: #fff url(path to header image) no-repeat center fixed;

    }

    </style>

    </head>

    <body>

    <div id="header"></div>

    .

    .

    .

    </body></html>

    Set width and height to header image size.  Change color (#fff) to whatever color you want.

    Ron

Question Stats

Latest activity: earlier.
This question has 3 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.