SASS code problems - css

I've been trying to learn flexbox and I messed around with my codepen on mobile and something happened, I can't pin-point the problem but it keeps giving me an error and I can not for the life of me spot it! Everything seems fine.
The code isn't amazing, I'm not great at coding yet, it's not DRY, it's messy, not very readable and whatever else but it was working. The page was working even with the error. Now it isn't doing anything at all, won't even load.
There is an error in the CSS editor and I can not fix it!
Please help me, it's really annoying me, I've been looking through it for hours changing things.
Here is the codepen: http://codepen.io/joecox91/pen/GrJXQX
Sorry I can't remember how to embed the codepen into the question!
#import url('https://fonts.googleapis.com/css?family=Roboto+Mono:300,400');
* {
padding:0;
margin:0;
text-decoration:none;
box-sizing:border-box;
}
body, html {
padding:0;
margin:0;
width:100%;
height:100%;
}
header {
background:#ffffff;
border-bottom:1px solid #cccccc;
}
/* flex-flow: flex-direction flex-wrap */
.container {
display:-webkit-flex;
display:flex;
justify-content:center;
flex-flow: row wrap;
}
/* flex:flex-grow flex-shrink flex-basis */
.container section {
height:auto;
flex-grow:1;
padding:20px 0;
flex-shrink:1;
flex-wrap:wrap;
}
.two {
align-content:space-around;
margin:40px 20px;
font-family: 'Roboto Mono', monospace;
}
#content {
padding:20px;
width:60%;
}
#sidebar {
background:black;
width:20%;
}
// .container section:nth-child(2n) {
// background:black;
// }
#header {
display: flex;
height:100%;
align-items:center;
justify-content: center;
flex-flow:column wrap;
font-family:helvetica;
h1 {
font-size:2em;
letter-spacing:1.5px;
}
h2 {
font-size:1.2em;
}
}
#nav {
display:flex;
justify-content:center;
align-items:center;
a {
padding:20px;
color:#aaaaaa;
font-family:helvetica;
font-size:14px;
margin-right:1px;
text-transform:uppercase;
border-bottom:2px solid white;
transition:0.2s ease-out;
&.active {
border-bottom:2px solid black;
color:black;
}
&:last-child {
margin-right:0;
margin-left:20px;
border:1px solid #aaaaaa;
border-radius:5px;
&.active {
border:1px solid black;
}
}
&:hover {
color:black;
transition:0.2s ease-out;
&:last-child {
border:1px solid black;
}
}
}
}
.spin1 {
position:relative;
animation:menutate 1.5s infinite;
animation-timing-function: linear;
top:-1px;
left:10px;
width:1px;
border-top:5px solid rgba(0,0,0,0);
border-right:5px solid white;
border-left:5px solid white;
border-bottom:5px solid rgba(0,0,0,0);
background:black;
}
#mobile-menu {
display:none;
}
#mobile-header {
}
#keyframes menutate {
0% {
transform:rotate(0);
}
100% {
transform:rotate(360deg);
}
}
#navi {
display:none;
}
#media screen and (max-width:720px) {
.container,
.two, {
flex-flow:column wrap;
}
#content {
width:100%;
}
#sidebar {
width:100%;
}
#navi {
position:absolute;
display:block;
height:100%;
top:0;
left:0;
background:deepskyblue;
width:80%;
transform:translate(-100%);
z-index:10000;
}
#navi.extend {
box-shadow:0px 0px 10px 10px rgba(0,0,0,0.4);
}
#header {
justify-content:flex-end;
align-items:flex-end;
padding-right:20px;
h1 {
padding:0;
margin:0;
}
}
#nav {
display:none;
}
.mobile-hide {
display:none;
}
body {
position:relative;
transform:translate(0);
transition:0.3s ease-out;
}
body.extend {
transform:translateX(80%);
transition:0.3s ease-out;
}
#mobile-menu {
     position:fixed;
    top:22px;
left:20px;
display:block;
height:50px;
    overflow:none;
     width:50px;
padding:8px;
z-index:500000;
transition:0.2s ease;
filter: opacity(1);
&.extend {
transform:translateX(-180%);
transition:0.4s ease;
}
&:hover {
cursor:pointer;
transition:0.5s ease;
filter:opacity(0.6);
}
span {
position:absolute;
height:4px;
background:black;
width:40px;
text-align:center;
transition:0.5s ease;
&.menu-animate {
transition:0.5s ease;
}
&:hover {
cursor:pointer;
}
&:last-child {
border:none;
font-size:12px;
background:none;
height:auto;
width:40px;
        top:38px;
         text-align:center;
       }
     
      &:nth-child(1) {
top:8px;
&.menu-animate {
top:13px;
transform:rotate(45deg);
}
}
&:nth-child(2) {
top:18px;
&.menu-animate {
top:13px;
transform:rotate(-45deg);
}
}
&:nth-child(3) {
top:28px;
&.menu-animate {
top:13px;
filter:opacity(0);
}
}
}
 
 }
 
}
There is the SASS, or half SASS. The problem I'm getting is:
Invalid CSS after "... position:fixed": expected "{", was ";"
This makes no sense to me! Why would it be expecting an opening curly bracket anywhere? After position:fixed... What is going on?
Send help!
Thank you

The issue is that you have some strange spacing characters on few lines of your SCSS - this is tripping up Sass. If you replace those with proper spaces things seem to work:
#import url('https://fonts.googleapis.com/css?family=Roboto+Mono:300,400');
* {
padding:0;
margin:0;
text-decoration:none;
box-sizing:border-box;
}
body, html {
padding:0;
margin:0;
width:100%;
height:100%;
}
header {
background:#ffffff;
border-bottom:1px solid #cccccc;
}
/* flex-flow: flex-direction flex-wrap */
.container {
display:-webkit-flex;
display:flex;
justify-content:center;
flex-flow: row wrap;
}
/* flex:flex-grow flex-shrink flex-basis */
.container section {
height:auto;
flex-grow:1;
padding:20px 0;
flex-shrink:1;
flex-wrap:wrap;
}
.two {
align-content:space-around;
margin:40px 20px;
font-family: 'Roboto Mono', monospace;
}
#content {
padding:20px;
width:60%;
}
#sidebar {
background:black;
width:20%;
}
// .container section:nth-child(2n) {
// background:black;
// }
#header {
display: flex;
height:100%;
align-items:center;
justify-content: center;
flex-flow:column wrap;
font-family:helvetica;
h1 {
font-size:2em;
letter-spacing:1.5px;
}
h2 {
font-size:1.2em;
}
}
#nav {
display:flex;
justify-content:center;
align-items:center;
a {
padding:20px;
color:#aaaaaa;
font-family:helvetica;
font-size:14px;
margin-right:1px;
text-transform:uppercase;
border-bottom:2px solid white;
transition:0.2s ease-out;
&.active {
border-bottom:2px solid black;
color:black;
}
&:last-child {
margin-right:0;
margin-left:20px;
border:1px solid #aaaaaa;
border-radius:5px;
&.active {
border:1px solid black;
}
}
&:hover {
color:black;
transition:0.2s ease-out;
&:last-child {
border:1px solid black;
}
}
}
}
.spin1 {
position:relative;
animation:menutate 1.5s infinite;
animation-timing-function: linear;
top:-1px;
left:10px;
width:1px;
border-top:5px solid rgba(0,0,0,0);
border-right:5px solid white;
border-left:5px solid white;
border-bottom:5px solid rgba(0,0,0,0);
background:black;
}
#mobile-menu {
display:none;
}
#mobile-header {
}
#keyframes menutate {
0% {
transform:rotate(0);
}
100% {
transform:rotate(360deg);
}
}
#navi {
display:none;
}
#media screen and (max-width:720px) {
.container,
.two, {
flex-flow:column wrap;
}
#content {
width:100%;
}
#sidebar {
width:100%;
}
#navi {
position:absolute;
display:block;
height:100%;
top:0;
left:0;
background:deepskyblue;
width:80%;
transform:translate(-100%);
z-index:10000;
}
#navi.extend {
box-shadow:0px 0px 10px 10px rgba(0,0,0,0.4);
}
#header {
justify-content:flex-end;
align-items:flex-end;
padding-right:20px;
h1 {
padding:0;
margin:0;
}
}
#nav {
display:none;
}
.mobile-hide {
display:none;
}
body {
position:relative;
transform:translate(0);
transition:0.3s ease-out;
}
body.extend {
transform:translateX(80%);
transition:0.3s ease-out;
}
#mobile-menu {
position:fixed;
top:22px;
left:20px;
display:block;
height:50px;
overflow:none;
width:50px;
padding:8px;
z-index:500000;
transition:0.2s ease;
filter: opacity(1);
&.extend {
transform:translateX(-180%);
transition:0.4s ease;
}
&:hover {
cursor:pointer;
transition:0.5s ease;
filter:opacity(0.6);
}
span {
position:absolute;
height:4px;
background:black;
width:40px;
text-align:center;
transition:0.5s ease;
&.menu-animate {
transition:0.5s ease;
}
&:hover {
cursor:pointer;
}
&:last-child {
border:none;
font-size:12px;
background:none;
height:auto;
width:40px;
top:38px;
text-align:center;
}
&:nth-child(1) {
top:8px;
&.menu-animate {
top:13px;
transform:rotate(45deg);
}
}
&:nth-child(2) {
top:18px;
&.menu-animate {
top:13px;
transform:rotate(-45deg);
}
}
&:nth-child(3) {
top:28px;
&.menu-animate {
top:13px;
filter:opacity(0);
}
}
}
}
}
Here's the Codepen with the fix.
I recommend using an editor with "Show Invisibles" turned on so you can easily see issues like this.

