Monday, November 20, 2017

Styling the page

Styling the page

For my last post I will show a couple different ways to make the website look good, something I haven't covered much of.  To start I created a Django app 
which then creates the following file tree
Next I opened up a bash console and cd'ed into the directory containing manage.py and ran the following commands, running the command tree shows the file tree. 
This creates the the following files 
Then I updated the urls file to include the index.html 
Next I made some changes to index.html, which I created in the style directory.
There's a number of  ways to change the html but one way to to do it is to put everything into a style tag.  The tags for body, h1, h2, h3 etc. all style that specific div on the page.  For this I decided to change the color of the text, centers the text, and then changes the background color of the text which is a like the highlighted color.  You can check it out at jpernick.pythonanywhere.com/.

As always thank you for reading and please post any comments or questions. 

-Joe

No comments:

Post a Comment