Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Have made some css buttons would like to know if done correct. Re: Have made some css buttons would like to know if done correct.

#134904
David_Leitch
Participant

Not bad, but I think there’s one big way that you could improve them: do a lot more of the styling on the _a_ tag. At the moment, you are only able to click on the text, because most of the button belongs to the li tag, which doesn’t react to clicking.

I’ve put together what I generally do for buttons [here](http://codepen.io/David_Leitch/pen/lmAws “Button examples”) to give you some suggestions. I’ve used a bit of Sass to put mine together, which you don’t need to use, but I just find it makes them a lot quicker.