0

I'm running a flask app and deploying to heroku. I changed a single line of code in a vendor distribution css by applying the style in the needed template page, but this does not work when deployed to heroku, while it works fine in local. I read on precompiling but I couldn't find one for flask.

I am using this scroller. There's an item in it that centers all the elements, namely this:

#amazingcarousel-1 .amazingcarousel-item-container {
        padding: 6px;
        text-align: center;
    }

Testing further it seems like only changing the CSS from my static folder will change the text-align locally, and it seemed to have worked previously in local because I didn't clear the cache. Is there a way I can deploy my static css onto heroku?

2
  • show us your code. Commented Sep 14, 2017 at 16:13
  • updated with details @georgexsh Commented Sep 15, 2017 at 1:54

1 Answer 1

0

I added the following and deployed successfully with my changes.

<div style="text-align:initial;">
    <!--thing I don't want aligned-->
</div>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.