• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Anyone know Javascript?

Schmarvin

Cross Industries
NLC
I'm looking to add floating boxes to my layout. Boxes that will float next to the layout on the right, even when scrolling up and down. Anyone know how to do so?
 
You don't need JS for that.

Give me a sec to warm my brain up...

Code:
.floaty-box {
	background-color: #333;
	height: 30px;
	width: 100px;
	position: fixed;
	left: 0px;
	top: 20%;
}

It's
Code:
	position: fixed;

That makes it follow up or down with the window.

Let me know if you need any more help or if you run into problems.
 
Back
Top