style_text.css
test.php
<link rel="stylesheet" type="text/css" href="style_text.css"> <script src="jquery.js"> (function ($) { $.fn.rotateTableCellContent = function (options) { /* Version 1.0 7/2011 Written by David Votrubec (davidjs.com) and Michal Tehnik (@Mictech) for ST-Software.com */ var cssClass = ((options) ? options.className : false) || "vertical"; var cellsToRotate = $('.' + cssClass, this); var betterCells = []; cellsToRotate.each(function () { var cell = $(this) , newText = cell.text() , height = cell.height() , width = cell.width() , newDiv = $(' <div>', { height: width, width: height }) , newInnerDiv = $(' <div>', { text: newText, 'class': 'rotated' }); newDiv.append(newInnerDiv); betterCells.push(newDiv); }); cellsToRotate.each(function (i) { $(this).html(betterCells[i]); }); }; })(jQuery); $('.dupa2') .rotateTableCellContent({className: 'dupa'}); </script>
Z góry dzięki za pomoc
Wicek