html - Pasted text at the top of page -


i want add pasted text (that text goes down when user goes down of page, etc.) @ top of page, when haven't got enabled javascript, :

enter image description here

how ? there way using javascript or html ? want not use jquery, because don't know language good.

@edit : sorry, error - cannot use javascript if user doesn't have js enabled :)

this sample how can make info bar so:

html:

<noscript><div id="noscript"><p>no javascript</p></div></noscript> 

css:

div#noscript {      margin: 0 auto;      width: 100%;      padding: 10px 0;      position: fixed;      top: 0;      background: red;     z-index: 99999; }  div#noscript p {       text-align: center;     color: white; } 

here jsfiddle


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -