<?php require_once '../lib/Kendo/Autoload.php'; ?> <div class="wrapper"> <?php $tabstrip = new \Kendo\UI\TabStrip('tabstrip'); $dimensions = new \Kendo\UI\TabStripItem(); $dimensions ->text("Dimensions & Weights") ->selected(true) ->contentUrl('../content/web/tabstrip/ajax/ajaxContent1.html'); $tabstrip->addItem($dimensions); $engine = new \Kendo\UI\TabStripItem(); $engine->text("Engine") ->contentUrl('../content/web/tabstrip/ajax/ajaxContent2.html'); $tabstrip->addItem($engine); $chassis = new \Kendo\UI\TabStripItem(); $chassis->text("Chassis") ->contentUrl('../content/web/tabstrip/ajax/ajaxContent3.html'); $tabstrip->addItem($chassis); // set animation $animation = new \Kendo\UI\TabStripAnimation(); $openAnimation = new \Kendo\UI\TabStripAnimationOpen(); $openAnimation->effects("fadeIn"); $animation->open($openAnimation); $tabstrip->animation($animation); echo $tabstrip->render(); ?> </div> <style> .wrapper { width: 270px; height: 455px; margin: 20px auto; padding: 20px 0 0 390px; background: url('../content/web/tabstrip/bmw.png') no-repeat 40px 60px transparent; } #tabstrip { width: 320px; float: right; margin-bottom: 20px; } #tabstrip .k-content { height: 320px; overflow: auto; } .specification { max-width: 670px; margin: 10px 0; padding: 0; } .specification dt, dd { width: 140px; float: left; margin: 0; padding: 5px 0 7px 0; border-top: 1px solid rgba(0,0,0,0.3); } .specification dt { clear: left; width: 120px; margin-right: 7px; padding-right: 0; text-align: right; opacity: 0.7; } .specification:after, .wrapper:after { content: "."; display: block; clear: both; height: 0; visibility: hidden; } </style>