I am finding difficulties to get the data from the api and displaying it.
How can I adjust the container’s width so when I use text-right and text-left on the twitter’s button and New Quote’s button they will fit into the sides of the container’s width? https://codepen.io/simongjetaj/pen/Oxgprw
Any help is very appreciated…
Happy coding, Simon
I haven’t reached the quote machine project yet. But here’s a quick solution to your first problem:
Use format=jsonp instead of format=json and remove http or https from the api links.
About your other problem, I didn’t quite understand the problem. Can you rephrase?
Also, in codepen, the $(document).ready function isn’t needed. That’s not an error, though.
I just wanted the buttons of twitter button and newQuote button to be left and right and not to be in the center… When I try text-right and text-left they move in the respective corners of the bootstrap container div…
Hey. One way to do that would be to wrap the buttons in a div with the same width of your quote’s div and then float the buttons in the opposite directions, like so: