]> source.dussan.org Git - jquery-ui.git/commitdiff
Progressbar demo (label): Use absolute positioning for the label. Fixes #9163 - Progr...
authorScott González <scott.gonzalez@gmail.com>
Mon, 18 Mar 2013 17:05:57 +0000 (13:05 -0400)
committerScott González <scott.gonzalez@gmail.com>
Mon, 18 Mar 2013 17:05:57 +0000 (13:05 -0400)
demos/progressbar/label.html

index 3e669ba4a230276acd8e3e6916e749cb9fc43028..a1e16cb71839c82dea806e76abbe7032d43436c7 100644 (file)
        <script src="../../ui/jquery.ui.progressbar.js"></script>
        <link rel="stylesheet" href="../demos.css">
        <style>
+       .ui-progressbar {
+               position: relative;
+       }
        .progress-label {
-               float: left;
-               margin-left: 50%;
-               margin-top: 5px;
+               position: absolute;
+               left: 50%;
+               top: 4px;
                font-weight: bold;
                text-shadow: 1px 1px 0 #fff;
        }