---
title: HTML and CSS Cheat Sheet
---
This a page that (hopefully) in time will grow to cover the basic and simple HTML and CSS solutions.
Please add to your alternate solutions if you know a different way.
## Making a `
` non scrolling background
```css
#divName {
padding-top: 50px;
height: 500px;
color: #fff;
background-image: url("your_url.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: 100%;
}
```
Try different values to see the how it affects the div and over in the html
```html