Related

How to put pager of a listview in a new line in Yii2

I have a theme, which I have integrated with yii2, when using pager of list view, I have the pager beside divs I add to the list view items, I need to put the pager in a new line alone.
I used the following view:
<style>
#items {
}
</style>
<?php
use yii\web\View;
use yii\widgets\LinkPager;
use yii\widgets\ListView;
//This is a php syntax to write register scripts
$this->registerJs("m_active='bio'", View::POS_END);
?>
<div class=" container">
<div class="app-alem-form">
</div>
</div>
<div id="bio" class="section bg1">
<div class="head color2">
<div class="title">سيرة العلماء</div> <i class="icon fa fa-graduation-cap"></i>
</div>
<div class="container flex1">
<!--<div class="container container-fluid row" id="items">-->
<!--<div class="row" id="items">-->
<?=
ListView::widget([
'dataProvider' => $listDataProvider,
'options' => [
'tag' => 'div',
'class' => 'list-wrapper',
'id' => 'list-wrapper',
],
'layout' => '{items}{pager}{summary}',
'layout' => "{summary}\n{items}\n{pager}",
'itemView' => function ($model, $key, $index, $widget) {
echo ("<div class='item-holder')>
<a href = '?r=alem%2Fget-olama&id=" . $model->attributes['id'] . "'>
<div class='item'>
<div class='default cover' style='background:url(img/olama/" . $model['c_image'] . "); background-size:contain;'></div>
<div class='title'>" . $model->attributes['c_name'] . "</div>
</div>
</a>
</div>");
},
'pager' => [
'firstPageLabel' => 'first',
'lastPageLabel' => 'last',
'nextPageLabel' => '>>',
'prevPageLabel' => '<<',
'maxButtonCount' => 3,
],
]);
?>
</div>
</div>
and the portion of my style sheet that is related to this page is the following:
#main .bio .container .item-holder {
padding:10px;
width:calc(100% / 4);
display:table;
/* display: inline;*/
}
#main .bio .container .item-holder .item {
background:#fff;
border:1px solid #aaa;
padding:10px;
}
#main .bio .container .item-holder .item .cover {
width:100%;
height:200px;
border:1px double #aaa;
}
#main .bio .container .item-holder .item .title {
text-align:center;
}
/*Site Main End*/
#bio .container {
flex-direction:row-reverse;
flex-wrap:wrap;
align-items:flex-start;
justify-content:flex-start;
}
#bio .container .item-holder {
padding:10px;
width:calc(100% / 4);
}
#bio .container .item-holder .item {
background:#fff;
padding:10px;
}
#bio .container .item-holder .item .cover {
width:100%;
height:200px;
border:1px double #aaa;
}
#bio .container .item-holder .item .title {
text-align:center;
}
#media (max-width: 900px) {
#bio .container .item-holder {
padding:10px;
width:calc(100% / 2);
}
}
#media (max-width: 600px) {
#bio .container .item-holder {
padding:10px;
width:calc(100% / 1);
}
}
The full style sheet is in the following :
#font-face {
font-family: tahoma;
src: url(../fonts/Tahoma.ttf);
}
#font-face {
font-family: droudKufi;
src: url(../fonts/DroidKufi-Regular.ttf);
}
/* Site Fonts End*/
body {
margin:0;
overflow:auto;
font-family:droudKufi, arial;
background:#eee;
}
form {
margin:0;
}
input, textarea, select {
outline:none;
font-family:inherit;
transition:ease 0.3s all;
width:100%;
padding:3px 7px;
border:1px solid #aaa;
direction:rtl;
border-radius:5px;
}
input:focus, textarea:focus, select:focus {
border-color:#32aae1 !important;
box-shadow: 0px 0px 7px rgba(81, 203, 238, 1);;
}
textarea {
resize:none;
}
button {
outline:none;
font-family:inherit;
cursor:pointer;
transition:ease 0.3s all;
border:1px solid #aaa;
padding: 5px 10px;
border-radius: 10px;
font-size: 16px;
}
div {
box-sizing:border-box;
}
a {
text-decoration:none;
}
a {
color:inherit;
}
.container { margin-right: auto; margin-left: auto; padding-left: 20px; padding-right: 20px; }
#media (min-width: 901px) {.container { width: 870px; }}
#media (min-width: 992px) { .container { width: 980px; }}
#media (min-width: 1200px) { .container { width: 1180px; }}
.color1 {
color:#296E9D;
}
.color2 {
color:#ED2024;
}
.default {
background-repeat:no-repeat !important;
background-position:center !important;
background-size:initial;
background:url(../img/logo.png) #fff;
}
.shadow-box {
position:fixed;
width:100vw;
height:100vh;
max-width:100%;
display:flex;
align-items:center;
justify-content:center;
z-index:99999;
top:0;
left:0;
display:none;
}
.shadow-box .container {
z-index:99999;
}
.shadow-box .overlay {
position:absolute;
background:rgba(0,0,0,0.8);
width:100%;
height:100%;
top:0;
left:0;
}
.section {
padding:40px 0;
text-align:center;
width:100%;
}
.section.bg1 {
background:#fff;
}
.section.bg2 {
background:#296E9D;
}
.section .container.flex1 {
display:flex;
align-items:center;
justify-content:center;
}
.section .container.flex2 {
display:flex;
align-items:center;
justify-content:center;
flex-direction:column
}
.section .btn1, .section .btn2:hover {
color:#296E9D;
background:#fff;
}
.section .btn1, .section .btn2 {
margin-top:20px;
}
.section .btn2, .section .btn1:hover {
color:#fff;
background:#296E9D;
}
.section .head {
margin-bottom:30px;
display:flex;
align-items:center;
justify-content:center;
}
.section .head.color1 {
color:#fff;
}
.section .head.color2 {
color:#296E9D;
}
.section .head .title {
font-size:38px;
}
.section .head .icon {
font-size:40px;
margin-left:20px;
}
.pagination-holder {
display:flex;
justify-content:center;
align-items:center;
margin-top:20px;
width:100%;
}
.pagination-holder .item {
height:40px !important;
width:40px;
display:flex;
justify-content:center;
align-items:center;
margin:0 5px;
border-radius:10px;
cursor:pointer;
color:#296E9D;
background:#fff;
transition:ease 0.3s all;
border:1px solid #aaa;
}
.pagination-holder .item.active {
color:#fff;
background:#296E9D;
text-shadow:0 0 10px #fff;
}
.pagination-holder .item:hover {
color:#fff;
background:#296E9D;
}
/*Site Header Start*/
#site-header {
width:100%;
padding:10px 0;
background:#fff;
z-index:9999999;
border-bottom:1px solid #ddd;
}
#site-header .menu-bar{
display:flex;
align-items:center;
justify-content:space-between;
}
#site-header .menu-bar .logo {
display:flex;
align-items:center;
}
#site-header .menu-bar .logo img{
height:40px;
margin-right:10px;
}
#site-header .menu-bar .logo .text {
font-size:22px;
font-weight:bold;
}
#site-header .menu-bar .logo .text span {
}
#site-header .menu-bar .menu {
display:flex;
align-items:center;
font-size:16px;
flex-direction:row-reverse;
}
#site-header .menu-bar .menu .item {
transition:ease 0.3s all;
border-radius:10px;
color:#296E9D;
position:relative;
}
#site-header .menu-bar .menu .item a {
padding:5px 10px;
display:flex;
align-items:center;
flex-direction:row-reverse;
}
#site-header .menu-bar .menu .item .icon {
font-size:10px;
margin-right:10px;
}
#site-header .menu-bar .menu .item:hover {
color:#ED2024;
}
#site-header .menu-bar .menu .item.active {
color:#fff;
background:#296E9D;
text-shadow: 0 0 20px #fff;
}
#site-header .menu-bar .menu .item:hover .sub-menu {
display:block;
}
#site-header .menu-bar .menu .item .sub-menu {
position:absolute;
top:100%;
right:0;
width:200px;
background:#fff;
text-align:right;
border:1px solid #ddd;
display:none;
transition:ease 0.3s all;
z-index: 9;
}
#site-header .menu-bar .menu .item .sub-menu .item {
border-radius:0;
border:0;
border-bottom:1px solid #ddd;
}
#site-header .menu-bar .mobile-menu {
display:none;
cursor:pointer;
position:relative;
text-align:right;
}
#site-header .menu-bar .mobile-nav {
display:none;
position:absolute;
top:63px;
height:calc(100vh - 62px);
width:300px;
background:#fff;
right:0;
overflow-y:auto;
border-left:1px solid #ddd;
}
#site-header .menu-bar .mobile-nav .sub-menu {
display:none;
background:#f1f1f1;
}
#site-header .menu-bar .mobile-menu:hover {
color:#296E9D;
}
#site-header .menu-bar .mobile-menu.active {
color:#ED2024;
}
#site-header .menu-bar .mobile-nav .item {
padding:10px;
transition:ease 0.3s all;
border-bottom:1px solid #ddd;
display:flex;
align-items:center;
justify-content:space-between;
flex-direction:row-reverse;
color:#296E9D;
cursor:pointer;
}
#site-header .menu-bar .mobile-nav .item:hover {
color:#ED2024;
}
#site-header .menu-bar .mobile-nav .item.active {
color:#fff;
background:#296E9D;
text-shadow: 0 0 20px #fff;
}
#media (max-width: 900px) {
#site-header .menu-bar .menu {
display:none;
}
#site-header .menu-bar .mobile-menu {
display:block;
}
#site-header {
position:fixed;
top:0;
left:0;
}
.header-space {
margin-top:62px;
}
}
/*Site Header End*/
/*Site Main Start*/
#main .top-carousel {
width:100%;
height:425px;
display:flex;
align-items:center;
justify-content:center;
flex-direction:column;
}
#main .top-carousel .slider1 {
padding:0 100px;
}
#main .top-carousel .slider1 .item img {
width:100%;
height:200px;
}
#main .top-carousel .slider1 .item .text {
text-align:center;
height:59px;
overflow:hidden;
font-size:14px;
background:#fff;
border:1px solid #ddd;
padding:0 5px;
}
#main .slider1 .owl-prev, .slider1 .owl-next {
top:50%;
transform:translateY(-64%);
position:absolute;
background:transparent !important;
transition:all ease 0.3s;
}
#main .slider1 .owl-prev {
left:0;
margin-left:10px;
}
#main .slider1 .owl-next {
right:0;
margin-right:10px;
}
#main .slider1 .owl-prev:after, .slider1 .owl-next:after {
font-family: "FontAwesome";
font-size: 148px;
color:#D3D3D3;
font-weight:bold;
cursor:pointer;
}
#main .slider1 .owl-prev:after {
content: '\f104';
}
#main .slider1 .owl-next:after {
content: '\f105';
}
#main .qanda .carousel {
max-width:100%;
}
#media (max-width: 900px) {
#main .top-carousel .slider1 {
padding:0 70px;
}
}
#main .qanda .slider2 .item {
text-align:center;
font-size:16px;
margin-bottom:10px;
direction:rtl;
}
#main .qanda .slider2 .item .title {
font-weight:bold;
color:#fff;
margin-bottom:20px;
}
#main .qanda .slider2 .item .desc {
color:#aaa;
}
#main .qanda button {
margin-top:40px !important;
}
#main .shadow-box .container .form-holder {
background:#fff;
border:2px solid #296E9D;
border-radius:8px;
padding:20px;
}
#main .shadow-box .form-holder .title {
text-align:right;
margin-bottom:10px;
direction:rtl;
}
#main .shadow-box .form-holder form input, .shadow-box .form-holder form textarea {
margin-bottom:5px;
}
#main .shadow-box .form-holder form textarea {
height:90px;
}
#main .shadow-box .form-holder form .btn {
color:#296E9D;
background:#fff;
}
#main .shadow-box .form-holder form .btn:hover {
background:#296E9D;
color:#fff;
}
#main .books .container {
flex-wrap:wrap;
}
#main .books .item-holder {
padding:10px;
width:calc(100% / 2);
}
#main .books .item {
height:233px;
display:flex;
flex-direction:row-reverse;
border:1px solid #aaa;
float:right;
}
#main .books .item .cover {
height:100%;
width:200px;
flex-shrink:0;
float:right;
}
#main .books .item .info {
padding:10px;
display:flex;
flex-align:center;
justify-content:center;
flex-direction:column;
text-align:center;
direction:rtl;
}
#main .books .item .info .title {
font-size:20px;
font-weight:bold;
}
#media (max-width: 900px) {
#main .books .item-holder {
width:calc(100% / 1);
}
}
#main .bio .container .item-holder {
padding:10px;
width:calc(100% / 4);
display:table;
/* display: inline;*/
}
#main .bio .container .item-holder .item {
background:#fff;
border:1px solid #aaa;
padding:10px;
}
#main .bio .container .item-holder .item .cover {
width:100%;
height:200px;
border:1px double #aaa;
}
#main .bio .container .item-holder .item .title {
text-align:center;
}
/*Site Main End*/
/*Site About Start*/
#about {
}
#about .container .img {
height:200px;
width:200px;
float:left;
margin-right:10px;
}
#about .container .text {
text-align:right;
color:#000;
direction:rtl;
}
/*Site About End*/
/*Site Mag Start*/
#mag .container {
flex-wrap:wrap;
}
#mag .item-holder {
padding:10px;
width:calc(100% / 2);
}
#mag .item {
height:233px;
display:flex;
flex-direction:row-reverse;
border:1px solid #aaa;
}
#mag .item .cover {
height:100%;
width:200px;
flex-shrink:0;
}
#mag .item .info {
padding:10px;
display:flex;
flex-align:center;
justify-content:center;
flex-direction:column;
text-align:center;
direction:rtl;
}
#mag .item .info .title {
font-size:20px;
font-weight:bold;
}
#media (max-width: 900px) {
#mag .item-holder {
width:calc(100% / 1);
}
}
/*Site Mag End*/
/*Site Library Start*/
#library .container {
flex-wrap:wrap;
}
#library .item-holder {
padding:10px;
width:calc(100% / 2);
}
#library .item {
height:233px;
display:flex;
flex-direction:row-reverse;
border:1px solid #aaa;
}
#library .item .cover {
height:100%;
width:200px;
flex-shrink:0;
}
#library .item .info {
padding:10px;
display:flex;
flex-align:center;
justify-content:center;
flex-direction:column;
text-align:center;
direction:rtl;
}
#library .item .info .title {
font-size:20px;
font-weight:bold;
}
#media (max-width: 900px) {
#library .item-holder {
width:calc(100% / 1);
}
}
/*Site Library End*/
/*Site Bio Start*/
#bio .container {
flex-direction:row-reverse;
flex-wrap:wrap;
align-items:flex-start;
justify-content:flex-start;
}
#bio .container .item-holder {
padding:10px;
width:calc(100% / 4);
}
#bio .container .item-holder .item {
background:#fff;
padding:10px;
}
#bio .container .item-holder .item .cover {
width:100%;
height:200px;
border:1px double #aaa;
}
#bio .container .item-holder .item .title {
text-align:center;
}
#media (max-width: 900px) {
#bio .container .item-holder {
padding:10px;
width:calc(100% / 2);
}
}
#media (max-width: 600px) {
#bio .container .item-holder {
padding:10px;
width:calc(100% / 1);
}
}
/*Site Bio End*/
/*Site Activities Start*/
#activities .container {
flex-direction:row-reverse;
align-items:flex-start;
justify-content:flex-start;
flex-wrap:wrap;
}
#activities .container .item-holder {
width:calc(100% / 2);
font-size:18px;
padding:10px;
}
#activities .container .item-holder .item {
text-align:right;
padding:10px;
}
#activities .container .item-holder .item .title {
font-weight:bold;
max-height:68px;
overflow:hidden;
margin-bottom:5px;
}
#activities .container .item-holder .item .desc {
max-height:100px;
overflow:hidden;
}
#activities .container .item .img {
width:100%;
height:250px;
}
#media (max-width: 900px) {
#activities .container .item-holder {
width:calc(100% / 1);
}
}
/*Site Activities End*/
/*Site Question Start*/
#question .container .text {
text-align:right;
margin-bottom:10px;
direction:rtl;
}
#question .form-holder {
text-align:left;
}
#question .form-holder .row {
display:flex;
flex-direction:row-reverse;
}
#question .form-holder .row .item {
width:calc(100% / 2);
margin-bottom:10px;
}
#question .form-holder .row .item:nth-of-type(1) {
padding-left:5px;
}
#question .form-holder .row .item:nth-of-type(2) {
padding-right:5px;
}
#question .form-holder textarea {
width:100%;
height:150px;
margin-bottom:10px;
}
#question .form-holder .btn {
color:#296E9D;
background:#fff;
}
#question .form-holder .btn:hover {
color:#fff;
background:#296E9D;
}
/*Site Question End*/
/*Site Rulings Start*/
#rulings .container .item-holder {
width:100%;
margin-bottom:10px;
}
#rulings .container .item-holder .item {
border:1px solid #aaa;
text-align:right;
padding:10px;
direction:rtl;
}
#rulings .container .item-holder .item .title {
font-weight:bold;
margin-bottom:5px;
}
/*Site Rulings End*/
/*Site Footer Start*/
#site-footer {
padding:10px 0;
background:#fff;
border-top:1px solid #ddd;
}
#site-footer .container {
display:flex;
align-items:center;
}
#site-footer .container > div {
width:calc(100% / 2);
}
#site-footer .text {
color:#296E9D;
font-size:14px;
text-align:left;
}
#site-footer .social {
display:flex;
align-items:center;
justify-content:flex-end;
}
#site-footer .social .icon {
color:#296E9D;
display:flex;
align-items:center;
justify-content:center;
font-size:20px;
cursor:pointer;
margin-left:20px;
transition:ease 0.3s all;
}
#site-footer .social .icon:hover {
color:#ED2024;
}
/*Site Footer End*/
You mention the layout twice in the configuration of your ListView.
Use 'layout' => '{items}<div>{pager}</div>{summary}'
A div has by default display: block;. Moreover, you can give it the class row if it still does not work.

