0

I'm developing a website that uses jquery tabs+standard ui theme, and I'd like to change/override the font settings (size) of the ui theme. Though I looked at related sites Easy way to overwrite basic jQuery-UI css?, http://api.jqueryui.com/tabs/, http://api.jqueryui.com/theming/css-framework/ I cant get it worked.

Pls your help.

Here's what I have now (simplified code):

<style>
  #ui-tabs-div.ui-widget {font-size: 10px} /* this is not working */
</style>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js" >    </script>   

<script type="text/javascript">
  $(function() {
   $( "#tabs" ).tabs();
  }
</script>

<div id="tabs"> </div> <!--tab contents here -->
0

2 Answers 2

1

http://jsfiddle.net/AHXwv/

 #tabs.ui-widget {font-size: 10px}
Sign up to request clarification or add additional context in comments.

Comments

0

Try to add an ID before the class to overwrite the default css:

#myId .ui-widget {
    font-family: Verdana,Arial,sans-serif;
    font-size: 1.1em;

}

1 Comment

thnx. I assume myId should be 'tabs' in my case as also suggested by arun (?)

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.