I just finished my random quote generator. It took way too long and I honestly don’t feel like I really grasp the concept of working with APIs yet, but I’m hoping that will come soon…
Anyway, I was wondering if I could get some feedback from you guys and gals. I’m not very confident about the “efficiency” of my code (if one can call it that), so any comment in that regards are very much appreciated.
Hey @plasticookies
First of all the quote machine is well done, good work.
Second, I checked out your code and fixed the issues so let me explain
That happens because padding does not matter here, padding is INSIDE the button but you want it to not stack here you need MARGIN (outside the buttons) now I added margin to you col-sm-3 because the button was surrounded by it check this code:
/adds 5px margin on top of buttons/
.col-sm-3{
margin-top: 5px;
}
As for the second problem: you added the " background: #356f64;" to both hover and FOCUS, you don’t want for the focus to darken the color so what I did was:
now there is another tricky part if you do what I did above the tweet button still be focused, why? because of its a link inside a button so you need to customize the link as well like this:
/* set*/
a:visited {
background: transparent;
}
now if you come back from twitter new tab and just move the mouse with no need of clicking the twitter button will revert back to its normal style