8000 Started work to improve the prettiness of the button on the front page · pythonanywhere/flask-tutorials@e56bd15 · GitHub
[go: up one dir, main page]

Skip to content

Commit e56bd15

Browse files
committed
Started work to improve the prettiness of the button on the front page
1 parent 67c1eb9 commit e56bd15

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

flask-tutorial-final-result.png

-49 Bytes
Loading

tutorial-1.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,10 @@ Also add the same to the `<div>` that contains the `<form>`.
440440

441441
For the `<textarea>` tag, add `class="form-control"`.
442442

443+
And finally, add a class to the button so that it looks like this:
444+
445+
<input type="submit" class="btn btn-success" value="Post comment">
446+
443447
Go to the tab showing your page, and refresh -- it should look like this:
444448

445449
<img width="500" src="/static/images/flask-tutorial-app-with-dummy-content-styled.png">
@@ -490,7 +494,7 @@ If it looks weird and ugly (or, at least, weirder and more ugly than that screen
490494
<div class="row">
491495
<form action="." method="POST">
492496
<textarea class="form-control" name="contents" placeholder="Enter a comment"></textarea>
493-
<input type="submit" value="Post comment">
497+
<input type="submit" class="btn btn-success" value="Post comment">
494498
</form>
495499
</div>
496500

0 commit comments

Comments
 (0)
0