(Oct-28-2016, 02:52 PM)snippsat Wrote: You need a static folder where you place images.
Thank you for the reply, I have the static folder setup and index.html is reading the my css template. But when trying to define the button image in the css template like
#submit { color: #fff; font-size: 0; width: 135px; height: 60px; border: none; margin: 0; padding: 0; background: url("static/images/blueButton.png") 0 0 no-repeat; } #submit:hover { background: url("{{ url_for('static', filename='images/blueButton.png') }}") 0 0 no-repeat; }gives me.
Error:[color=#000000][size=x-small][font=monospace]GET /static/styles/%7B%7B%20url_for('static',%20filename='images/blueButton.png')%20%7D%7D HTTP/1.1" 404 -[/font][/size][/color]
Where as if I add it to the index.html in style tags it works fine.With the %7B%7B%20 stuff being in the error, I'm thinking its got something to do with whitespaces or special characters, so is my syntax off??
submit:hover is the right link im trying above, the submit one I know is wrong it is just me playing trying to get it to work