0

Is it possible to use the jQuery UI library to apply rounded corners to an element on the page? For example, I've applied some CSS to LI tags so that they look more like buttons and float next to each other. Nothing happens when I apply the following classes to the LI: ui-widget ui-state-default ui-corner-all.

Is it that the styles only apply to jQuery UI elements? Thanks.

1
  • 1
    Presumably you have loaded the jQuery UI theme CSS file of your choice. You might want to check that its a full theme and doesn't need the base theme loaded first. Check with Firebug to see what style rules are being applied. Commented Oct 16, 2011 at 14:56

1 Answer 1

1

With jQuery you can apply directly the round corners to your element. You don't need to use jquery ui for that.

$("#elementYouWant").css({
 "-moz-border-radius": "5px"
 "-webkit-border-radius": "5px",
 "-border-radius": "5px"
});
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.