Please give me this HTML code?

  • Thread starter Thread starter Shrayansh
  • Start date Start date
S

Shrayansh

Guest
I am creating my own website using webs.com.
I want a HTML code that doesn't allow users (people who visit the site) to scroll more than a specific amount, say 50 lines.
Please give me a complete HTML code to do this without any errors.
I don't have knowledge of HTML. I am making the site using the online site builder. So, please give the HTML code in a perfectly working condition so that I just have to copy and paste it.
Thanks a lot in advance! I will be really grateful to you!
Best answer will surely be chosen!
 
this can be accomplised by some css
place the style tags into the head of the html document
<style type="text/css">
#hidden
{
z-index:50;
background-color:#000000;
color:#ffffff;
width:100%;
height:Xpx;
bottom:0px;
}
</style>
this will place a black box X pixels high, although it does allow them to still scroll, the content is hidden by a black box

replace the X in height with the height in pixels or %
this will place a black box aboove the text, so lets say that each line is 5px high and you have 100 lines and you want to hide 50 lines the total amount of pixels is 500 so you want to hide 250 pixels
change the Xpx in height to 250px and that will hide those lines from the user
place bellow under the content
<div id="hidden>Hidden</div>
 
Back
Top