afish674 Posted September 10, 2012 Share Posted September 10, 2012 I've applied a class to the jQuery UI button call like so: $(".UIbutton").button(); When the .UIbutton class is called on what is traditionally a button element, for example on a <input type="submit"> button then it works fine. However if you apply it onto an anchor like: <a href=\"birthdays.php\" class=\"UIbutton\">Add Another?</a> Then the button takes the full width of the page rather than just matching the size of the text. Does anyone know why it does this and how to get it to adjust to the text width? Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now