JavaScript I have a table which created by div problems with width

Table doesn't cover all div, but i give a width in 100%

$("#astana").click(function(){
			$(".t2").toggle(500);
		});
/*---tables---*/
.wrapper {
  margin: 0 auto;
  max-width: 800px;
}

.table {
  margin: 0 0 40px 0;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  display: table;
}

.row {
  display: table-row;
  background: #f6f6f6;
}
.row:nth-of-type(odd) {
  background: #e9e9e9;
}
.row.header {
  font-weight: 900;
  color: #ffffff;
  background: #ea6153;
}
.row.green {
  background: #27ae60;
}
.row.blue {
  background: #2980b9;
}


.cell {
  padding: 6px 12px;
  display: table-cell;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<div class="wrapper">
<div class="table">
<div class="row header">
<div class="cell" id="astana">Астана</div>
</div>
<div class="t2">
<div class="row header blue">
<div class="cell">№</div>
<div class="cell">Ресторан</div>
<div class="cell">Адрес</div>
<div class="cell">Тел. доставки</div>
<div class="cell">Часы доставки:</div>
</div>
<div class="row">
<div class="cell">1</div>
<div class="cell">ТРЦ «КЕРУЕН»</div>
<div class="cell">улица Достык, 9</div>
<div class="cell"></div>
<div class="cell"></div>
</div>
<div class="row">
<div class="cell">2</div>
<div class="cell">ХАН ШАТЫР</div>
<div class="cell">пр. Туран, 37</div>
<div class="cell"></div>
<div class="cell"></div>
</div>
<div class="row">
<div class="cell">3</div>
<div class="cell">КОНГРЕСС-ХОЛЛ</div>
<div class="cell">Бейбитшилик 9<br>
Правый берег</div>
<div class="cell">+7(717)273-81-37<br>
+7(777)148-26-34</div>
<div class="cell">10:00-23:00<br>
без выходных</div>
</div>
<div class="row">
<div class="cell">4</div>
<div class="cell">«MEGA ASTANA»</div>
<div class="cell">Коргальджинское шоссе, 1<br>
Левый берег</div>
<div class="cell">+7(717)279-14-69<br>
+7(705)308-54-31</div>
<div class="cell">10:00-23:00<br>
без выходных</div>
</div>
<div class="row">
<div class="cell">5</div>
<div class="cell">РЕСПУБЛИКА</div>
<div class="cell">пр. Республики 8</div>
<div class="cell"></div>
<div class="cell"></div>
</div>
<div class="row">
<div class="cell">6</div>
<div class="cell">УНИВЕРСИТЕТ</div>
<div class="cell">ул. Пушкина уг.ул. Мирзояна</div>
<div class="cell"></div>
<div class="cell"></div>
</div>
<div class="row">
<div class="cell">7</div>
<div class="cell">Парк Арай</div>
<div class="cell">Сарайшык</div>
<div class="cell"></div>
<div class="cell"></div>
</div>
</div>
</div>
</div>
Answer:1

I am building my own type of Chrome dev tools (inspect element) which will also be in the form of a Chrome extension using JavaScript. I would like it to have some similar functionality to Chromes dev ...

I am building my own type of Chrome dev tools (inspect element) which will also be in the form of a Chrome extension using JavaScript. I would like it to have some similar functionality to Chromes dev ...

I have this line as a part from uml doc. <children xmi:type="corstr:heighj" uml:name="private" x="255" y="188" width="221" height="51"/> I need the values for x,y width and height * I tried ...

I have this line as a part from uml doc. <children xmi:type="corstr:heighj" uml:name="private" x="255" y="188" width="221" height="51"/> I need the values for x,y width and height * I tried ...

  1. file attributes from command line
  2. modify attributes from command line

const express = require('express'); const app = express(); app.use('/app', express.static(path.resolve(__dirname, './app'), { maxage: '600s' })) app.listen(9292, function(err){ if (err) ...

const express = require('express'); const app = express(); app.use('/app', express.static(path.resolve(__dirname, './app'), { maxage: '600s' })) app.listen(9292, function(err){ if (err) ...

  1. mvc ignore static files
  2. nginx ignore static files
  3. mvc route ignore static files

How could this conditional statement be simplified? Return statement is being used multiple times. Could for example ternary operators be used in this case? Is returning null a proper way to hide ...

How could this conditional statement be simplified? Return statement is being used multiple times. Could for example ternary operators be used in this case? Is returning null a proper way to hide ...

  1. using ternary operator
  2. using ternary operator javascript
  3. using ternary operator c#
  4. using ternary operator java
  5. using ternary operator python
  6. use ternary operator return
  7. use ternary operator swift
  8. use ternary operator typescript
  9. use ternary operator angularjs
  10. in ternary operators
  11. && in ternary operator javascript
  12. in ternary operator php
  13. && in ternary operator java
  14. in ternary operator c#
  15. using ternary operator in react