Safari Browser ignoring zIndex

I have a small problem on a web page (http://goldschmiede-h-j-baier.de/dev/index.php?id=10) everything is displayed correctly, the footer is pushed upwards with z-index. but safari does the z-index does not and I do not know why. the footer is always placed behind the main container ...
/*Website*/
html,body {
background:#000;
font-family:"Trebuchet MS",Helvetica,Jamrul,sans-serif;
color:#fff;
overflow:hidden;
border-left: 5px solid;
border-right: 5px solid;
}
.maincontainer {
overflow:auto;
height:100%;
width: 100%;
}
#footer {
height:64px;
position:fixed;
bottom:30px;
z-index:200;
}
#navigation {
position:fixed;
left:30%;
}
#logo {
background:url(../images/logo-baier.png);
width:217px;
height:75px;
position:fixed;
bottom:30px;
z-index:202;
left:10%;
}
#social {
position:fixed;
right:0;
top:30px;
z-index:302;
}
/*Slider*/
#slides {
position:relative;
}
.slides {
background:#000;
/*margin-top:10px;*/
border-bottom: 10px solid #fff;
border-top: 10px solid #fff;
}
#slides .slides-container {
display:none;
}
#slides .scrollable {
*zoom:1;
position:relative;
top:0;
left:0;
overflow-y:auto;
-webkit-overflow-scrolling:touch;
height:100%;
}
#slides .scrollable:after {
content:"";
display:table;
clear:both;
}
.slides-navigation {
margin:0 auto;
position:absolute;
z-index:3;
top:56%;
width:100%;
}
.slides-navigation a {
position:absolute;
display:block;
}
.slides-navigation a.prev {
left:0px;
}
.slides-navigation a.next {
right:0px;
}
.slides-pagination {
position:absolute;
z-index:3;
bottom:0;
text-align:center;
width:100%;
}
.slides-pagination a {
border:2px solid #222;
border-radius:15px;
width:10px;
height:10px;
display:-moz-inline-stack;
display:inline-block;
vertical-align:middle;
*vertical-align:auto;
zoom:1;
*display:inline;
background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGP6zwAAAgcBApocMXEAAAAASUVORK5CYII=");
margin:2px;
overflow:hidden;
text-indent:-100%;
}
.slides-pagination a.current {
background:#222;
}
.next {
width:35px;
height:55px;
background-image:url("../images/str.png");
background-position:42px -44px;
}
.prev {
width:35px;
height:55px;
background-image:url("../images/str.png");
background-position:-7px -44px;
}
.slides-pagination {
display:none;
}
.bottom {
position:absolute;
z-index:3000;
bottom:90px;
width:100%;
right:-60%;
}
.bottom a {
width:51px;
height:32px;
background-image:url("../images/str.png");
background-position:0px 0px;
display:inline-block;
}
.top {
position:absolute;
z-index:3000;
top:0;
text-align:center;
width:100%;
margin-top: 10px;
}
.top a {
width:51px;
height:32px;
background-image:url("../images/str.png");
background-position:-68px 0px;
display:inline-block;
}

