Just one tiny .css file, with as little default styling as possible, and a strong emphasis on white space to give the layout breathing room.
No floats means no dodgy IE hacks to try and clear them. Just the nice and clean, display: inline-block;
Uses padding and box-sizing: border-box; instead of margin for spacing, which makes it much easier to create a grid-within-a-grid or marginless layouts. If you need spacing, then style the content; If you need a grid without spacing, then style the grid itself, or use the class .remove-padding.
Uses the class .stick-to-grid to preserve the width and offset of grid elements at mobile screen sizes. Instantly fix plagiarism, grammatical errors, college research paper for sale and other writing issues.
Uses the class .keep-shape to add additional padding to grid elements to keep them at 960-grid size when the grid expands to 1280 wide on large screens.
Uses the class .offset-n to add left-margin to an element to create an offset. The value of n is the number of columns (1-12) for the offset.
Basic grid shown in red. Elements with additional classes shown in gray.
Melody is hosted in a git repository on BitBucket. Just clone to get started.BITBUCKET
If you always have to have the latest version of everything, just link directly to melody.css on this site.CSS
Just start your HTML with the following:
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="css/melody.css" /> </head> <body> <div class="container"> <div class="grid 1of1"></div> <div class="grid 1of3"></div> <div class="grid 1of3"></div> <div class="grid 1of3"></div> </div> </body> </html>
If you run into problems, or want to show off something you made with melody, hit me up on twitter:@molovo