Chirurgia cranio-cerebrală minim invazivă
Tehnicile minim invazive impun utilizarea unei tehnologii ultramoderne. Endoscoapele operatorii de diverse tipuri, microscopul operator dedicat, neuronavigația, neuroelectrofiziologia, tehnicile avansate de anestezie, chirurgia cu pacientul treaz reprezintă armamentarium fără de care neurochirurgia prin "gaura cheii" nu ar fi posibilă. Folosind tehnicile de mai sus, tratăm un spectru larg de patologii cranio-cerebrale. www.neurohope.ro |
O idee css pentru 2 coloane
Last Updated: Oct 25 2012 09:55, Started by
gabi3xz
, Oct 18 2012 18:34
·
0
#1
Posted 18 October 2012 - 18:34
Cand am 2 coloane 50% si dispare una din ele as vrea ca cea ramasa sa se intinda la 100%.
Cum as putea sa fac asta? Exemplu: http://jsbin.com/opopap/2/edit |
#2
Posted 19 October 2012 - 11:22
Cum va disparea acea coloana? Prin js? Daca da atunci pune asta in acelasi loc unde se ascunde acel div
$(".col-1").css("width", "100%"); |
#4
Posted 19 October 2012 - 13:21
@w3room: nope, nu merge . In primul rand era vorba de div-uri, nu tabel.
|
#5
Posted 19 October 2012 - 20:06
va disparea prin php
ceva de genu <?php if( $this->countModules('content') ) : ?> <section class="col-1"> Continut </section> <?php endif; ?> <?php if( $this->countModules('sidebar') ) : ?> <section class="col-2"> Sidebar </section> <?php endif; ?> Edited by gabi3xz, 19 October 2012 - 20:07. |
#6
Posted 19 October 2012 - 20:51
Am facut cu jqery
$(document).ready(function() { if ($("#sidebar").length === 0){ $('#box-content').css({"width": "100%"}); } }); |
#7
Posted 20 October 2012 - 07:52
Stai stai stai...
De ce nu pui un else la if-ul cu sidebar-ul in care sa ai style cu .col-1 {width:100%;} ? |
#8
Posted 25 October 2012 - 09:55
<!DOCTYPE html>
<html> <head> <title>Test</title> <script type="text/javascript"> function change(){ var divToHide=document.getElementById("div2"); if(divToHide.style.display=="none"){ divToHide.style.display = "table-cell"; }else{ divToHide.style.display = "none"; } } </script> </head> <body> <div style="display:table;width:100%;height:100px;"> <div style="display:table-row;"> <div id="div1" style="display:table-cell;background-color:red;"> </div> <div id="div2" style="display:table-cell;background-color:blue;"> </div> </div> </div> <button type="button" onclick="change();">Schimba</button> </body> </html> |
Anunturi
▶ 0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users