Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
IE8 gives an error, FF 3.5.5 does not
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<style type="text/css">
dt { display: block; float: left; border-right: 1px solid red; }
<dt>something awesome</dt><dd>1</dd>
<script type="text/javascript" src=""></script>
<script type="text/javascript">
$(document).ready(function() {
var g = $("dl");
function scaleGraph(graph) {
var maxWidth = 0;
graph.children("dt").each(function() {
var width = $(this).css("width").replace(/px/,'');
maxWidth = Math.max(width, maxWidth);
}).css({width: maxWidth+"px"});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment