.indentmenu{ font-size:13px; width: 100%; /*leave this value as is in most cases*/ } .indentmenu ul{ margin: 0; padding: 0; float: left; /* width: 80%; width of menu*/ } .indentmenu ul li{ display: inline; } .indentmenu ul li a{ float: left; color: #222; /*text color*/ padding: 5px 11px; text-decoration: none; border: 1px solid #ccc; margin-right:3px; background:#eaeaea; margin-bottom:-1px; } .indentmenu ul li a:visited{ color: #222; } .indentmenu ul li a.selected{ border-right: 1px solid #ccc; color: #222 !important; padding-top: 6px; /*shift text down 1px*/ padding-bottom: 4px; background: #fff; border-bottom: 1px solid #fff; margin-bottom:-1px; float:left; position:relative; } .tabcontentstyle{ /*style of tab content oontainer*/ border: 1px solid gray; width: 450px; margin-bottom: 1em; padding: 10px; } .tabcontent{ display:none; padding:10px; } #pettabs { } #infoboxes { border:1px solid #ccc; margin-bottom:10px; padding-bottom:10px; float:left; width:100%; } @media print { .tabcontent { display:block !important; } }