Blank whitespace only in firefox

firefox:
chrome:
does anyone know why this is happening in Firefox? it's driving me nuts
here is the css:
#gallery_grid .gallery_grid_item,#related_topics .gallery_grid_item,#popular_galleries .gallery_grid_item {
position:relative;
overflow:hidden;
display:block;
text-decoration:none;
}
#gallery_grid .gallery_grid_item {
width:288px;
height:260px;
box-shadow:0 1px 3px rgba(34,25,25,0.4);
-webkit-box-shadow:0 1px 3px rgba(34,25,25,0.4);
-moz-box-shadow:0 1px 3px rgba(34,25,25,0.4);
transition:margin .1s;
-moz-transition:margin .1s;
-webkit-transition:margin .1s;
-o-transition:margin .1s;
margin:15px;
}
#gallery_grid .gallery_grid_item:hover {
margin:13px 15px 17px;
}
#gallery_grid .gallery_grid_image_wrapper {
width:100%;
height:190px;
overflow:hidden;
}
#gallery_grid .gallery_grid_image {
min-height:100%;
}
#popular_galleries .gallery_grid_item,#gallery_grid .gallery_grid_item {
border:1px solid #999;
}
#related_topics .gallery_grid_item {
border:0!important;
width:242px;
height:140px;
overflow:hidden;
background:#181818;
margin:0;
}
#popular_galleries .gallery_grid_item {
width:200px;
height:140px;
letter-spacing:-.05em;
background:#181818;
margin:0 0 15px;
}
#popular_galleries.upsell .gallery_grid_item {
height:200px;
}
#related_topics .gallery_grid_item:nth-child(even) {
border:1px solid #777!important;
border-width:0 1px;
}
#gallery_grid .gallery_grid_item:hover,#related_topics .gallery_grid_item:hover,#popular_galleries .gallery_grid_item:hover {
border:1px solid #86d3ff;
}
#gallery_grid .gallery_grid_image,#related_topics .gallery_grid_image,#popular_galleries .gallery_grid_image,#related_topics .gallery_list_image {
width:100%;
overflow:hidden;
opacity:.9;
filter:alpha(opacity=90);
transition:opacity .1s;
-moz-transition:opacity .1s;
-webkit-transition:opacity .1s;
-o-transition:opacity .1s;
text-align:center;
display:block;
margin:0 auto;
}
#gallery_grid .gallery_grid_item:hover .gallery_grid_image,#related_topics .gallery_grid_item:hover .gallery_grid_image,#popular_galleries .gallery_grid_item:hover .gallery_grid_image,#related_topics .gallery_list_item:hover .gallery_list_image {
opacity:1;
filter:alpha(opacity=100);
}
#popular_galleries .gallery_grid_info,#related_topics .gallery_grid_info {
width:100%;
position:absolute;
bottom:0;
font-weight:500;
}
#gallery_grid .gallery_grid_info {
height:62px;
}
#related_topics .gallery_grid_info {
height:54px;
}
#popular_galleries .gallery_grid_info {
height:58px;
}
#related_topics.grid .gallery_title,#popular_galleries .gallery_title {
color:#fff;
text-shadow:1px 0 1px #000;
font-size:15px;
line-height:18px;
}
#gallery_grid .gallery_title {
font-size:16px;
line-height:21px;
color:#000;
text-shadow:none;
font-weight:600;
border-top:2px solid #00a3ff;
padding:10px 15px 0;
}
#gallery_grid .gallery_title:hover {
text-decoration:underline;
}
#popular_galleries .gallery_title {
height:39px;
overflow:hidden;
}
.trans_bg {
width:100%;
height:100%;
background:#000;
opacity:.5;
filter:alpha(opacity=50);
}
.content_over_transparent {
position:absolute;
top:0;
width:100%;
height:100%;
overflow:auto;
box-sizing:border-box;
-moz-box-sizing:border-box;
}
#gallery_grid .content_over_transparent,#related_topics .content_over_transparent {
padding:10px 15px 0;
}
#popular_galleries .content_over_transparent {
padding:10px 10px 0;
}
It's "content_over_transparent". Appreciate any help, thanks!
Edit:
Here is the grid item HTML (adding more content as it saying it's mostly code):
<a class="gallery_grid_item" href="#">
<img class="gallery_grid_image" src="http://d1qfo1bk8s78mq.cloudfront.net/uimg/5f9aa039ecf554f73312d912e22c516e.x355" />
<div class="gallery_grid_info">
<div class="trans_bg"></div>
<div class="content_over_transparent">
<p class="gallery_title">Finding your Perfect Red</p>
</div>
</div>
</a>
Add overflow: hidden; in .content_over_transparent, and it displays well both on FF and Chrome :
.content_over_transparent {
position:absolute;
top:0;
width:100%;
height:100%;
overflow:auto; /* Delete that */
box-sizing:border-box;
-moz-box-sizing:border-box;
overflow: hidden; /* Add that */
}
By the way, in your question you forgot to wrap your HTML code in a #popular_galleries.
Here's the fiddle : Fiddle

Minify media query?

I have a completely valid CSS stylesheet, which works, and queries are recognized, but when I minify (and concatenate) the stylesheets with SquishIt, the media queries seemingly stop working, and I can't figure out why.
This is the minified CSS, beautified:
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video {
border:0;
outline:0;
font-size:100%;
font:inherit;
vertical-align:baseline;
background:transparent;
color:inherit;
margin:0;
padding:0;
}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {
display:block;
}
body {
line-height:1;
word-wrap:break-word;
overflow-x:hidden;
font-family:"Helvetica Neue","Lucida Grande","Segoe UI",Arial,Helvetica,Verdana,sans-serif;
}
ol,ul {
list-style:none;
margin-bottom:1em;
margin-left:30px;
}
blockquote,q {
quotes:none;
}
blockquote:before,blockquote:after,q:before,q:after {
content:none;
}
:focus {
outline:0;
}
table {
border-collapse:collapse;
border-spacing:0;
}
th {
text-align:left;
}
.layout-section {
width:93.75%;
text-align:left;
margin:0 auto;
}
header#layout-header {
margin-bottom:20px;
padding:12px 0;
}
header#layout-header h1 {
display:inline-block;
font-family:Calibri,Candara,Segoe,"Segoe UI",Optima,Arial,Helvetica,sans-serif;
font-weight:700;
font-size:2.4em;
margin:0 auto;
}
section#layout-content {
padding:6px 0;
}
section#layout-content h1 {
margin-bottom:12px;
}
#noscript-padding {
padding-bottom:37px;
}
#noscript-notice {
position:fixed;
top:0;
left:0;
width:100%;
z-index:99;
text-align:center;
font-family:sans-serif;
font-weight:700;
font-size:1.1em;
background-color:#ce756b;
color:#fff;
border-bottom:2px solid #9d0000;
cursor:not-allowed;
padding:6px 0;
}
#noscript-notice .ie-warning {
padding-top:6px;
}
html,body,form {
height:100%;
}
section#layout-container {
min-height:100%;
height:auto!important;
margin:0 auto -72px;
}
a#menu-icon {
float:right;
font-size:12px;
font-weight:700;
line-height:22px;
height:22px;
letter-spacing:.1em;
margin-top:10px;
color:#fff;
background:#4e4e4e;
text-transform:uppercase;
text-decoration:none;
-webkit-border-radius:3px;
-moz-border-radius:3px;
border-radius:3px;
-moz-background-clip:padding;
-webkit-background-clip:padding-box;
background-clip:padding-box;
padding:0 10px;
}
nav#menu {
margin-top:30px;
}
nav#menu ol {
background:#1c1c1c;
padding:5px 0;
}
nav#menu li a {
display:block;
font-weight:700;
text-transform:uppercase;
letter-spacing:.1em;
line-height:2em;
height:2em;
color:#fff;
text-decoration:none;
border-bottom:1px solid #383838;
padding:0 20px;
}
nav#menu li:last-child a {
border-bottom:none;
}
.left {
float:left;
}
.right {
float:right;
}
.hidden {
display:none!important;
}
h1 {
font-size:1.6em;
}
h2 {
font-size:1.5em;
}
h3 {
font-size:1.4em;
}
h4 {
font-size:1.3em;
}
h5 {
font-size:1.2em;
}
h6 {
font-size:1.1em;
}
hr {
border:0 none;
height:1px;
margin-bottom:20px;
}
blockquote {
margin-bottom:10px;
padding:10px 10px 1px;
}
pre,code {
font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,serif;
}
pre {
margin-bottom:10px;
max-height:600px;
overflow:auto;
width:auto;
padding:5px;
}
b,strong,.bold {
font-weight:700;
}
i,em,.italic {
font-style:italic;
}
del {
text-decoration:line-through;
}
img {
border:none;
}
ol,ul,li,p {
word-wrap:break-word;
}
ol {
list-style:decimal outside none;
}
ul {
list-style:disc outside none;
}
nav ol,nav ul {
list-style:none;
margin:inherit;
}
form legend {
padding-bottom:12px;
}
form input,form textarea,form button,form a.button {
margin-bottom:10px;
margin-right:3px;
display:inline-block;
padding:8px;
}
form input[type=text],form input[type=password],form textarea {
width:75%;
}
form input[type=submit],form form button.submit {
display:block;
text-align:center;
}
fieldset .field-validation-valid,fieldset .field-validation-error {
font-size:.8em;
display:block;
margin-bottom:15px;
}
fieldset .field-validation-valid.tooltip-icon,fieldset .field-validation-error.tooltip-icon {
display:inline-block;
margin-bottom:0;
background-image:url(/content/images/sprites/icons.png);
width:16px;
height:16px;
vertical-align:middle;
}
fieldset .field-validation-valid.tooltip-icon {
background-position:-208px -192px;
}
fieldset .field-validation-error.tooltip-icon {
background-position:-32px -192px;
}
.dialog {
display:none;
position:absolute;
top:50%;
left:50%;
font-size:100%;
background-color:#fff;
border:2px solid #222;
padding:15px;
}
.dialog>header {
font-family:Trebuchet MS,Helvetica,sans-serif;
font-size:1.4em;
font-weight:700;
margin-bottom:7px;
text-decoration:underline;
}
.dialog.notification {
cursor:pointer;
-webkit-box-shadow:2px 2px 5px #400;
-moz-box-shadow:2px 2px 5px #400;
box-shadow:2px 2px 5px #400;
color:#fff;
}
.dialog .dialog-buttons {
text-align:right;
margin-top:20px;
}
.tooltip {
text-align:center;
color:#fff;
background:#111;
position:absolute;
z-index:100;
padding:15px;
}
.tooltip:after {
width:0;
height:0;
border-left:10px solid transparent;
border-right:10px solid transparent;
border-top:10px solid #111;
content:'';
position:absolute;
left:50%;
bottom:-10px;
margin-left:-10px;
}
.tooltip.tooltip-top:after {
border-top-color:transparent;
border-bottom:10px solid #111;
top:-20px;
bottom:auto;
}
.tooltip.tooltip-left:after {
left:10px;
margin:0;
}
.tooltip.tooltip-right:after {
right:10px;
left:auto;
margin:0;
}
nav#menu li span {
color:#fff;
}
nav#menu li a:hover,nav#menu li a:focus {
color:#1c1c1c;
background:#ccc;
}
a,button,input[type=submit] {
cursor:pointer;
}
button.disabled,a.button.disabled {
cursor:not-allowed;
}
nav a,button.submit,input[type=submit] {
font-variant:small-caps;
}
input[type=submit],button.submit,a.button {
border:1px solid #313131;
background-color:#dbdbdb;
color:#171515;
}
form input.valid {
background-color:#F0FFFF;
}
form input.input-validation-error {
background-color:#fff0ff;
}
.dialog.notification.notification-error {
background-color:#ce756b;
border:2px solid #9d0000;
}
.dialog.notification.notification-message {
background-color:#ff8c00;
border:2px solid #cc8c00;
}
.exception {
padding:8px;
}
.exception>header {
font-weight:700;
font-size:1.1em;
color:#c00000;
margin-bottom:5px;
}
.exception>.stacktrace {
line-height:1.2em;
color:#333;
display:none;
}
.exception>.stacktrace p {
font-size:.8em;
margin:0 0 0 5px;
}
.exception>.inner {
margin-left:20px;
display:none;
}
section.rendering-error {
color:#C00000;
font-size:.8em;
font-weight:700;
margin:10px;
}
h2.error-description {
font-size:1em;
text-align:center;
color:#462046;
}
section#error-page {
text-align:center;
padding:20px;
}
section#error-page img {
width:160px;
}
img#nomnom-standing {
vertical-align:middle;
}
section.logon-container p.login-required {
display:block;
margin-bottom:24px;
}
form.site-logon {
vertical-align:top;
}
form.site-logon input[type=submit] {
margin:0 auto;
}
form.provider-logon {
display:block;
margin-top:35px;
}
form.provider-logon a.logon-provider-button {
display:inline-block;
margin:4px;
}
form.provider-logon a.provider-icon {
background-image:url(/content/images/sprites/providers-small.png);
width:32px;
height:32px;
}
form.provider-logon a.provider-icon.google-icon {
background-position:0 0;
}
form.provider-logon a.provider-icon.fb-icon {
background-position:-32px 0;
}
form.provider-logon a.provider-icon.twitter-icon {
background-position:-64px 0;
}
form.provider-logon a.provider-icon.yahoo-icon {
background-position:-96px 0;
}
section.create-post {
width:90%;
max-width:300px;
padding-left:12px;
margin:0 auto;
}
section.posts>article,section.more-posts {
margin-top:20px;
}
section.posts>article:first-child {
margin-top:0;
}
section.posts>article>header {
font-size:1.5em;
font-weight:700;
text-align:left;
}
section.posts>article>a.post-thumbnail img {
max-height:125px;
max-width:40%;
float:left;
margin-top:8px;
margin-right:12px;
margin-bottom:12px;
}
section.posts>article>a.post-image img {
max-height:300px;
max-width:100%;
margin-top:8px;
}
section.posts>article>section {
font-size:.8em;
line-height:1.2em;
text-align:left;
}
section.posts>article>section.post-description {
margin-top:8px;
}
div#push,footer#footer,fieldset .field-validation-valid.model-validation,h1.error-title,section#error-page>section#server-room,section#error-page>aside#error-content,section#error-page>footer,img#servers,section.preview-container {
display:none;
}
.clear,section.posts>article {
clear:both;
}
.center,section.logon-container,form.site-logon p,form.provider-logon section.provider-buttons,section.posts,section.more-posts {
text-align:center;
}
ins,a,a.button:hover {
text-decoration:none;
}
a:hover,#noscript-notice a {
text-decoration:underline;
}
#media only screen andmin-width768px{
header#layout-header {
margin-bottom:30px;
}
#noscript-padding {
padding-bottom:22px;
}
div#push {
display:inherit;
height:72px;
}
footer#footer {
display:inherit;
margin-top:40px;
height:12px;
text-align:center;
font-size:.7em;
padding:10px 0;
}
section#layout-content {
position:relative;
}
nav#menu {
margin-top:0;
position:absolute;
top:16px;
right:3.125%;
max-width:45%;
}
nav#menu ol {
-webkit-border-radius:4px;
-moz-border-radius:4px;
border-radius:4px;
-moz-background-clip:padding;
-webkit-background-clip:padding-box;
background-clip:padding-box;
padding:5px;
}
a#menu-icon,nav#menu li.nav-top {
display:none;
}
nav#menu li {
display:inline-block;
}
nav#menu li a {
float:left;
border:none;
-webkit-border-radius:2px;
-moz-border-radius:2px;
border-radius:2px;
-moz-background-clip:padding;
-webkit-background-clip:padding-box;
background-clip:padding-box;
border-bottom:inherit;
padding:0 10px;
}
header#layout-header h1 {
font-size:3.2em;
}
.exception {
margin-bottom:20px;
}
img#server {
padding-right:2px;
}
img#nomnom {
padding-left:4px;
}
section#error-page {
max-width:500px;
margin:0 auto;
}
section#error-page img {
width:200px;
}
section#error-page>img#notfound-sign,section#error-page>aside#error-content {
display:inline-block;
vertical-align:middle;
}
aside#error-content {
width:250px;
padding-left:30px;
border-left:1px solid #642D64;
margin-left:10px;
text-align:left;
}
aside#error-content header {
color:#642D64;
font-weight:700;
margin-bottom:20px;
}
aside#error-content p {
font-size:.9em;
line-height:1.3em;
margin-bottom:10px;
}
section#error-page>footer {
clear:both;
}
section#error-page>footer .apologies {
text-align:center;
padding-top:30px;
color:#642D64;
clear:left;
font-size:1.2em;
}
section#error-page>footer a {
text-align:center;
display:block;
padding-top:3px;
}
section.logon-container {
margin-top:3%;
}
form.site-logon {
display:inline-block;
margin-right:15px;
width:300px;
}
form.provider-logon {
padding-left:30px;
border-left:1px solid #ddd;
margin-top:0;
display:inline-block;
}
form.provider-logon a.provider-icon {
background-image:url(/content/images/sprites/providers-large.png);
width:100px;
height:60px;
}
form.provider-logon a.provider-icon.google-icon {
background-position:0 0;
}
form.provider-logon a.provider-icon.fb-icon {
background-position:-100px 0;
}
form.provider-logon a.provider-icon.twitter-icon {
background-position:-200px 0;
}
form.provider-logon a.provider-icon.yahoo-icon {
background-position:-300px 0;
}
form.provider-logon section.provider-buttons {
width:230px;
margin:0 auto;
}
section.create-post {
max-width:400px;
padding-left:20px;
}
section.posts {
min-width:700px;
max-width:900px;
margin:0 auto;
}
section.posts>article:first-child+article {
margin-top:0;
}
section.posts>article {
clear:none;
float:left;
width:45%;
}
section.posts>article.even {
margin-right:35px;
clear:both;
}
section.posts>article>a.post-thumbnail img {
max-height:200px;
max-width:50%;
}
section.posts>article>a.post-image img {
max-height:450px;
max-width:95%;
margin-top:16px;
}
.exception>.stacktrace,.exception>.inner,h1.error-title {
display:inherit;
}
}
#media only screen andmin-width1024px{
header#layout-header {
margin-bottom:40px;
}
nav#menu {
top:28px;
}
header#layout-header h1 {
font-size:4.6em;
}
section#error-page {
max-width:1200px;
}
section#error-page>section#server-room {
margin-right:20px;
display:inherit;
float:left;
}
section#error-page>section#server-room img {
width:180px;
}
section#error-page>footer {
display:inherit;
}
img#server {
vertical-align:middle;
}
img#nomnom {
vertical-align:bottom;
}
section#error-page>img#servers {
margin-right:20px;
display:inherit;
float:left;
width:40%;
}
section#error-page>img#nomnom-standing,section#error-page>aside#error-content {
margin-top:20px;
}
section.posts {
max-width:1000px;
}
section.posts>article,section.more-posts {
margin-top:32px;
}
section.posts>article.even {
margin-right:50px;
}
}
#media only screen\0{
#noscript-padding {
padding-bottom:67px;
}
}
#media only screen\0 andmin-width768px{
#noscript-padding {
padding-bottom:47px;
}
}
I'm using YuiCompressor,
but apparently it minifies media queries as:
#media only screen andmin-width768px{
How should I fix this?
Post here which decribes the same problem and the solution is to download the latest version of the compression software:
http://www.456bereastreet.com/archive/201012/yui_compressor_and_css_media_queries/

