The main.css File¶
| Filename | Location | Group | Project/Repository |
|---|---|---|---|
main.css | ./static/css/main.css | application | httpcats |
Why?¶
Just our HTML on its own wouldn't provide for a very pleasant experience when viewing our cat images. That's where the CSS file comes into place - it allows us to format the page to be something useful.
Solution¶
Our CSS is very simple and just makes the rows and columns "functionality" work.
I never wrote it, as the comment at the top states:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | |
I don't know modern CSS very well, so I've adopted work from other people to keep this book moving along. You're welcome to
Committing the Code¶
- Set your working directory to the
application/httpcatsrepository - Create the
static/cssdirectory by usingmkdir:mkdir static/css - Move into the
static/cssdirectory:cd static/css - Save the file as
main.cssand usegit add main.cssto add it to the Git staging area - Use
git commit -am 'making our HTML beautiful'to commit the file to our repository - Push the code to GitLab.com:
git push