Search and Top Navigation
#4822 closed bug (worksforme)
Opened September 01, 2009 10:07AM UTC
Closed October 27, 2010 07:20PM UTC
Bug While displaying tabs with "sup" html tag
Reported by: | nikos | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.9.0 |
Component: | ui.tabs | Version: | 1.7.2 |
Keywords: | display | Cc: | |
Blocked by: | Blocking: |
Description
Try this
<!DOCTYPE html> <html> <head> <link type="text/css" href="http://jqueryui.com/latest/themes/base/ui.all.css" rel="stylesheet" /> <script type="text/javascript" src="http://jqueryui.com/latest/jquery-1.3.2.js"></script> <script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.core.js"></script> <script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.tabs.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#tabs").tabs(); }); </script> </head> <body style="font-size:62.5%;"> <div id="tabs"> <ul> <li><a href="#fragment-1"><span>On<sup>e</sup></span></a></li> <li><a href="#fragment-2"><span>Two</span></a></li> <li><a href="#fragment-3"><span>Three</span></a></li> </ul> <div id="fragment-1"> <p>First tab is active by default:</p> <pre><code>$('#example').tabs();</code></pre> </div> <div id="fragment-2"> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. </div> <div id="fragment-3"> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. </div> </div> </body> </html>
Attachments (0)
Change History (3)
Changed November 17, 2009 06:01PM UTC by comment:1
description: | \ Try this \ \ {{{ \ <!DOCTYPE html> \ <html> \ <head> \ <link type="text/css" href="http://jqueryui.com/latest/themes/base/ui.all.css" rel="stylesheet" /> \ <script type="text/javascript" src="http://jqueryui.com/latest/jquery-1.3.2.js"></script> \ <script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.core.js"></script> \ <script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.tabs.js"></script> \ <script type="text/javascript"> \ $(document).ready(function(){ \ $("#tabs").tabs(); \ }); \ </script> \ </head> \ <body style="font-size:62.5%;"> \ \ <div id="tabs"> \ <ul> \ <li><a href="#fragment-1"><span>On<sup>e</sup></span></a></li> \ <li><a href="#fragment-2"><span>Two</span></a></li> \ <li><a href="#fragment-3"><span>Three</span></a></li> \ </ul> \ <div id="fragment-1"> \ <p>First tab is active by default:</p> \ <pre><code>$('#example').tabs();</code></pre> \ </div> \ <div id="fragment-2"> \ Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. \ Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. \ </div> \ <div id="fragment-3"> \ Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. \ Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. \ Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. \ </div> \ </div> \ </body> \ </html> \ }}} → Try this \ \ {{{ \ <!DOCTYPE html> \ <html> \ <head> \ <link type="text/css" href="http://jqueryui.com/latest/themes/base/ui.all.css" rel="stylesheet" /> \ <script type="text/javascript" src="http://jqueryui.com/latest/jquery-1.3.2.js"></script> \ <script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.core.js"></script> \ <script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.tabs.js"></script> \ <script type="text/javascript"> \ $(document).ready(function(){ \ $("#tabs").tabs(); \ }); \ </script> \ </head> \ <body style="font-size:62.5%;"> \ \ <div id="tabs"> \ <ul> \ <li><a href="#fragment-1"><span>On<sup>e</sup></span></a></li> \ <li><a href="#fragment-2"><span>Two</span></a></li> \ <li><a href="#fragment-3"><span>Three</span></a></li> \ </ul> \ <div id="fragment-1"> \ <p>First tab is active by default:</p> \ <pre><code>$('#example').tabs();</code></pre> \ </div> \ <div id="fragment-2"> \ Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. \ Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. \ </div> \ <div id="fragment-3"> \ Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. \ Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. \ Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. \ </div> \ </div> \ </body> \ </html> \ }}} |
---|---|
milestone: | TBD → 1.8 |
Changed February 05, 2010 10:34PM UTC by comment:2
+1 for making a fix for this. I was trying to use the ® in a <sup> tag, but it really screws up everything. I'll just be hacking the thing in differently, I suppose.
Changed October 27, 2010 07:20PM UTC by comment:3
resolution: | → worksforme |
---|---|
status: | new → closed |
Using superscript modifies the height of the tab. You can simply increase the line-height of the anchors in your stylesheet and the tabs will become the same size again.
http://jsbin.com/iyecu/edit
CSS problem