Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

keeping graphics at the top of a scrolling page

Status
Not open for further replies.

Bassbug

Programmer
Dec 8, 2001
5
GB
Does anyone know how you can keep a graphic at the top of a scrolling page using Javascript.
 
maybe using layers...

Known is handfull, Unknown is worldfull
 
Either using layers or define two <div>'s

<div class=&quot;imgheader&quot;>The graphic here</div>
<div class=&quot;contents&quot;>All the contents here</div>


Now use CSS to have &quot;contents&quot; with a vertical scrollbar.

..... for the layers option you can use the &quot;imgheader&quot; class and just use the absolute/relative properties to position your graphic.(If using this, no need to have the &quot;contents&quot; <div>)






grtfercho çB^]\..
&quot;Imagination is more important than Knowledge&quot; A. Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top