@freaky4wrld
Posted
Hey there buddy congratulations on completing the challenge, as far as your queries are concerned here's what you can do..........
-
first of all remove that a tag inside the button, that's the problem that the text "Learn More", shows up when you hover over that, button is complete in itself, it doesn't need <a> tag inside it, you can always use javascript to decide the functionality of the button and it's easily accessible like the <a> tag, follow the code......
<button class="sedan/suv/luxury-btn">Learn More<button>
-
then to resolve your increasing height issue, in your code you have given a
border: none
property to your button and when you are hovering over it you are providing it with new borders asborder: 2px solid white
, that's what is causing the whole problem.....here's what you can do
button{
// add the border to the button with the same background color of your button
border: 2px solid [color-same-as-background-color-of-button];
}
button:hover{
// remove the border property from here and do the same you were doing
}
I hope this clears all your doubt, and makes it easy for you........glad to help!!!
Marked as helpful
@GabrielNoss
Posted
@freaky4wrld Hey buddy I did it as you said and the hover behaves as the challenge asks. Although I don't understand how the white border appears. Anyway, thank you very much, you helped me a lot. PS: English is not my native language.