<link rel= "stylesheet" type= "text/css" href= "{{ url_for('static',filename='styles/mainpage.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}">
{% block styles %}
{{super()}}
<link rel="stylesheet"
href="{{url_for('.static', filename='mystyle.css')}}">
{% endblock %}
#link it in html
<link rel= "stylesheet" type= "text/css" href= "{{url_for('static', filename='styles/styles.css') }}">
#place a config for your app so that browser doesn't store cashe, if this doesn't update your css clear browser cash for last {x} hours
if __name__ == '__main__':
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 1
app.run()
#make sure that your directory looks something like this...
|root|
MainFileWithFlaskProgram.py
|static|
|styles|
styles.css
|templates|
YourHTMLFile.html
/app
- app_runner.py
/services
- app.py
/templates
- mainpage.html
/static
/styles
- mainpage.css
Code Example |
---|
Css :: how to not underline links in css |
Css :: poppins cdn |
Css :: disable link using css |
Css :: 2 lines paragraph |
Css :: font awesome after css |
Css :: @media for mobile |
Css :: reset css cdn |
Css :: tachar texto css |
Css :: out transition does not ease |
Css :: prevent enter key submitting a form jquery |
Css :: css circle |
Css :: input date icon color change |
Css :: css target except id |
Css :: how to make horizontal rule dotted |
Css :: how to allow scroll in div |
Css :: list style position |
Css :: smooth transition in and out css |
Css :: jquery css |
Css :: scrollbar change css |
Css :: css width fit to content |
Css :: width 100% with padding |
Css :: media queries on mobile |
Css :: css flex reverse order |
Css :: chrome button black white border |
Css :: background color inline styling |
Css :: how to gain full width of a phone website in html and css |
Css :: css not last of type |
Css :: hiding button border when clicked |
Css :: autofit grid css |
Css :: css change overflow scrollbar |