Почему у меня часть таблицы выехала за экран при адаптивной вёрстке?
0
Не могу понять почему у меня при адаптивной вёрстке, маленькая часть таблицы выехала за экран. Интересно, что на КиноМонстре всё нормально, но на моём аналоге она выехала и я не могу найти причину.
CSS КиноМонстр
* {
margin: 0;
padding: 0;
}
input[type="text"], input[type="password"], input[type="search"] {
color: #5d5d5d;
width: 60%;
padding: 8px;
}
input, textarea {
outline: none;
border: none;
border: solid 1px #f2f2f2;
}
h1, h2 {
font:normal 170% 'century gothic', arial;
margin: 0 0 15px 0;
padding: 15px 0 5px 0;
color: #000;
}
h2 {
font-size: 140%;
}
a, a:hover {
outline: none;
text-decoration: underline;
color: #aeb002;
}
body {
font-size: 1.2em;
background-color: #fff;
color: #555;
}
p {
padding: 0 0 20px 0;
line-height: 1.7em;
}
ul {
margin: 2px 0 22px 17px;
}
ul li {
margin: 0 0 6px 0;
padding: 0 0 4px 5px;
line-height: 1.5em;
}
hr {
border: solid 1px #f3f3f3;
}
.header {
background-color: darkslateblue;
height: 177px;
font-size: 0.8em;
margin-left: 0px;
margin-right: 0px;
min-width: 900px;
}
.main, .logo, .menubar, .site_content, .footer {
margin-left: auto;
margin-right: auto;
}
.logo {
width: 880px;
padding-bottom: 40px;
}
.logo h1, .logo h2 {
font: normal 300% 'century gothic', arial, sans-serif;
margin: 0 0 0 9px;
}
.logo_text h1, .logo_text h1 a, .logo_text h1 a:hover {
padding: 22px 0 0 0;
color: #fff;
letter-spacing: 0.1em;
text-decoration: none;
}
.logo_text h2 {
font-size: 0.9em;
padding: 4px 0 0 0;
color: #999;
}
.menubar {
width: 900px;
height: 46px;
}
ul.menu {
float: right;
}
ul.menu li {
float: left;
padding: 0 0 0 9px;
list-style: none;
margin: 1px 2px 0 0;
}
ul.menu li a {
font: normal 100% 'trebuchet ms', sans-serif;
display: block;
height: 20px;
padding: 6px 35px 5px 28px;
color: #fff;
text-decoration: none;
}
ul.menu li.selected a {
color: #aeb002;
}
ul.menu li a:hover {
color: #e4ec04;
}
.site_content {
width: 880px;
overflow: hidden;
margin: 20px auto 0 auto;
background: white;
}
.sidebar_container {
float: right;
width: 224px;
}
.sidebar {
float: right;
width: 222px;
padding: 5%;
margin: 0 0 16px 0;
border: solid 1px #f2f2f2;
border-radius: 5px;
background-color: #f9f9f9;
}
.btn {
padding: 8px;
background-color: white;
cursor: pointer;
}
.sidebar h2 {
color: #136cb2;
}
.lables_passreg_text {
font-size: 0.7em;
margin-top: 3%;
margin-left: 2%;
}
.sidebar ul {
margin: 0;
}
.sidebar ul li {
list-style-type: none;
margin: 0 0 0 0;
}
.sidebar .reiting_sidebar {
float: right;
}
.content {
text-align: left;
width: 620px;
padding: 0 0 0 5px;
float: left;
}
.content a {
text-decoration: none;
}
.films_block {
margin-bottom: 5%;
}
.films_block img {
border-radius: 5px;
border: solid 5px #dad7d5;
width: 22%;
}
.info_film_page {
margin-top: 2%;
margin-bottom: 4%;
}
.info_film_page .label {
font-size: 1.2em;
}
.info_film_page .value {
font-size: 1em;
margin-right: 3%;
color: #49945a;
}
.description_film {
margin-bottom: 15%;
}
.description_film img {
float: left;
margin-right: 2%;
border-radius: 5px;
border: solid 5px #dad7d5;
}
.reviews {
margin-bottom: 4%;
font-size: 0.9em;
}
.reviews .review_name {
background-color: #7268ad;
color: white;
padding: 1%;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
.reviews .review_text {
padding-top: 2%;
padding-bottom: 2%;
padding-left: 2%;
margin-bottom: 2%;
}
.send {
margin-bottom: 4%;
}
.send input[type="text"], textarea {
border: solid 1px #c3c3c3;
margin-bottom: 2%;
}
.send input[type="text"] {
width: 98%;
}
.send textarea {
width: 629px;
height: 200px;
}
.send input[type="submit"] {
background-color: #7268ad;
color: white;
padding: 3%;
border-radius: 5px;
}
.send_contact input[type="text"] {
width: 500px;
}
.send_contact textarea {
width: 516px;
}
.info_film {
margin-bottom: 5%;
background-color: #f9f9f9;
padding: 5%;
height: 270px;
}
.info_film img {
float: left;
margin-right: 2%;
border-radius: 5px;
border: solid 5px #dad7d5;
width: 25%;
}
.button {
background-color: #7268ad;
padding: 2%;
color: white;
border-radius: 5px;
float: right;
margin-top: 5%;
clear: both;
font-size: 0.8em;
}
.button a {
color: white;
}
.footer {
width: 100%;
height: 100%;
padding: 28px 0 5px 0;
text-align: center;
background-color: darkslateblue;
color: #a8aa94;
margin-left: 0px;
margin-right: 0px;
min-width: 900px;
}
table {
width: 100%;
border: solid 1px #f4f4f4;
}
td {
padding: 2%;
border: solid 1px #f4f4f4;
}
td img {
width: 60px;
vertical-align: middle;
}
.center {
text-align: center;
}
.rating {
font-weight: bold;
}
.footer a {
color: #a8aa94;
text-decoration: none;
}
.footer a:hover {
color: white;
text-decoration: none;
}
.footer p {
padding: 0 0 10px 0;
}
.posts .posts_content {
font-size: 0.8em;
}
/* CSS Mobile */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 568px) {
.header {
background-color: #257965;
min-width: 100%;
height: 20%;
text-align: center;
}
.logo {
width: 100%;
}
.site_content {
width: 100%;
text-align: center;
}
.menubar {
width: 100%;
height: 100%;
}
.sidebar_container {
display: none;
}
.footer {
display: none;
}
ul.menu {
float: none;
}
ul.menu li {
margin: 0;
padding: 0;
float: none;
}
.logo h1 {
font: normal 235% 'century gothic', arial, sens-serif;
}
.logo h2 {
font: normal 100% 'century gothic', arial, sens-serif;
color: white;
}
.content {
width: 100%;
text-align: center;
}
.content h1, h2 {
font: normal 115% 'century gothic', arial;
}
.films_block img {
width: 43%;
}
.posts_content {
line-height: 1.5em;
padding: 3%;
text-align: left;
}
.posts p {
font-size: 120%;
}
/* films page */
.info_film {
float: none;
height: 100%;
}
.info_film img {
width: 100%;
margin-bottom: 5%;
}
.button {
float: none;
}
/* rating page */
table {
display: block;
}
th {
font-size: 75%;
}
td {
padding: 0;
margin: 0;
text-align: left;
font-size: 95%;
}
/* show page */
iframe {
width: 88%;
height: 100%;
}
.description_film {
text-align: left;
width: 90%;
margin-left: 2%;
}
.description_film img {
float: none;
width: 73%;
display: block;
margin: 0;
padding: 0;
margin-left: 11%;
margin-bottom: 7%;
}
.reviews {
text-align: left;
width: 96%;
}
.send input[type="text"] {
width: 80%;
}
.send textarea {
width: 85%;
}
}
и CSS мой
* {
margin: 0;
padding: 0;
}
input[type="text"], input[type="password"], input[type="search"] {
color: #5d5d5d;
width: 60%;
padding: 8px;
}
input, textarea {
outline: none;
border:none;
border: solid 1px #f2f2f2;
border-radius: 5px;
margin: 2.5px 0 0 0;
}
h1, h2 {
font:normal 170% 'urw chancery l', bradley hand;
margin: 0 0 15px 0;
padding:7px 0 5px 0;
color: black;
}
h2 {
font-size: 140%;
}
a, a:hover {
outline: none;
text-decoration: underline;
color: darkorange;
}
body {
font-size: 1.1em;
background-color: #fff;
color: #555;
}
p {
padding: 0 0 20px 0;
line-height: 1.7em;
}
ul {
margin: 2px 0 22px 17px;
}
ul li {
margin: 0 0 6px 0;
padding: 0 0 4px 5px;
line-height: 1.5em;
}
hr {
border: solid 1px gold;
}
.header {
background:url(cosmos.png);
height: 250px;
font-size: 1.4em;
margin-left: 0px;
margin-right: 0px;
min-width: 1200px;
}
.main, .logo, .menubar, .site_content, .footer {
margin-left: auto;
margin-right: auto;
}
.logo {
width: 1100px;
padding-bottom: 40px;
}
.logo h1, .logo h2 {
font: normal 300% 'urw chancery l' bradley hand, cursive;
margin: 0 0 0 0px;
}
.logo_text h1, .logo_text h1 a, .logo_text h1 a:hover {
padding: 38px 0 0 0;
color: white;
letter-spacing: 0.2em;
text-decoration: none;
}
.logo_text h2 {
font-size: 0.8em;
padding:10px 0 0 0;
color: #cccccc;
}
.menubar {
width: 900px;
height: 10px;
}
ul.menu {
float: right;
}
ul.menu li {
float: left;
padding: 45px 0 0 0;
list-style: none;
margin: 1px 2px 0 0;
font-size: 0.7em;
}
ul.menu li a {
font: normal 100% 'trebuchet ms', sans-serif;
display: block;
height: 30px;
padding: 6px 35px 5px 28px;
text-decoration: none;
color: #cccccc;
}
ul.menu li.selected a {
color: gold;
}
ul.menu li a:hover {
color: gold;
}
.site_content {
width: 1200px;
overflow: hidden;
margin: 40px auto 0 auto;
background-color: white;
}
.sidebar_container {
float: right;
width: 220px;
}
.sidebar {
float: right;
width: 222px;
padding: 5%;
margin: 0 0 16px 0;
border: solid 3px #f2f2f2;
border-radius: 5px;
background-color: #f9f9f9;
}
.btn {
padding: 8px;
background-color: white;
cursor: pointer;
}
.sidebar h2 {
color: black;
}
.lables_passreg_text {
font-size: 0.78em;
margin-top: 3%;
margin-left: 2%;
}
.sidebar ul {
margin: 0;
}
.sidebar ul li {
list-style-type: none;
margin: 0 0 0 0;
}
.sidebar .reiting_sidebar {
float: right;
}
.footer {
width: 100%;
height: 100%;
padding: 28px 0 5px 0;
text-align: center;
background-color: black;
color: gold;
margin-left: 0px;
margin-right: 0px;
min-width: 900px;
}
.content {
text-align: left;
width: 620px;
padding: 0 0 0 5px;
float: left;
margin-left: 10%;
}
.content a {
text-decoration: none;
}
.films_block {
margin-bottom: 5%;
}
.films_block img {
border-radius: 5px;
border: solid 5px black;
width: 22%;
}
.posts .posts_content {
font-size: 0.9em;
}
.info_film_page {
margin-top: 2%;
margin-bottom: 4%;
}
.info_film_page .label {
font-size: 1.1em;
}
.info_film_page .value {
font-size: 1em;
margin-right: 3%;
color: chocolate;
}
.description_film {
margin-bottom: 15%
}
.description_film img {
float: left;
margin-right: 5%;
border-radius: 5px;
border: solid 5px black;
}
.reviews {
margin-bottom: 4%;
font-size: 1em;
}
.reviews .review_name {
background-color: black;
color: white;
padding: 1%;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
.reviews .review_text {
padding-top: 2%;
padding-bottom: 2%;
padding-left: 2%;
margin-bottom: 3%;
}
.send {
margin-bottom: 4%;
}
.send input[type="text"], textarea {
border: solid 1px #c3c3c3;
margin-bottom: 2%;
}
.send input[type="text"] {
width: 98%;
}
.send textarea{
width: 629px;
height: 200px;
}
.send input[type="submit"] {
background-color: black;
color: white;
padding: 3%;
border-radius: 5px;
}
.send_contact input[type="text"] {
width: 500px;
}
.send_contact textarea {
width: 515px;
}
.info_film {
margin-bottom: 5%;
background-color: #f9f9f9;
padding: 5%;
height: 270px;
}
.info_film img {
float: left;
border-radius: 5px;
border: solid 5px black;
margin-right: 2%;
width: 25%;
}
.button {
background-color: black;
color: white;
padding: 2.5%;
border-radius: 5px;
margin-top: 5%;
clear: both;
font-size: 0.9em;
float: right;
}
.button a {
color: white;
}
table {
width: 100%;
border: solid 1px lightyellow;
}
td {
padding: 2%;
border: solid 1px lightyellow;
}
td img {
width: 80px;
vertical-align: middle;
border: solid 5px black;
border-radius: 5px;
}
.center {
text-align: center;
}
.rating {
font-weight: bold;
}
.footer a{
color: gold;
text-decoration: none;
}
.footer a:hover {
color: #fff;
text-decoration: none;
}
.footer p {
padding: 0 0 10px 0;
}
/* CSS Mobile */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 568px) {
.header {
background-color: black;
min-width: 100%;
height: 20%;
text-align: center;
}
.logo {
width: 100%;
}
.site_content {
width: 100%;
text-align: center;
}
.menubar {
width: 100%;
height: 100%;
}
.sidebar_container {
display: none;
}
.footer {
display: none;
}
ul.menu {
float: none;
}
ul.menu li {
margin: 0;
padding: 0;
float: none;
}
.logo h1 {
font: normal 115% 'trebuchet ms', sans-serif;
}
.logo h2 {
color: white;
font: normal 70% 'trebuchet ms', sans-serif;
}
.content {
width: 100%;
text-align: center;
margin-left: 0;
}
.content h1, h2 {
font: normal 110% 'trebuchet ms', sans-serif;
}
.films_block img {
width: 43%;
}
.posts_content {
line-height: 1.5em;
padding: 3%;
text-align: left;
}
.posts p {
font-size: 120%;
}
/* films page */
.info_film {
float: none;
height: 100%;
}
.info_film img {
width: 100%;
margin-bottom: 5%;
}
.button {
float: none;
}
/* rating page */
table {
display: block;
}
th {
font-size: 85%;
}
td {
padding: 0;
margin: 0;
text-align: left;
font-size: 100%;
}
td img {
width: 60px;
border: none;
border-radius: 0px;
}
/* show page */
iframe {
width: 88%;
height: 100%;
}
.description_film {
text-align: left;
width: 90%;
margin-left: 2%;
}
.description_film img {
float: none;
width: 73%;
display: block;
margin: 0;
padding: 0;
margin-left: 11%;
margin-bottom: 7%;
}
.reviews {
text-align: left;
width: 96%;
}
.send input[type="text"] {
width: 80%;
}
.send textarea {
width: 85%;
}
}
1 ответов
0
Этим сервисом сравните два кода - ваш и оригинальный. Иногда может не только в css быть опечатка, но и в html коде, когда какой-нибудь тэг не закрыт.