why wont all of the text wrap around the post image in wordpress with alighnleft present?

below is my style.css for my wordpress theme. when i write a post and insert an image, only a few lines of text are wrapping around the image and the rest drops below the bottom of the image. there is plent of room to the right for text. I choose align left when inserting the image in wordpress but it still has a problem. something wrong with this css perhaps?
body {
background:#000 url('images/bg.jpg') no-repeat center center fixed;
-webkit-background-size:cover;
-moz-background-size:cover;
-o-background-size:cover;
background-size:cover;
font-family:"proxima-nova-1", "proxima-nova-2", Helvetica, sans-serif !important;
font-size:15px;
}
.first {
margin-left:0 !important;
}
.last {
margin-right:0 !important;
}
.alpha {
margin-top:0 !important;
}
.first-pad {
padding-left:0 !important;
}
.last-pad {
padding-right:0 !important;
}
.alpha-pad {
padding-top:0 !important;
}
.omega-pad {
padding-bottom:0 !important;
}
.offset-top {
top:0;
}
.offset-bottom {
bottom:0;
}
.offset-left {
left:0;
}
.offset-right {
right:0;
}
.text-left {
text-align:left;
}
.text-center {
text-align:center;
}
.text-right {
text-align:right;
}
mark,.search-term {
background:#EBE16F;
}
.help,.info,.error,.success {
margin:10px;
padding:5px 18px;
border:1px solid #cecece;
}
.help {
border-color:#E0C618;
background:#EBE16F;
}
.info {
border-color:#92cae4;
background:#d5edf8;
}
.error,.dsq-kb24 {
border:none;
background:#FFF;
margin:0 0 70px;
padding:21px;
-webkit-border-radius:3px;
-moz-border-radius:3px;
-o-border-radius:3px;
border-radius:3px;
}
.success {
border-color:#c6d880;
background:#e6efc2;
}
.relative {
position:relative;
}
.absolute {
position:absolute;
}
.nega {
z-index:-1;
}
a,a:visited {
color:#969696;
}
a: link {
-webkit-tap-highlight-color:rgba(0,0,0,0);
}
h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5 {
font-weight:500;
}
h1 a,.h1 a,h2 a,.h2 a,h3 a,.h3 a,h4 a,.h4 a,h5 a,.h5 a {
text-decoration:none;
}
h1,.h1 {
font-size:2.5em;
line-height:1.333em;
margin:0.7em 0;
}
h2,.h2 {
font-size:24px;
line-height:1;
font-weight:700;
}
h3,.h3 {
font-size:1.125em;
}
h4,.h4 {
font-size:1.1em;
font-weight:700;
}
h5,.h5 {
font-size:0.846em;
line-height:2.09em;
text-transform:uppercase;
letter-spacing:2px;
}
#logo {
margin:1.1em 0;
}
#container {
margin:0 auto;
padding:28px 0 49px;
width:980px;
}
header hgroup h1 {
margin:0;
width:287px;
padding:15px 0;
float:left;
}
header hgroup h1 a {
background:url('images/logo.png') no-repeat 0 0;
display:block;
height:40px;
outline:none;
text-indent:-9999px;
}
header hgroup p {
width:224px;
margin:0;
float:right;
position:relative;
-webkit-border-radius:3px 3px 0 0;
-moz-border-radius:3px 3px 0 0;
-o-border-radius:3px 3px 0 0;
border-radius:3px 3px 0 0;
}
.translate-span {
text-decoration:none;
color:#666;
font-weight:normal;
}
header hgroup #search #searchform input {
height:42px;
padding:0 14px;
margin:0 42px 0 0;
border:none;
outline:none;
line-height:1;
background-color:#E1E1E1;
-webkit-border-radius:3px 0 0 0;
-moz-border-radius:3px 0 0;
-o-border-radius:3px 0 0 0;
border-radius:3px 0 0 0;
-webkit-transition:background-color 0.3s ease-in-out;
-moz-transition:background-color 0.3s ease-in-out;
-o-transition:background-color 0.3s ease-in-out;
transition:background-color 0.3s ease-in-out;
font-family:"proxima-nova-1", "proxima-nova-2", Helvetica, sans-serif !important;
}
header hgroup #search #searchform input:active,header hgroup #search #searchform input:hover,header hgroup #search #searchform input:focus {
background-color:#fff;
}
header hgroup #search #searchform #searchsubmit {
height:42px;
width:42px;
margin:0;
padding:0;
border:none;
outline:none;
text-indent:-999em;
background:transparent url('images/btnsearch.png') no-repeat;
}
header hgroup #search #searchform #searchsubmithover {
height:42px;
width:42px;
background:transparent url('images/btnsearch-hvr.png') no-repeat;
}
header hgroup .top-social {
float:left;
margin-top:35px;
margin-left:440px;
}
header hgroup .top-social a {
margin-left:16px;
float:left;
display:block;
height:20px;
}
header hgroup .top-social a.tw {
background:transparent url('images/kb-tw.png') no-repeat;
width:27px;
}
header hgroup .top-social a.fb {
background:transparent url('images/kb-fb.png') no-repeat;
width:11px;
}
nav {
width:100%;
background:#000;
float:left;
-webkit-border-radius:3px 0 0 0;
-moz-border-radius:3px 0 0;
-o-border-radius:3px 0 0 0;
border-radius:3px 0 0 0;
}
nav ul li a {
color:#0ff;
display:block;
float:left;
font-size:20px;
height:40px;
padding:16px 15px 0 26px;
text-decoration:none;
line-height:20px;
}
nav ul li a:hover,nav ul li a:active,nav ul li a:visited {
color:#0ff;
}
nav ul li a.kb-china {
background:transparent url('images/kb-china.gif') no-repeat 112px 23px;
padding:16px 44px 0 21px;
}
.china {
position:fixed;
right:110px;
top:0;
padding:1px 7px 0;
background:#000;
border-bottom:1px solid #444;
z-index:9999;
}
header section span {
float:left;
width:224px;
}
#main {
background:#e1e1e1;
}
.hero {
height:400px;
overflow:hidden;
width:980px;
}
.slides_container {
width:980px;
height:400px;
}
.slides_container div {
width:980px;
height:400px;
display:block;
}
.slide-bot {
width:53px;
height:53px;
top:50%;
margin-top:-26px;
z-index:999;
cursor:pointer;
}
.slide-prev {
background:url('images/arrow-left.png');
left:15px;
}
.slide-next {
background:url('images/arrow-right.png');
right:15px;
}
#single-banner {
width:980px;
background-color:#282828;
-webkit-background-size:cover;
-moz-background-size:cover;
-o-background-size:cover;
background-size:cover;
background-position:center center;
}
#single-banner hgroup {
margin:0;
padding:210px 0 0;
}
#single-banner hgroup h2 {
margin:0;
padding:21px 28px;
font-size:50px;
text-transform:uppercase;
font-weight:800;
color:#FFF;
background-color:rgba(56, 56, 56, 0.6);
}
#banner {
width:980px;
background:#eee url('images/bg-header.jpg') center center;
}
#banner h2 {
margin:0;
padding:21px 28px;
font-size:50px;
text-transform:uppercase;
font-weight:800;
color:#393939;
}
#banner h2 span {
font-weight:300;
}
#single-updates {
margin:0;
padding:28px;
background:#2f343a url('images/scale-bg.gif') repeat;
}
#updates {
margin:0;
padding:28px 28px 0;
background:transparent url('images/bg-\A \A bottom.png') bottom center no-repeat;
}
#updates-container {
background:#2f343a url ('images/scale-bg.gif') repeat;
}
#updates article,#single-updates article {
width:924px;
height:168px;
margin:0 0 28px;
background-color:#FFF;
-webkit-border-radius:0 3px 3px 0;
-moz-border-radius:0 3px 3px 0;
-o-border-radius:0 3px 3px 0;
border-radius:0 3px 3px 0;
-webkit-transition:background-color 0.3s ease-in-out;
-moz-transition:background-color 0.3s ease-in-out;
-o-transition:background-color 0.3s ease-in-out;
transition:background-color 0.3s ease-in-out;
}
#single-updates article {
-webkit-border-radius:3px;
-moz-border-radius:3px;
-o-border-radius:3px;
border-radius:3px;
height:auto;
padding:0;
margin:0 auto;
}
#single-updates article article.post_content {
height:auto;
padding:21px;
}
#updates article:hover {
background-color:#EDEDED;
}
#updates article figure {
width:294px;
height:100%;
background:#0a0a0a url('images/def-update.gif') no-repeat center center;
}
#updates article figure a {
width:294px;
height:100%;
display:block;
}
#updates article div {
width:630px;
height:100%;
position:relative;
}
#updates article div h2 {
margin:0;
padding:12px 21px;
background-color:#ededed;
-webkit-border-radius:0 3px 0 0;
-moz-border-radius:0 3px 0 0;
-o-border-radius:0 3px 0 0;
border-radius:0 3px 0 0;
-webkit-transition:background-color 0.3s ease-in- out;
-moz-transition:background-color 0.3s ease-in-out;
-o-transition:background- color 0.3s ease-in-out;
transition:background-color 0.3s ease-in-out;
}
#updates article div h2 a {
color:#5F7993;
-webkit-transition:color 0.3s ease-in-out;
-moz-transition:color 0.3s ease-in-out;
-o-transition:color 0.3s ease-in-out;
transition:color 0.3s ease-in-out;
}
#updates article:hover div h2 {
background-color:#C7CBCF;
}
#updates article div p {
margin:14px 21px;
font-size:13px;
}
#updates article div aside {
width:588px;
position:absolute;
bottom:0;
margin:0 21px;
padding:14px 0;
border-top:1px solid #ededed;
}
#single-updates article div aside {
width:882px;
bottom:0;
margin:0 21px;
padding:14px 0 12px;
border-bottom:1px solid #ededed;
}
#single-updates article div aside .left {
padding-top:5px;
}
#updates article:hover div aside {
border-top:1px solid #d8dbdf;
}
#updates article div aside a,#single-updates article div aside a {
float:left;
color:#969696;
padding-left:17px;
margin-right:21px;
font-size:13px;
line-height:1;
text-decoration:none;
background:transparent url('images/update-sprite.gif') no-repeat left top;
-webkit-transition:color 0.3s ease-in-out;
-moz-transition:color 0.3s ease-in-out;
-o-transition:color 0.3s ease-in-out;
transition:color 0.3s ease-in-out;
}
.calendar {
background-position:0 -1px !important;
}
.comment {
background-position:0 -14px !important;
}
#updates article div aside a:nth-child(3),#single-updates article div aside a:nth-child(3) {
background-position:0 -27px;
margin-right:0;
}
#updates article div aside a:nth-child(n+4),#single-updates article div aside a:nth-child(n+4) {
background:none;
padding-left:0;
margin-right:0;
}
#updates article div aside a:nth-child(n+4):before,#single-updates article div aside a:nth-child(n+4):before {
content:", ";
margin-right:7px;
}
#updates article div aside .post-edit-link,#single-updates article div aside .post-edit-link {
margin-left:21px;
background-position:0 -27px !important;
}
#updates aside,#media-updates aside {
margin:0 0 28px;
padding:0;
width:100%;
}
#updates aside div.navigation,#media-updates aside div.navigation {
margin:0;
padding:0;
font-size:21px;
font-weight:700;
display:block;
}
#updates aside div.navigation li *,#media-updates aside div.navigation li *,.btn,.button {
border:none;
padding:7px 14px;
color:#5F7993;
background-color:#EDEDED;
display:block !important;
float:left !important;
-webkit-transition:background-color 0.3s ease-in-out, color 0.3s ease-in-out;
-moz-transition:background-color 0.3s ease-in-out, color 0.3s ease-in- out;
-o-transition:background-color 0.3s ease-in-out, color 0.3s ease-in-out;
transition:background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
#updates aside div.navigation li .next,#updates aside div.navigation li .prev {
font-weight:300 !important;
}
#updates aside div.navigation li .prev {
-webkit-transform:rotate(-180deg);
-moz-transform:rotate(-180deg);
-ms-transform:rotate(-180deg);
-o-transform:rotate(-180deg);
filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
}
.wp-paginate li {
float:left !important;
}
#single-updates article div aside ul {
margin:0;
width:265px;
}
ul.socialmedia li {
float:left;
display:inline;
height:23px;
width:80px;
}
ul.socialmedia li.t {
width:105px;
float:right;
}
ul.socialmedia li.g {
width:60px;
float:right;
}
#media-updates {
margin:0;
padding:28px 28px 0;
background:transparent url ('images/bg-bottom.png') bottom center no-repeat;
}
#media-updates .media-post {
width:294px;
margin:0 21px 28px 0;
}
#media-updates .media-post figure {
width:294px;
height:168px;
background:#EDEDED url('images/def-update.gif') no-repeat center center;
}
#media-updates .media-post figure h2 {
padding:12px;
margin:0;
}
#media-updates .media-post figure a {
width:294px;
height:168px;
display:block;
line-height:0;
color:#5F7993;
}
#media-updates .media-post figcaption {
width:294px;
background-color:#EDEDED;
}
#media-updates .media-post figcaption h3 {
margin:0;
padding:14px;
font-weight:700;
-webkit-transition:background-color 0.3s ease-in-out, color 0.3s ease-in-out;
-moz-transition:background-color 0.3s ease-in-out, color 0.3s ease-in-out;
-o-transition:background-color 0.3s ease-in-out, color 0.3s ease-in-out;
transition:background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
#media-updates .media-
post:hover figcaption h3 {
background-color:#C7CBCF;
color:#FFF;
}
#media-updates .media-post figcaption h3 a {
display:block;
color:#5F7993;
}
.jcarousel-prev,.jcarousel-next {
cursor:pointer;
height:53px;
width:53px;
top:210px;
position:absolute;
}
.banner-images {
height:112px;
}
.ads {
background:#fff;
margin:0;
padding:23px;
}
.ads li {
float:left;
list-style:none;
margin-right:11px;
width:304px;
}
.ads li:last-child {
margin-right:0;
}
.ads li a {
border:5px solid #fff;
-webkit-border-radius:5px;
-moz-border-radius:5px;
-o-border-radius:5px;
border-radius:5px;
display:block;
height:112px;
background-color:#393939;
}
footer {
background:#1b1b1b;
-webkit-border-radius:0 0 3px 3px;
-moz-border-radius:0 0 3px 3px;
-o-border-radius:0 0 3px 3px;
border-radius:0 0 3px 3px;
height:57px;
clear:both;
padding-top:0;
padding-right:30px;
padding-bottom:0;
padding-left:30px;
}
footer div {
width:920px;
float:left;
}
footer ul {
color:#707070;
float:left;
font-size:14px;
margin:0;
padding:20px 0 0;
list-style:none;
}
footer ul li:before {
content:"\00b7";
margin:0 5px;
}
footer ul li:first-child:before {
content:"";
margin:0;
}
footer ul li a {
color:#fff !important;
padding:0 3px;
text-decoration:none;
-moz-transition:all .3s ease-in-out;
-webkit-transition:all .3s ease-in-out;
-o-transition:all .3s ease-in-out;
transition:all .3s ease-in-out;
}
footer ul li a:hover {
color:#c7cbcf !important;
}
footer span {
color:#fff;
float:right;
font-size:14px;
padding:20px 0 0;
}
footer a.hs3 {
float:right;
margin-top:18px;
}
footer a img {
zoom:1px;
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
filter:alpha(opacity=40);
-moz-opacity:0.4px;
-khtml-opacity:0.4px;
opacity:0.4px;
-webkit-transition:all .3s ease-in-out;
-moz-transition:all .3s ease-in-out;
-o-transition:all .3s ease-in-out;
transition:all .3s ease-in-out;
}
footer a img:hover {
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
filter:alpha(opacity=100);
-moz-opacity:1px;
-khtml-opacity:1px;
opacity:1px;
}
.hentry {
padding:2.2em 20px 0;
}
.single-title,.page-title {
margin:0 0 0.375em;
}
.archive_title {
padding:0 20px;
margin:1.1em 0 0.75em;
}
.meta {
font-size:0.9em;
letter-spacing:0.05em;
line-height:1.75em;
color:#999;
margin:0.875em 0;
}
.post_content {
width:882px !important;
padding:14px;
}
.post_content p {
line-height:24px;
font-size:15px;
margin:0 auto 16px;
width:882px;
display:inline-block;
vertical-align:top;
zoom:1px;
}
.post_content h1 {
margin:0;
}
.post_content ul,.post_content ol,.post_content table,.post_content dl {
margin:1.5em 0;
}
.post_content ul,.post_content ol {
list-style-position:outside;
line-height:1.5;
margin-left:2.2em;
margin-right:2.2em;
}
.post_content li {
margin-bottom:0.75em;
}
.post_content ul li {
list-style-type:disc;
}
.post_content ol li {
list-style-type:decimal;
}
.post_content a {
color:#969696;
-moz-transition:all .3s ease-in-out;
-webkit-transition:all .3s ease-in-out;
-o-transition:all .3s ease-in-out;
transition:all .3s ease-in-out;
}
.post_content pre {
font-family:"proxima-nova-1", "proxima-nova-2";
font-size:13px;
text-align:center;
line-height:18px;
color:#969696;
background:#F5F5F5;
width:852px;
margin:7px 0 0;
padding:7px 14px;
border:1px solid #EDEDED;
-webkit-border-radius:4px;
-moz-border-radius:4px;
border-radius:4px;
display:inline-block;
vertical-align:top;
zoom:1px;
}
.post_content address,.post_content p.intro {
font-style:normal;
font-size:20px;
line-height:26px;
color:#999;
border-bottom:1px solid #EDEDED;
padding:0 0 21px;
margin-bottom:21px;
}
.post_content blockquote {
font-style:italic;
line-height:1.6em;
margin:1.5em 2.2em;
}
.post_content blockquote:before {
font-family:Georgia, serif;
content:"“";
font-size:2.75em;
text-indent:-0.8em;
margin-top:.1em;
float:left;
opacity:.3;
}
.post_content dl {
margin:1.75em 0;
}
.post_content dt {
margin-top:1.25em;
font-weight:700;
}
.post_content dd {
font-style:italic;
margin-top:0.5em;
line-height:1.6em;
}
.post_content img {
margin:0 0 1.5em;
max-width:100%;
}
.alignleft,img.alignleft {
margin-right:1.5em;
display:inline;
float:left;
}
.alignright,img.alignright {
margin-left:1.5em;
display:inline;
float:right;
}
.aligncenter,img.aligncenter {
margin-right:auto;
margin-left:auto;
display:block;
clear:both;
}
.post_content video {
margin:1.5em 0;
max-width:100%;
display:block;
}
.post_content object {
display:block;
margin:1.5em 0;
max-width:100%;
}
.post_content code {
font-size:0.9em;
line-height:1.7em;
background:#eee;
border:2px solid #cecece;
padding:1px;
}
.wp-caption {
margin-bottom:1.5em;
text-align:center;
padding-top:5px;
}
.wp-caption img {
border:0 none;
padding:0;
margin:0;
}
.wp-caption .wp-caption-text {
font-size:0.8em;
font-style:italic;
margin:.6em 0 -0.2em;
}
.hentry footer {
clear:both;
margin:1.5em 0 0;
padding-bottom:2.2em;
}
.gform_wrapper {
margin:0 !important;
float:left;
}
.gform_footer input.button,button,input[type="button"],input[type="reset"],input
[type="submit"] {
border:none;
outline-style:none;
padding:14px;
color:#5F7993;
background-color:#EDEDED;
font-weight:700;
font-family:"proxima-\A \A nova-1", "proxima-nova-2", Helvetica, sans-serif !important;
font-size:21px;
-moz-transition:all .3s ease-in-out;
-webkit-transition:all .3s ease-in-out;
-o-transition:all .3s ease-in-out;
transition:all .3s ease-in-out;
}
.gform_wrapper .ginput_complex .ginput_left label,.gform_wrapper .ginput_complex .ginput_right label {
text-transform:uppercase;
}
.gform_wrapper li,.gform_wrapper form li {
margin:0 0 14px;
}
.gform_wrapper form li input,.gform_wrapper form li textarea,#comment {
border:1px solid #DDD;
outline:none;
padding:7px;
background:#f5f5f5;
-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.05);
-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.05);
-webkit-border-radius:4px;
-moz-border-radius:4px;
border-radius:4px;
-moz-transition:all .3s ease-in-out;
-webkit-transition:all .3s ease-in-out;
-o-transition:all .3s ease-in-out;
transition:all .3s ease-in-out;
font-family:"proxima-nova-1", "proxima-nova-2", Helvetica, sans-serif !important;
font-size:13px;
}
.gform_wrapper form li textarea {
width:516px !important;
max-width:516px;
}
.gform_wrapper form li input:focus,.gform_wrapper form li textarea:focus,#comment:focus {
border:1px solid #ccc;
background:#fff;
}
.gform_wrapper .gform_footer {
margin:0;
padding:0;
}
#gforms_confirmation_message {
margin-top:33px !important;
width:539px;
float:left;
}
#comment {
width:866px;
}
div#comments-form h2#comments-header {
margin-top:28px;
}
div#comments-form .commentsSmall {
font-size:13px;
}
#comments li {
padding:21px 21px 7px;
border:1px #ddd solid;
list-style:none;
background:#f5f5f5;
-webkit-border-radius:4px;
-moz-border-radius:4px;
border-radius:4px;
margin-top:14px;
margin-bottom:14px;
}
.commentText {
width:350px;
}
.dsq-kb24 ul,.dsq-kb24 ol {
list-style:none;
}
.omega,#disqus_thread,.dsq-trackback-url {
margin-bottom:0 !important;
}
.left,footer ul li,nav .nav-previous {
float:left;
}
.right,header hgroup #search #searchform,nav .nav-next {
float:right;
}
a:hover,a: focus,#updates article div aside a:hover,#single-updates article div aside a:hover,.post_content a:hover {
color:#5F7993;
}
::selection,::-moz-selection {
background:#e8b313;
color:#fff;
text-shadow:none;
}
header hgroup .top-social a.tw:hover,header hgroup .top-social a.fb:hover {
background-position:0 -20px;
}
#updates article div h2 a:hover,#updates article:hover div h2 a,#media-updates .media-
post:hover figcaption h3 a {
color:#FFF;
}
#updates aside div.navigation li a:hover,#updates aside div.navigation .current,#media-updates aside div.navigation li a:hover,#media-updates aside div.navigation .current,#updates aside div.navigation li .arrow:hover,.gform_footer input.button:hover,button:hover,input[type="button"]:hover,input[type="reset"]:hover,input[type="submit"]:hover {
color:#FFF;
background-color:#C7CBCF;
}
.post_content p:first-child,.comments-header {
margin-top:0;
}
.post_content p:last-child,.post_content h1:last-child,#commentform p.last-button,#comments-closed {
margin-bottom:0;
}
.gform_edit_link,#dsq-content #dsq-footer {
display:none !important;
}
Try replacing your css for the images with this:
.aligncenter{
display: block;
margin: 5px auto;
}
.alignright{
float: right;
margin: 5px;
}
.alignleft{
float: left;
margin: 5px;
}
That's what I use in my themes. You can get the text to wrap in different way by aligning the images left/right, or sometimes it's best to use align none.

Resources