Website shows white space on the right part of page - html
We are making a website in a team, and we struck at the famous white blank space in the right of page problem. We are looking for other possible causes.
In the homepage, there is a blank white part on the right for
iOS(Iphone5 and Ipad, browsers are Safari and Chrome)
Mac(Browsers are Safari and Chrome)
Ubuntu(Firefox)
but, the same problem is not seen in the Android with chrome or Ubuntu with chrome.
We have tried the following suggestions in the StackOverflow, but no luck.
Setting body and html margin and padding 0
Setting img width 100%
Checking font sizes(most of them is defined 1.2 rem)
Also, I have checked each layout in the dev tools, but none of them appears to exceed body width.
We have also tried to add an extra div after footer, or changing position:fixed to-the-page-top, but the result were the same.
Anyone have a sugguestion?
html, body, div, span, {
margin:0;
padding:0;
border:0;
outline:0;
font-size:100%;
vertical-align:baseline;
background:transparent;
}
body {
line-height:1;
}
article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {
display:block;
}
nav ul {
list-style:none;
}
blockquote, q {
quotes:none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content:'';
content:none;
}
a {
margin:0;
padding:0;
font-size:100%;
vertical-align:baseline;
background:transparent;
}
input, button, textarea, select {
margin: 0;
padding: 0;
background: none;
border: none;
border-radius: 0;
outline: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
/*all-1.css*/
#charset "UTF-8";
html {
font-size: 62.5%;
}
body {
position: relative;
background-color: #fff;
color: #333;
font-size: 1.2rem;
font-family: "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
*, *::before, *::after {
box-sizing: border-box;
}
a:link, a:visited, a:hover, a:active {
text-decoration: none;
}
font-family:'Helvetica Neue','Helvetica','Arial',YuGothic,'Yu Gothic','Hiragino Kaku Gothic ProN','ヒラギノ角ゴ ProN W3','メイリオ', Meiryo,'MS ゴシック',sans-serif;
.tyousei{}
.clearfix::after{
content: '';
display:block;
clear: both;
}
.btn img{
height:40%;
margin-top: 10px;
margin-left: 10px;
}
.btn .right-icon{
position: absolute;
top: 7px;
right: 10px;
}
.btn::before{
content: "";
position: absolute;
left:0%;
bottom:0px;
display: block;
width: 0%;
height: 2px;
background: #2F4D55;
transition: all .4s ease;
}
.btn:hover::before{
width: 100%;
}
#up-btn a{
position: fixed;
right:1%;
bottom:40%;
z-index: 5;
opacity: 0.8;
text-align: center;
height:50px;
width:50px;
padding-top: 8px;
border-radius: 25px;
background-color:#666;
}
#up-btn img{
display: inline-block;
width:65%;
height:75%;
}
.header{
width: 100%;
font-size: 0;
}
.global-navi{
height: 50px;}
.logo{
max-width: 250px;
width:40%;
min-width:200px;
float: left;
padding:20px 10px 10px 20px;
background-color: rgba(255,255,255,0.4)
}
.logo img{
display: block;
width: 100%;
height: auto;
}
.form-top{display: none;}
.sbox > *{
font-size: 1.2rem;
}
.form .sbtn{
width:34px;
height: 28px;
position: absolute;
left:517px;
top: 12px;
border:none;
font-size:20px;
outline: 0;
}
.suggestion{
border-bottom: solid 1px #666;
border-right: solid 1px #666;
border-left: solid 1px #666;
z-index:10;
}
.suggestion:hover{
background-color: rgba(240,240,240,1);
}
.word-suggestion{
width: 236px;
height: 30px;
font-size: 16px;
text-align: left;
padding: 7px 5px;
background-color: rgba(255,255,255,1);
color:#333;
}
.article-suggestion{
width: 350px;
height: 75px;
font-size:16px;
padding: 5px;
background-color: rgba(255,255,255,1);
}
.article-suggestion-title{
position: relative;
height:18px;
overflow:hidden;
font-weight:normal;
letter-spacing: 1px;
line-height:18px;
margin-bottom:12px;
text-decoration: underline;
color:#333;
}
.article-suggestion-desc{
position: relative;
height:30px;
overflow:hidden;
font-size:14px;
line-height: 16px;
color: #666;
padding-left:6px;
}
.article-suggestion-desc::after{
content: "";
position: absolute;
top:0px;
left:0px;
width:3px;
height:100%;
background-color: #74c0d5;
}
.article-number{
width: 350px;
height:30px;
background-color: rgba(255,255,255,0.7);
z-index:20;
font-size:14px;
color:#666;
text-align: center;
padding-top: 7px;
}
.result{
position: absolute;
top:41px;
left:282px;
z-index: 20;
}
#no-result{
width: 350px;
height:210px;
background-color: rgba(255,255,255,1);
border-bottom: solid 1px #666;
border-right: solid 1px #666;
border-left: solid 1px #666;
font-size:16px;
line-height:20px;
padding:10px;
z-index: 10;
}
#no-result .kobetuba-mail-link{
display: block;
width:80%;
height:60px;
text-align: center;
margin:10px auto 5px;
border: solid 1px #666;
padding: 2px;
cursor: pointer;
border-radius: 3px;
position: relative;
}
#no-result .kobetuba-mail-link img{
height:32px;
}
#no-result .kobetuba-mail-link p{
font-size: 16px;
color:#666;
}
#no-result .right-icon{
position: absolute;
top:15px;
right:5px;
color:#666;
}
#no-result .kobetuba-mail-link:hover{
background-color: rgba(230,230,230,0.6)
}
#media (min-width: 800px){
.form-top{
display: block;
position:relative;
}
}
.navi-box{
float:right;
}
.navi{
display: inline-block;
vertical-align: middle;
padding: 5px 2px;
}
#media (max-width:365px){
.article-and-toiro{
display: none;
}
}
#media (min-width:768px){
.article-and-toiro p
{font-size:16px;}
}
.message-box :hover{
opacity: 0.3;
}
.account :hover{
opacity: 0.7;
}
.article-and-toiro:hover {
background:rgba(255,255,255,0.2);
}
.navi-icon a{
position:relative
}
.navi-icon span{
display: inline-block;
top: -45px;
left: 30px;
width:20px;
height: 20px;
border-radius: 50%;
background-color: rgba(255,255,255,0.8);
position:absolute;
color: #666;
text-align: center;
line-height: 20px;
vertical-align: middle;
font-size:16px;
}
.wrapper {
width: 96%;
min-width: 320px;
max-width: 1200px;
padding-bottom:50px;
margin: 10px auto 20px;
}
footer{
display: none;
}
#media (max-width:800px){
footer{
display: block;
}
footer{
box-shadow: 0px -3px 4px -2px rgba(0, 0, 0, 0.1);}
.footer-bottom {
width: 100%;
position: fixed;
bottom: 0;
height:44px;
border-top:double #2F4D55;
background-color: #fff;
padding-top: 5px;
/*background-color:#2F4D55;*/
}
.footer-bottom.close{
box-shadow: 0px -6px 8px -2px rgba(0, 0, 0, 0.3);}
.footer-bottom img{
height:70%;
display: block;
margin:0 auto;
}
.footer-open{
width:100%;
position: fixed;
bottom: 0;
background-color:#fff;
z-index: 10;
}
.footer-bottom.open{
border-top:solid 1px #696969
}
.category-list-bottom {
width:100%;
position: fixed;
top:0px;
bottom: 0px;
left:0px;
right:0px;
overflow-y: scroll;
height:100%;
text-align: center;
background-color:rgba(255,255,255,0.9);
box-shadow: 0px -6px 8px -2px rgba(0, 0, 0, 0.3);
}
}
.category-list-bottom{
}
.close-btn{
height:30px;
background-color: rgba(100,100,100,0.3)
}
.down-icon{
color: #666;
}
.category-list-bottom .form-bottom{
display: inline-block;
width: 100%;
padding-bottom:10px;
position: relative;
}
.category-list-bottom .form .sbtn{
position: absolute;
top:41px;
left:10px;
width:40px;
height:40px;
border-radius:20px;
background-color: transparent;
border:solid 2px #2F4D55;
color:#737575;
box-shadow: 2px 2px 4px -2px rgba(0, 0, 0, 0.3);
}
.category-list-bottom .form-bottom{
display: inline-block;
width: 100%;
}
.category-list-bottom .form .sbox{
position:absolute;
top:18px;
right:11%;
left:2%;
width:85%;
height:44px;
font-size: 16px;
border:solid 1px #535353;
}
.category-list-bottom .form .sbtn{
position: absolute;
top:20px;
right:2%;
left:88%;
border-radius: 50%;
}
.result-word-suggestion{
position: absolute;
top:64px;
right: 11%;
left: 3%;
width:85%;
z-index: 10;
}
.result-article-suggestion{
position: absolute;
top:64px;
right: 11%;
left: 2%;
width: 95%;
z-index: 10;
}
.form-bottom .word-suggestion{
width:100%;
height: 64px;
/* font-size: 16px; */
z-index: 100;
background-color: #f2fbfd;
}
.form-bottom .article-suggestion{
width: 100%;
z-index: 100;
text-align: left;
background-color: #f2fbfd;
border-left:solid 1px rgba(0,0,0,0.3);
border-right:solid 1px rgba(0,0,0,0.3);
}
.form-bottom .article-number{
width:100%;
z-index: 100;
text-align: center;
background-color: #f2fbfd;
border-left:solid 1px rgba(0,0,0,0.3);
border-right:solid 1px rgba(0,0,0,0.3);
}
.form-bottom .article-suggestion:hover,.form-bottom .article-number:hover{
background-color: rgba(255,255,255,1);
}
#form-bottom-no-result{
width:100%;
z-index: 100;
background-color: #f2fbfd;
border-left:solid 1px rgba(0,0,0,0.3);
border-right:solid 1px rgba(0,0,0,0.3);
border-bottom:solid 1px rgba(0,0,0,0.3);
font-size: 16px;
padding: 10px;
line-height: 20px;
color: #666;
text-align: left;
}
#form-bottom-no-result .kobetuba-mail-link{
display: block;
width:95%;
margin:10px auto 5px;
height:70px;
padding: 3px;
border: solid 1px #666;
border-radius: 3px;
font-size:16px;
text-align: center;
position: relative;
cursor: pointer;
}
#form-bottom-no-result .kobetuba-mail-link img{
max-height:60%;
max-width:95%;
}
#form-bottom-no-result .kobetuba-mail-link .right-icon{
position: absolute;
top:50%;
right:10px;
color:#666;
}
#form-bottom-no-result .kobetuba-mail-link:hover{
background-color: rgba(230,230,230,0.4)
}
.category-list-bottom .category-list-wrapper{
padding:55px 7px 7px;
text-align: left;
min-height:370px;
height:90%;
}
.category-list-bottom .category-list{
margin-top:5px;
margin-bottom:5px;
position: relative;
height:35%;
border:solid 1px #acabab;
border-bottom:solid 2px #2F4D55;
background-color:rgba(255,255,255,0.5)
}
.category-list-bottom .category-list-img{
position:absolute;
top:50%;
left:50%;
transform: translateX(-50%) translateY(-50%);
padding-top:2px;
padding-bottom:2px;
}
.category-list-bottom .category-mini-list-wrapper li{
height:44px;
list-style: none;
margin:6px 10px 6px 10px;
padding:12px 7px;
background-color: rgba(200,200,200,0.5);
border-radius: 7px 22px 22px 7px;
zoom:0.8;
position: relative;
}
.category-list-bottom .article .category-mini-list-wrapper li{
display: inline-block;
width:47%;
margin-top:3px;
margin-bottom:3px;
margin-right: 0px;
}
.category-list-bottom .right-icon{
color:#666;
position: absolute;
top:50%;
right:5px;
transform:translateY(-50%);
}
.category-list-bottom .category-list.torio{
height:25%;
border-radius: 3px 22px 22px 3px;
text-align: center;
}
.category-list-bottom .category-list.torio img{
zoom:0.8;
}
.category-list-bottom .category-list.torio .new-icon{
margin-top:40px;
padding-left: 160px;
width:210px;
}
.category-list.all-close{
height:35%;
}
.category-list.close{
height:30%;
min-height:80px;
}
.category-list.close .category-mini-list-wrapper,.category-list.all-close .category-mini-list-wrapper{
display: none;
}
.category-list.open{
height:auto;
border:none;
}
.category-list.open .category-list-img{
display:block;
position:relative;
top:0;
left:0;
transform:none;
margin:5px auto;
}
.category-list.open .right-icon{
display:none;}
.category-list.open .category-mini-list-wrapper{
display:block}
#media (max-width:500px){
.category-list.close{height:44px}
}
#media (max-width:346px){
.category-list-bottom .article .category-mini-list-wrapper li{
display: inline-block;
width:45%;
}
.category-list-bottom .article .category-mini-list-wrapper img{
zoom:0.9;
}
}
#media(min-width:500px){
.category-list-bottom .kobetuba .category-mini-list-wrapper li{
display: inline-block;
width:46%;
margin-top:3px;
margin-bottom:3px;
}
.category-list-bottom .kobetuba .category-mini-list-wrapper img{
zoom:0.9;
}
}
/* hp_style-1.css */
#charset "UTF-8";
html {
font-size: 62.5%;
}
body {
background-color: #fff;
color: #333;
font-size: 1.2rem;
font-family: "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
*, *::before, *::after {
box-sizing: border-box;
}
a:link, a:visited, a:hover, a:active {
color: #7C5119;
text-decoration: none;
}
font-family: 'Helvetica Neue','Helvetica','Arial',YuGothic,'Yu Gothic','Hiragino Kaku Gothic ProN','ヒラギノ角ゴ ProN W3','メイリオ', Meiryo,'MS ゴシック',sans-serif;
.header{
width: 100%;
}
.main-visual{
height: 250px;
background-image: url(../img/main-visual-mini.jpg);
background-position: center center;
background-size: cover;
position: relative;
}
#vision{
padding:10px;
position: absolute;
top:40%;
right:2%;
width:45%;
min-width:270px;
max-width:450px;
z-index: 0;
}
#media(max-width:568px){
#vision{background-color: rgba(237,231,221,0.8)}
}
#media (min-width:500px){
.main-visual{
background-image: url(../img/main-visual.jpg);}
}
#media (min-width: 800px){
.main-visual{
height:450px;
background-image: url(../img/main-visual.jpg);
position: relative;
background-position: center;
}
#vision{
background-color: transparent;
}
}
#media (min-width: 1020px){
#vision{
top:30%;
width:55%;
left:55%;
}
}
.sbox{
border:solid 1px #535353;
background-color: rgba(255,255,255,0.3)
}
.form .sbtn{
color:#999;
/*ここから臨時対応*/
border-leftsolid 1px #737575;
}
.sbtn:hover{
color#151e76;
}
.suggestion{
border:none;
border-bottom: solid 1px #666;
}
.suggestion:hover{
opacity: 1;
background-color: rgba(255,255,255,0.9);
}
.word-suggestion{
background-color: rgba(255,255,255,0.4);
}
.article-suggestion{
background-color: rgba(255,255,255,0.7);
}
#no-result{
background-color: rgba(255,255,255,0.8)
}
.message-box :hover{
opacity: 0.6;
}
.account :hover{
opacity: 0.6;
}
.category-navi{
display: none;
}
/*タブレット縦以降*/
#media (min-width: 801px){
.category-mini-list{
list-style-type:none;
}
.category-navi{
display: block;
width: 100%;
height: 50px;
background-color: rgba(255,255,255,0.7);
position: absolute;
bottom: 0px;
border-bottom:double #022567;
font-size: 0;
padding-left:5%;
padding-right:5%;
text-align: center;
}
.category-list {
display: inline-block;
position: relative;
width: 30%;
top:0px;
min-width: 130px;
height: 50px;
vertical-align: middle;
padding-left: 16%;
padding-right: 16%;
}
.category-list-button{
position:absolute;
width: auto;
max-width: 280px;
top:0;
bottom: 0;
left: 0;
right:0;
margin: auto;
cursor: pointer;
}
.category-list-img {
position: absolute;
top: 60%;
left: 50%;
transform: translateX(-50%)translateY(-50%);
width: auto;
max-width: 100%;
height:auto;
margin: auto;
}
.category-list.toiro .category-list-img {
top: 50%;
}
.category-list:hover{
background:rgba(116,192,213,0.3);
}
.category-mini-list-wrapper{
display: none;
background-color: rgba(255,255,255,0.7);
position: absolute;
bottom:50px;
left:0;
width:100%;
height:192px;
opacity: 0.9;
text-align: center;
}
.category-mini-list{
width: 100%;
padding:10px 15px;
}
.category-list-mini-img {
width:auto;
max-width: 100%;
height:auto;
}
.category-mini-list:hover{
background: rgba(116,192,213,0.1);
}
.category-list.toiro .new-icon{
margin-top:15px;
padding-left: 55px;
width:100px;
height:40px;
}
}
.wrapper{
padding-top:20px;
}
section{
margin-top: 40px;
}
#media (min-width: 920px){
.wrapper{
width: 90%;
margin: 20px auto 40px;}
}
#media (max-width:800px){
.recomend,.new {
width:100%;
}
}
#media(min-width:800px){
.new{
width:
}
}
Maybe you didn't set the body/html width and height.
Try this:
html,body
{
width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
overflow-x: hidden;
}
I added
overflow-x: hidden
You should remove this line, if you need to scroll left and right.
Related
Property: text-decoration-skip-ink does not exist: none
When I check my website with the W3C CSS Validator I get this errors: Property text-decoration-skip-ink does not exist: none. Property backdrop-filter does not exist: blur(10px). I heard that this is an error from W3C. Does this affect my website in the future? If so, How can I solve the errors? This is my whole css: #font-face{ font-family: 'montserrat'; src: url(../fonts/Montserrat-Light.ttf); font-style: normal; font-weight: 100; } #font-face{ font-family: 'playfair'; src: url(../fonts/PlayfairDisplay-Medium.ttf); font-style: normal; font-weight: 100; } html{ scroll-behavior: smooth; text-decoration-skip-ink: none; } *{ padding:0; margin:0; box-sizing: border-box; font-family: montserrat; } body{ background-color: white; } /* LOADER */ .preload{ position: fixed; top:0; width: 100%; height: 100vh; background: black; display: flex; justify-content: center; align-items: center; transition: 0.5s ease; z-index:9999; } .loader { border: 5px solid #ffffff; border-top: 5px solid black; border-radius: 50%; width: 40px; height: 40px; animation: spin 2s linear infinite; } #keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .preload-finish{ opacity:0; pointer-events: none; } /* BANNER & NAV */ .banner{ margin:0px; position: relative; width: 100%; height: 100vh; background-size:cover; background-image: linear-gradient(to left, rgba(0,0,0,0.9),rgba(0, 0, 0, 0.6)), url(../img/pozabackground-home2.jpg); background-position: center; box-shadow:1px 2px 4px 0px #00000075 !important; background-attachment: fixed; } .navigatie{ background-color:transparent; width:100%; position:fixed; z-index: 99; margin:0px; padding:0px; } .logo { float: left; padding: 8px; margin-left: 40px; margin-top: 8px; } .navbar-brand{ color:white !important; } .navbar-brand img{ width: auto; height: 100px; margin:-32px 0px -25px 0px; } nav ul { float: right; list-style-type: none; padding-top:5px; margin-right:20px; } nav ul li { float: left; } nav ul li:not(:first-child) { margin-left: 48px; } nav ul li:last-child { margin-right: 24px; } nav ul li a { display: inline-block; outline: none; color: #fff; text-transform: uppercase; text-decoration: none; font-size: 13px; letter-spacing: 1.1px; font-weight: 600; } nav ul li a:hover{ color:#fff; text-decoration: underline; } /* FUNDAL JS */ .fundal{ background:#104f47 !important; box-shadow:1px 2px 4px 0px #00000075 !important; } .fundal .nav-btn { background-color:#104f47; border-radius: 50%; box-shadow:1px 2px 4px 0px #00000075; } .fundal .nav-btn i{ background: #fff; border-radius: 2px; } #nav:checked + .nav-btn { transform: rotate(45deg); background-color: #104f47; } #nav:checked + .nav-btn i { background: #fff; transition: transform 0.2s ease; } #nav:checked + .nav-btn i:nth-child(1) { transform: translateY(6px) rotate(180deg); } #nav:checked + .nav-btn i:nth-child(2) { opacity: 0; } #nav:checked + .nav-btn i:nth-child(3) { transform: translateY(-6px) rotate(90deg); } #nav:checked ~ .nav-wrapper { z-index: 9990; display:block } #nav:checked ~ .nav-wrapper ul li a { opacity: 1; transform: translateX(0); } .hidden { display: none; } /* MEDIA SCREEN NAVBAR PTR TLF */ #media only screen and (max-width: 991px){ .navigatie{ background-color:transparent; width:100%; position: absolute;; z-index: 99; margin:0px; padding:0px; } .navbar-brand img{ height:100px; margin:-20px 0px 0px 0px; } .nav-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; background: #fff; display:none; transition: all 0.2s ease; } .nav-wrapper ul { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; } .nav-wrapper ul li { display: block; float: none; width: 100%; text-align: center; padding-top:10px; margin-bottom: 10px; } .nav-wrapper ul li:not(:first-child) { margin-left: 0; } .nav-wrapper ul li a { padding: 10px 24px; opacity: 0; color: #000; font-size: 14px; font-weight: 600; letter-spacing: 1.2px; transform: translateX(-20px); transition: all 0.2s ease; } .nav-btn { position: fixed; right: 30px; top: 28px; display: block; width: 47px; height: 46px; cursor: pointer; z-index: 9999; border-radius: 50%; } .nav-btn i { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; margin-left: 14px; } .nav-btn i:nth-child(1) { margin-top: 16px; } .nav-btn i:nth-child(2) { margin-top: 4px; opacity: 1; } .nav-btn i:nth-child(3) { margin-top: 4px; } } /* SCRIS DE LA BANNER */ .title{ position: absolute; top:47%; left:35%; text-align: left; transform: translate(-50%,-50%); } .title h1{ color:#fff; font-family: playfair; font-size:50px; color:#f5f6f8; padding-bottom: 20px; letter-spacing:3px; } .title .button a{ display: inline-block; font-size:12px; text-transform: uppercase; text-align: center; padding:13px 20px; border:none; color:white; font-family: montserrat; text-decoration: none; transition: 0.6s ease; background-color:#104f47; box-shadow:1px 2px 4px 0px #00000075; outline:none; border-radius: 5px; } .title .button a:hover{ background-color:#104f47; color:white; } /* DESPRE NOI */ .About-head-section{ padding-top:0px; padding-bottom:50px; } .servicii{ padding-top:130px; padding-bottom:30px; text-align: center; } .About-head-section .servicii h1{ margin-top: -45px; padding-bottom: 15px; font-size: 30px; font-family: montserrat; font-weight: 700; text-transform: uppercase; text-align: center; color:#072523; } .About-head-section .servicii h1::after{ content:''; background:#148071; display:block; width: 320px; height: 3px; margin:10px auto; margin-left:-50px; } .servicii p{ text-align: left; padding-bottom:20px; } .buton-despre{ text-align: center; } .buton-despre a{ background-color: white; border: 1px solid rgb(87, 87, 87); color: rgb(24, 24, 24); padding:10px 25px; display: inline-block; font-family: montserrat; font-weight: normal; text-decoration: none; font-size:12px; outline:none; text-transform: uppercase; } .buton-despre a:hover{ background-color:rgba(241, 241, 241, 0.678); } .servicii img{ margin-top:20px; width: 420px; } /* DE CE NOI */ .curved{ margin:0px; padding-top:5px; padding-bottom:50px; clip-path:polygon(0 0, 100% 0, 100% 100%, 0 85%); background:#b1b1b12c; } .details{ text-align:center; color:rgb(24, 24, 24); padding-top:50px; padding-bottom:110px; } .details .row{ margin-right:-50px; } .details .container { padding:0px; } .details h1{ margin:0px; font-size: 30px; font-family: montserrat; font-weight: 700; text-transform: uppercase; padding-bottom:30px; color:#072523; } .details h1::after{ content:''; background:#148071; display:block; width: 875px; height: 3px; margin:10px auto; margin-left:-50px; } .details .interior{ text-align: left; padding-top:10px; margin-bottom:10px; margin-right:10px; } .details .number span{ color:#072523; font-size:35px; font-weight: 700; } .details .number h2{ display: inline-block; font-size:18px; font-family: montserrat; font-weight: bold; text-transform: uppercase; color:#072523; } .details p{ font-size:15px; font-family: montserrat; } .details .coloana-scris{ padding-top:10px !important; padding-left:30px; } .details .coloana-poza{ padding-top:35px; } .details .coloana-poza img{ background-repeat: no-repeat; box-shadow: 0px 0px 5px 1px #bbbbbb; } /* SERVICII */ /* SERVICII */ /* features design */ /* boxes */ .explore-section{ margin:0; padding:10px 10px 80px 10px; padding-bottom:30px; } .explore-section .container{ /* flexbox style */ display:flex; flex-direction: row; justify-content: space-around; flex-flow:wrap; width: 100%; } .explore-section .container .box{ box-sizing: border-box; margin:20px; width: 320px; box-shadow: 0px 0px 4px 1px #bbbbbb; } .explore-section .titlu h1{ padding-top:50px; font-size: 30px; font-family: montserrat; font-weight: 700; text-transform: uppercase; padding-bottom:60px; text-align: center; color:#072523; } .explore-section .titlu h1:after{ content:''; background:#148071; display:block; width: 720px; height: 3px; margin:10px auto; } .explore-section .container .box .scris{ padding:20px 20px 20px 10px; } .poza-servicii{ width: 100%; } .poza-servicii:hover{ opacity:0.8; } .poza-servicii h2{ padding-top:30px; padding-bottom:20px; letter-spacing: 1px; font-family: montserrat; text-transform: uppercase; text-align: center; color:white; font-weight: 500; font-size: 20px; margin:10px; } .poza-servicii a{ text-decoration: none; } .buton-servicii{ text-align: center; padding-top:0px; padding-bottom:0px; } .buton-servicii a{ background-color: #104f47; color: white; border: none; padding:10px 20px; display: inline-block; font-size:12px; outline:none; border-radius: 5px; text-decoration: none; text-transform: uppercase; } .buton-servicii::before{ content:''; background:#104f47; display:block; width: 30px; height: 3px; margin:30px auto; } .buton-servicii a:hover{ background-color: #148071; } #media screen and (max-width:1200px){ .box{ width:20%; } #media screen and (max-width:600px){ .box{ width:65%; } } } /* TESTIMONIALS */ .testimonials{ background:#b1b1b12c; padding-bottom:110px; clip-path:polygon(0 0, 100% 15%, 100% 100%, 0 100%); } .testimonials-title h1{ padding-top:130px; text-align: center; font-size: 30px; font-family: montserrat; font-weight: 700; text-transform: uppercase; padding-bottom:30px; color:#072523; } .testimonials .container{ margin:0 auto; } .testimonials .interior{ box-shadow: 0px 0px 4px 0.5px #bbbbbb; padding:40px; background:white; margin-top:20px; } .testimonials .container .interior:hover{ background:#104f47; } .testimonials .interior p{ margin:0; padding:0; transition:0.5s; font-family: montserrat; padding-bottom: 15px; } .testimonials .interior h2{ margin:20px 0 0; padding:0; transition: 0.5s; font-size:18px; color:#104f47; font-weight: 700; line-height: 20px; text-transform: uppercase; } .testimonials .container .interior h2 span{ font-weight: 600; font-size:14px; color:#afb8b7; transition:0.5s; } .testimonials .container .interior:hover p, .testimonials .container .interior:hover h2, .testimonials .container .interior:hover h2 span, .testimonials .container .interior:hover i{ color:#fff; } .testimonials .coloana i{ padding-bottom:15px; font-size:40px; transition:0.5s; } /* BACK TO TOP BUTTON */ #TopBtn { display: none; position: fixed; bottom: 20px; right: 30px; font-size: 15px; width: 40px; height: 40px; z-index: 99; border: none; outline: none; background-color: #8dadac; color: white; cursor: pointer; border-radius: 5px; } #TopBtn:hover { opacity:0.8; } /* ------------------------------------------TELEFON - 991 ------------------------- */ /* MEDIA */ #media only screen and (max-width: 991px){ .banner{ background-image: linear-gradient(to left, rgba(0,0,0,0.9),rgba(0, 0, 0, 0.6)), url(../img/pozabackground-home2-991px.jpg); background-attachment: scroll; } .title .button a{ padding: 10px 16px; } /* DESPRE NOI */ .button button{ font-size: 12px; } .buton-despre{ text-align: center; } .servicii{ padding-top:100px; padding-bottom:30px; text-align: center; } .servicii .poza img{ width: 430px; padding-top:50px; padding-bottom:10px; } .servicii p{ padding-bottom:20px; } /* DE CE NOI */ .curved{ clip-path:polygon(0 0, 100% 0, 100% 100%, 0 95%); padding-bottom:20px; } .details{ padding-top:30px; padding-bottom:40px; } .details h1::after{ content:''; background:#148071; display:block; width: 500px; height: 3px; margin:10px auto; margin-left:-50px; } .details .number h2{ font-size:18px; padding-top:10px; padding-bottom:10px; text-align: left; padding-left: 10px; color:#148071; } .details .coloana-poza{ display:none; } /* SERVICII */ .explore-section .titlu h1:after{ width: 150px; height: 3px; margin:10px auto; } .explore-section{ margin:0; padding:10px 10px 80px 10px; padding-bottom:30px; } .explore-section .container{ /* flexbox style */ border-radius: 15px; display:flex; flex-direction: row; justify-content: space-around; flex-flow:wrap; width: 100%; } .explore-section .container .box{ box-sizing: border-box; margin:20px; width: 300px; border-radius:30px; } /* TESTIMONIALS */ .testimonials{ padding-bottom:80px; clip-path:polygon(0 0, 100% 5%, 100% 100%, 0 100%); } } #media only screen and (max-width: 400px){ /* DE CE NOI? */ .details .number i{ font-size:20px; padding-right:5px; } .details .number h2{ font-size:14px; padding-bottom:10px; } } /* 700 ------------------------------------------------------------------- */ #media only screen and (max-width: 700px){ .title{ top:45%; left:50%; margin-right: -100px; text-align: center; } .title h1{ padding-top:50px; font-size:30px; } .title .button a{ font-size: 10px; text-align: center; padding:13px 20px; margin-top:0px; color:#fff; } } /* 600 ------------------------------------------------------------------- */ #media only screen and (max-width: 600px) { .navbar-brand img{ height:100px; margin:-20px 0px 0px -20px; } .banner{ background-image: linear-gradient(to left, rgba(0,0,0,0.5),rgba(0, 0, 0, 0.7)), url(../img/pozabackground-home2-mobil.jpg); } .title h1{ font-size:30px; text-align: center; letter-spacing:2px; } .title .button a{ text-align: center; padding:13px 20px; margin-top:0px; color:#fff; font-size:13px } /* DESPRE NOI*/ .About-head-section{ padding-top:20px; padding-bottom:30px; } .servicii{ padding-top:20px; } .About-head-section .servicii h1{ padding-top: 60px; font-size: 23px; padding-bottom: 20px; text-align: left; } .About-head-section .servicii h1::after{ width: 150px; height: 3px; margin:10px auto; margin-left:-50px; } .buton-despre{ text-align: center; margin-bottom:0px; } .servicii .poza img{ width: 320px; padding-bottom:10px; } /* DE CE NOI */ .curved{ margin:0px; padding-top:30px; } .details{ padding-top:20px; padding-bottom:50px; padding-left:20px; } .details .row { margin-right: -20px; } .details h1{ margin:0px 0px 0px 12px; font-size: 23px; padding-bottom: 5px; text-align: left; } .details h1::after{ width: 150px; height: 3px; margin:10px auto; margin-left:-50px; } .details .interior{ margin-bottom:25px; text-align: left; margin-right: 0px; } .details .number i{ font-size:30px; padding-right:0px; text-align: left; } .details .number h2{ font-size:18px; padding-top:10px; padding-bottom:10px; text-align: left; padding-left: 10px; } .details p{ padding-top:0px; padding-left:0px; font-size:15px; padding-bottom:15px; } .details .coloana-scris { padding-top: 10px !important; padding-left: 10px; } /* SERVICII */ .explore-section{ padding:0px 15px 50px 15px; } .explore-section .titlu h1{ margin-top:0px; font-size:23px; padding-bottom:5px; text-align: left; margin-left: 20px; } .explore-section .titlu h1:after{ width: 150px; height: 3px; margin:10px auto; margin-left:-50px; } .explore-section .container .box{ border-radius: 15px; box-sizing: border-box; margin:20px 0px 20px 0px; width: 100%; } .poza-servicii h2{ padding:10px 5px 0 5px; } /* TESTIMONIALS */ .testimonials h1{ padding-top:100px; font-size:23px; text-align: left; margin-left:30px; padding-bottom: 10px; } .testimonials h1::after{ content:''; background:#148071; display:block; width: 150px; height: 3px; margin:10px auto; margin-left:-50px; } .testimonials .interior { padding: 20px; } /* BACK TO TOP BUTTON */ #TopBtn { font-size: 15px; width: 47px; height: 47px; border-radius: 50px; } } /* 450-----------------------------*/ #media only screen and (max-width: 450px) { .title .button a{ text-align: center; border:none; color:#fff; font-size:12px; padding:12px 17px; } .banner{ background-attachment: scroll; } /* DESPRE NOI */ .servicii .poza img{ width: 240px; } } /* 300-----------------------------*/ #media only screen and (max-width: 300px) { .navbar-brand img{ height:100px; margin:-20px 0px 0px -20px; } .title h1{ font-size:23px; } .title .button a{ text-align: center; padding: 10px 13px; margin-top:6px; border:none; color:#fff; text-decoration: none; transition: 0.6s ease; font-size:12px; } .interior h2{ font-size:13px; } .banner{ background-attachment: scroll; } /* DE CE NOI */ .details .row { margin-right: -20px; } } /* INCLUDE LA FOOTER SI CONTACT */ /* PARTEA DE CONTACT */ .background-contact{ background-image: linear-gradient(to left, rgba(0,0,0,0.9),rgba(0, 0, 0, 0.6)), url(../img/background-contact-3-fullscreen.jpg); background-repeat: no-repeat; background-size: cover; background-attachment: scroll; padding: 50px 0px 50px 0px; } .mesaj{ padding-top:80px; padding-bottom:50px; text-align: center; } .mesaj h1{ color:#fff; font-family: montserrat; font-size: 30px; text-transform: uppercase; color:#fff; } .buton-contact{ text-align: center; padding-bottom:45px; } .buton-contact a{ border: none; padding:12px 30px; color:#fff; text-decoration: none; transition: 0.6s ease; background-color:#104f47; box-shadow:1px 2px 4px 0px #00000075; border-radius: 5px; } .buton-contact a:hover{ background-color:#104f47; color:white; border:none; text-decoration: none; } /* FOOTER */ .page-footer{ background-color: #222 !important; color:white !important; margin-top:-50px !important; } .page-footer .social-media{ padding-top:20px !important; } .page-footer .container{ padding-top:50px; } .page-footer ul li a{ text-decoration: none !important; color:#fff !important; font-size:14px; } .page-footer ul li a:hover{ text-decoration: none !important; color:#104f47 !important; } .social-media a i{ padding-top:10px; width: 50px; height: 45px; background-color: #333; border-radius:50%; } .social-media a i:hover{ color:#104f47 !important; } .social-media{ margin-top:-20px; padding-bottom:20px; margin-left: 10px; } .footer-copyright{ background-color:#333; } .footer-copyright p{ margin-bottom:-5px; font-size:13px; } .text-contact::after{ content:''; background:#148071; display:block; width: 75px; height: 2px; margin-top:7px; } #media only screen and (max-width: 600px) { /* CONTACT */ .mesaj h1{ font-family: montserrat; font-size: 23px; } .background-contact{ background-image: linear-gradient(to left, rgba(0,0,0,0.9),rgba(0, 0, 0, 0.6)), url(../img/background-contact-3.jpg); background-repeat: no-repeat; background-size: cover; background-attachment: scroll; padding: 4px 0px 0px 0px; } .text-contact::after { content: ''; background: #148071; display: block; width: 75px; height: 2px; margin: 10px auto; } } #media only screen and (max-width:400){ body{ font-size:13px; } .banner-contact{ background-attachment: scroll; } } #media only screen and (max-width: 300px) { body{ font-size:13px; } .banner-contact{ background-attachment: scroll; } .mesaj h1{ font-family: montserrat; font-size: 19px; } }
It seems text-decoration-skip-ink is in working draft phase. Check this mdn-documentation which also indicates lack of cross-browser support at this point. This is a just warning. So just ignore it. We hope that in the future this property will work in all browsers.
Post notes slides over the posts in Tumblr's permalink page
On my tumblr blog, I am using a custom masonry theme, in which post notes should be below the post in the permalink pages. First it was sliding over the post, which don't let the viewers to view the post in permalink page. Then I lowered the z-index of the post notes css, now posts notes slides under the post. For example : Click here #content { {block:IndexPage} width:66%; {/block:IndexPage} {block:PermalinkPage} width: 55%; {/block:PermalinkPage} top:170px; {block:IndexPage} left: 1%; {/block:IndexPage} {block:PermalinkPage} left: 10%; {/block:PermalinkPage} float: left; position: absolute; border-right:1px solid #2b2b2b; } .entry { float:center; {block:indexpage} width: 43%; overflow:hidden; {/block:indexpage} margin: 2%; {block:permalinkpage} width: 500px; {/block:permalinkpage} padding: 10px; background: {color:box}; display: inline-block; position: relative; z-index:2; -webkit-border-radius:3px; -moz-border-radius:3px; border-radius:3px; } .entry img { display: block; width:auto; max-width: 100%; } .perma2, .perma2 a { margin-top: 5px; font-family: 'Coda', sans-serif; font-size:15px; color: #40c143; } .prmlnk { background:{color:box}; font-size:15px; margin-left:10px; margin-top:5px; width: 500px; padding: 10px; z-index:2; display: block; overflow:hidden; position: relative; -webkit-border-radius:3px; -moz-border-radius:3px; border-radius:3px; } .wrap {position: fixed; bottom:10px; left:0px;} .wrap:hover .cred a {width: 130px; height: 20px; text-align: right;} .cred a { height: 100%; width: 80px; height: 20px; margin-left:-65px; background-color: #000; font-size: 13px; text-align: right; overflow: hidden; z-index: 9999999; padding-top: 3px; top: -2px; color: #fff; padding-right: 5px; -moz-border-radius: 2px; border-radius: 2px; display: inline-block; text-transform: capitalize; -webkit-transition: all 0.5s ease-out; -moz-transition: all 0.5s ease-out; opacity: .7; filter: alpha(opacity = 70); font-family: 'Lato', sans-serif; line-spacing: 1px; } ol.notes { padding: 0px; margin: 25px 0px; list-style-type: none; border-bottom: solid 1px #5a5a5a; } ol.notes li.note { border-top: solid 1px #5a5a5a; padding: 10px; } ol.notes li.note img.avatar { vertical-align: -4px; margin-right: 10px; width: 16px; height: 16px; } ol.notes li.note span.action { font-weight: normal; color:#f2f2f2; } ol.notes li.note .answer_content { font-weight: normal; } ol.notes li.note blockquote { border-color: #eee; padding: 4px 10px; margin: 10px 0px 0px 25px; } ol.notes li.note blockquote a { text-decoration: none; } <div id="content"> <div class="autopagerize_page_element"> {block:Posts} <div class="entry"> .....POSTS..... </div> {block:permalinkpage}{block:NoteCount} <div class="prmlnk"><div class="perma2"> Posted: {TimeAgo} {/block:NoteCount} {block:PostNotes} {PostNotes} {/block:PostNotes} </div> </div> {/block:permalinkpage} {/block:Posts} </div> <!------------autopagerise page element ends here----------------> </div><!----------------------Content div ends here-------------------->
On the linked page, if I add top: 100%; to the .prmlnk CSS, the notes then show up below the post instead of being in the same position as the post.
some part of my CSS is not working after I transferred it to another file
I had this perfectly working css and I tried to place some part of it to another css file so that It won't look as cluttered as it looked before. I did that, and linked that new css file to my html but it didn't work.. So, I tried putting the css code back to the original css file and It doesn't work still! What could i have done wrong? There is just that portion of the css that is not working - the portion that i tried to transfer. The rest of the code is working fine.
I have cleaned your CSS because you had open elements, nested elements and what not. Here you have: body { /*position:relative;*/ min-height: 100%; height:100%; width:100%; margin:0; padding:0; overflow:hidden; font-family:"Century Gothic", Arial; } #wrapper { width:100%; height:100%; position:absolute; top:0; left:0; background-color:#ccc; overflow:hidden; z-index: -2; } #mask { width:400%; height:100%; background-color:#06009C; } .item { width:25%; height:100%; float:left; background-color:#06009C; } .content { width:100%; height:95%; top:2.5%; margin:0 auto; background-color:#6186CF; background-image:url(../images/blue%20wallpaper.jpg); background-repeat: no-repeat; position:relative; } .selected { background:#fff; font-weight:700; } .clear { clear:both; } #center { top: 1%; position: fixed; width: 100%; z-index: 1; } /* NAVIGATION BAR */ .nav { left: 0; position:relative; width: 1500px; max-width: 1500px; } .nav ul { list-style-type: none; margin: 0 auto; padding: 0; } .nav li { display:block; float:left; } .nav a { display: table-cell; vertical-align:middle; text-align:center; width: 110px; height: 70px; background-color:#3961B4; text-decoration:none; text-align:center; color: White; font-size: 12px; padding: 3px; border-right: 1px solid #000000; box-shadow: 0 5px 5px #242424; } .nav a:hover { background-color: #FFFFFF; color: #000000; } .nav ul li img { position: relative; margin: auto; } .nav ul li:nth-child(10) a { width: 75px; height: 70px; } .nav ul li:nth-child(1) a { width: 200px; height: 70px; text-align: right; } .nav ul li:nth-child(11) a { width: 133px; height: 70px; border:0; } .nav ul li img { position:relative; margin: auto; } /************************/ .bpmimage { position:relative; left: 1%; top: 10% } /* OVERLAY */ .overlay { position:absolute; top:0; left: 0; height: 100%; width: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 10; } .modal { width: 1000px; ; height: 400px; position: fixed; top: 50%; left: 50%; margin-top: -200px; margin-left: -500px; background-color: #FFFFFF; border-radius: 5px; text-align: center; z-index: 11; } .zoomedoutwrapper { width: 975px; height: 355px; margin: 1% auto auto auto; } .zoomedout { float: left; } .maptitle { font-family:Gotham, "Century Gothic", Helvetica, Arial, sans-serif; } /*** FLOWCHART ****/ /** shapes **/ .arrow-right { width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 8px solid black; } .arrow-up { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 8px solid black; } .arrow-down { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 8px solid black; } .gateway { width: 20px; height: 20px; background-color: #000000; -ms-transform: rotate(45deg); /* IE 9 */ -webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */ transform: rotate(45deg); color: #fff; } .h-dottedline { font-size:0; height:300px; width: 1px color:#fff; border: 1px dashed black; } .v-dottedline { font-size:0; height:1px; color:#fff; border: 1px dashed black; } .flowchart { margin: 100px 0 0 50px; width:1370px; max-width:1370px; font-size: 12px; } .flowchart > div { float: left; } .flowchart a { display:block; } .horizontal { font-size:0; height:1px; color:#fff; background-color:#000; } .vertical { font-size:0; width:1px; color:#fff; background-color:#000; } #flowchart1 { margin: 100px 0 0 50px; width:1370px; max-width:1370px; font-size: 12px; } #flowchart1 > div { float: left; } #flowchart1 a { display:block;} #line1 { font-size:0; width:50px; height:1px; color:#fff; background-color:#000; margin-top: 40px; } #line2 { font-size:0; width:1px; height:40px; color:#fff; background-color:#000; margin-top: 40px; } #line3 { font-size:0; width:1px; height:40px; color:#fff; background-color:#000; margin-top: 40px; margin-left: 151px; } #line4 { font-size:0; width:50px; height:1px; color:#fff; background-color:#000; margin-top: 40px; } #arrow1 { margin: 32px 0 0 0; } #no2 { margin-top: 5px; } #line5 { font-size:0; width:50px; height:1px; color:#fff; background-color:#000; margin-top: 40px; } #line6 { font-size:0; width:1px; height:40px; color:#fff; background-color:#000; margin-top: 40px; } #no3 { clear:both; margin:23px 0 0 0; } #line7 { font-size:0; width:50px; height:1px; color:#fff; background-color:#000; margin-top: 55px; } #line8 { /**vertical**/ font-size:0; width:1px; height:96px; color:#fff; background-color:#000; margin-top: 0; } #line9 { /**horizontal**/ font-size:0; width:50px; height:1px; color:#fff; background-color:#000; margin-top: 55px; } #arrow2 { margin-top: 47px; } #gateway1 { margin-top: 0; margin-left: 0; } #line10 { /**horizontal**/ font-size:0; width:50px; height:1px; color:#fff; background-color:#000; margin-top: 55px; } #line11 { /**vertical**/ font-size:0; width:1px; height:96px; color:#fff; background-color:#000; margin-top: 0; } #line12 { /**vertical**/ font-size:0; width:1px; height:96px; color:#fff; background-color:#000; margin-left: 224px; } #line13 { /**horizontal**/ font-size:0; width:50px; height:1px; color:#fff; background-color:#000; margin-top: 55px; } #arrow3 { margin-top: 47px; } #gateway2 { margin-top: 30px; margin-left: 0; } #line14 { /**horizontal**/ font-size:0; width:50px; height:1px; color:#fff; background-color:#000; margin-top: 55px; } #arrow4 { margin-top: 47px; } #no4 { margin:23px 0 0 0; } #no5 { clear:both; margin:23px 0 0 0; } #dline1 { /**H dottedline*/ font-size:0; width:430px; color:#fff; margin-top: 55px; margin-left: 0px; } #line15 { /**horizontal**/ font-size:0; width:50px; height:1px; color:#fff; background-color:#000; margin-top: 55px; } #line16 { /**vertical**/ font-size:0; width:1px; height:56px; color:#fff; background-color:#000; margin-top: 0; } #line17 { /**vertical**/ font-size:0; width:1px; height:56px; color:#fff; background-color:#000; margin-left: 151px; } #line18 { /**horizontal**/ font-size:0; width:50px; height:1px; color:#fff; background-color:#000; margin-top: 55px; } #arrow5 { margin-top: 47px; } #no6 { margin:23px 0 0 0; } #line19 { /**horizontal**/ font-size:0; width:50px; height:1px; color:#fff; background-color:#000; margin-top: 55px; } #line20 { /**vertical**/ font-size:0; width:1px; height:56px; color:#fff; background-color:#000; margin-left: 0; } #arrow6 { clear:both; margin-top: 0; margin-left: 450px; } #dline2 { /**V dottedline**/ clear:both; font-size:0; height:300px; color:#fff; margin-left: 456px; } /*Mobile Engineering & Implementation FLOWCHART*/ #f2line10 { /**VERTICAL**/ height:56px; margin-top: 14px; margin-left: 598px; } #f2line11 { /**HORIZONTAL**/ width:50px; margin-top: 14px; } #f2arrow10 { margin: 10px 0 0 0; } #f2line12 { /**HORIZONTAL**/ width:182px; margin-top: 14px; } #f2line13 { /**VERTICAL**/ height:56px; margin-top: 14px; } #f2arrow11 { clear:both; margin-left: 948px; } #f2no1 { clear:both; } #f2line1 { /**HORIZONTAL**/ width:20px; margin-top: 32px; } #f2arrow1 { margin-left: 0; margin-top: 25px; } #f2line2 { /**HORIZONTAL**/ width:20px; margin-top: 32px; } #f2arrow2 { margin-left: 0; margin-top: 25px; } #f2line3 { /**HORIZONTAL**/ width:20px; margin-top: 32px; } #f2arrow3 { margin-left: 0; margin-top: 25px; } #f2line4 { /**HORIZONTAL**/ width:20px; margin-top: 32px; } #f2arrow4 { margin-left: 0; margin-top: 25px; } #f2line5 { /**HORIZONTAL**/ width:20px; margin-top: 32px; } #f2arrow5 { margin-left: 0; margin-top: 25px; } #f2line6 { /**HORIZONTAL**/ width:20px; margin-top: 32px; } #f2arrow6 { margin-left: 0; margin-top: 25px; } #f2line7 { /**HORIZONTAL**/ width:20px; margin-top: 32px; } #f2arrow7 { margin-left: 0; margin-top: 25px; } #f2gateway1 { margin-top: 8px; } #f2gateway2 { margin-top: 8px; } #f2line8 { /**HORIZONTAL**/ width:20px; margin-top: 32px; } #f2arrow8 { margin-left: 0; margin-top: 25px; } #f2line9 { /**HORIZONTAL**/ width:20px; margin-top: 32px; } #f2arrow9 { margin-left: 0; margin-top: 25px; } #f2line15 { /**VERTICAL**/ clear:both; height:35px; margin-top: 0; margin-left: 598px; } #f2line16 { /**HORIZONTAL**/ width:50px; margin-top: 34px; } #f2arrow12 { margin-left: 0; margin-top: 25px; } #f2no10 { margin-top: 12px; } #f2line17 { /**HORIZONTAL**/ width:183px; margin-top: 34px; } #f2arrow13 { clear:both; margin-left: 948px; margin-top: 0; } #f2line18 { /**VERTICAL**/ height:35px; margin-top: 0; margin-left: 0; } /****/ /**Operations Flowchart **/ #f3line1 { /**HORIZONTAL**/ width:50px; margin-top: 34px; } #f3dline1 { /**V dottedline**/ height: 50px; margin-left: 0; } #f3line2 { /**HORIZONTAL**/ width:50px; margin-top: 34px; } #f3line3 { /**VERTICAL**/ height:35px; margin-top: 34px; margin-left: 0; } #f3line4 { /**VERTICAL**/ height:35px; margin-top: 34px; margin-left: 10px; } #f3line5 { /**HORIZONTAL**/ width:50px; margin-top: 34px; } #f3arrow1 { margin-left: 0; margin-top: 27px; } #f3line6 { /**HORIZONTAL**/ width:50px; margin-top: 34px; } #f3arrow2 { margin-left: 0; margin-top: 27px; } #f3line7 { /**HORIZONTAL**/ width:50px; margin-top: 34px; } #f3line8 { /**VERTICAL**/ height:35px; margin-top: 34px; margin-left: 0; } #f3arrow3 { clear:both; margin-left: 210px; margin-top: 0; } #f3arrow4 { margin-left: 395px; margin-top: 0; } /************/ /*MAPS INTRO MESSAGE*/ .intro-wrapper { margin: 100px 0 0 100px; float: left; width: 350px; height: 350px; text-align: right; } .intro-wrapper span { font-size: 70px; text-align: right; } .intro-wrapper p { text-align: right; } or see the fiddle here
line 116 is missing a semicolon and line 130 has a semicolon which should be removed, I would start there and check the rest of the code for stuff like that.
Issue with designing a website - css/html
I have a little problem at designing a website: In this website a have a top navigation bar and is composed by : number of search results found, search bar, login methods. All i am asking for is how i can set the "websitelocation" div and search input aligned to the left and "loginMethods" div aligned to the right (in topbar of course). I want to mention that i tried on loginMethods div left:0; css property but it did nothing. Here is a jsfiddle setup of layout : http://jsfiddle.net/UZSpz/ . Code : html <body> <nav> <h1 class="logo">project</h1> <ul> <li id="events_list"> <a href="#events"> <img src="img/menu/services2.png" width="35px" height="35px" style="margin-top:0px;margin-bottom:0xp;padding:0px;" /> <p class="eName">Events</p> </a> </li> <li id="users_list"> <a href="#following"> <img src="img/menu/crowdsourcing.png" width="35px" height="35px" style="margin-top:0px;margin-bottom:0xp;padding:0px;" /> <p class="eName">Users</p> </a> </li> <li> <a href="#messages"> <img src="img/menu/comment25.png" width="35px" height="35px" style="margin-top:0px;margin-bottom:0xp;padding:0px;" /> <p class="eName">Messages</p> </a> </li> </ul> </nav> <div class="topbar"> <div class="websiteLocation"> <img src="img/dark.png" width="25px" height="15px" style="margin-top:10px;margin-right:7px;" />3 events found.. </div> <input type="text" class="inputSearch" value="Search events.." /> <div class="loginMethods">asdasds</div> </div> <div class="content"> content </div> </body> css html, body { background: #343434; height: 100%; overflow: hidden; position: relative; margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; } /* NAVIGATION RULES (left bar) */ nav { background: #565656; color: #b4b4b4; margin:0px; top: 0; bottom: 0; left: 0; position: absolute; border-right:7px solid #2b2b2b; width: 86px; } nav .logo { opacity: 0.5; background-color: rgb(44, 44, 44); background-image:url('../img/logo2.png'); height:60px; border-bottom:1px solid #353535; margin:0px; padding:0px; } nav a { text-decoration: none; cursor:pointer; margin: 0px; padding: 0px; } nav .logo:hover { opacity: 1; background-position-x: 0%; background-position-y: 100%; background-size: initial; background-repeat-x: no-repeat; background-repeat-y: no-repeat; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(44, 44, 44); -moz-transition: opacity .7s; -webkit-transition: opacity .7s; -o-transition: opacity .7s; } nav ul { list-style-type: none; padding: 0px; margin: 0px; } nav li { opacity: 1; color:#b4b4b4; cursor: pointer; background: #676767; border-bottom: 1px solid #494949; padding: 10px 0 16px; height:59px; text-align: center; margin: 0px; } nav li:hover { background: #414242; -moz-transition: background-color .5s; -webkit-transition: background-color .5s; -o-transition: background-color .5s; } nav li a { text-decoration: none; color:#b4b4b4; font-size: 1.18em; } .eName { font-family: 'Alegreya Sans SC', sans-serif; font-size: 14px; text-decoration: bold; } /* MENU CLASSES AND ELEMENTS */ .categories { display: none; position: absolute; width:200px; background:#383838; top:0; left:93px; bottom:0; z-index:11; border-right: 7px solid #0a0a0a; } .categoryCapHolder{ width:100%; height:40px; padding-top:20px; background: #2a2a2a; border-bottom: 1px solid #3d3d3d; } .categoryCapHolder .categoryName { overflow: hidden; color:#a2a2a2; font-family: 'Yanone Kaffeesatz', sans-serif; font-size: 20px; text-decoration: bold; text-transform: uppercase; margin-left:25px; } .categoryCapHolder .categoryName:hover { color:#62c6ff; } .categories .subcategory { width:170px; height:32px; padding-top: 10px; padding-left:30px; border-bottom: 1px solid #5f5f5f; background: transparent; overflow: hidden; } .categories .subcategory:hover { background: #282828; } .categories .subcategory .subcategory_link { margin-left:15px; color:#62c6ff; font-family: 'Yanone Kaffeesatz', sans-serif; font-size: 16px; text-decoration: bold; text-transform: uppercase; } /* Top navigation bar rules */ .topbar { z-index: 0; background: #1d1d1d; border-left: 7px solid #2b2b2b; border-bottom: 1px solid #5b5b5b; height: 60px; left: 86px; position: absolute; right: 0; top: 0; } /*######CUSTOMBTNS########*/ .topbar .websiteLocation { color:#b4b4b4; margin-left:50px; margin-top:10px; margin-right: 5px; width: 150px; overflow: hidden; font-family: "Calligraffitti", sans-serif; font-size:16px; } .topbar .inputSearch { font-family: "Calligraffitti", sans-serif; text-decoration: none; background: url("../img/search.png") left no-repeat; padding-left: 25px; padding-top: 3px; margin-top:5px; margin-bottom:5px; margin-left:5px; right:0px; width:150px; height:23px; border: 0px; color:#b6b6b6; } .topbar .inputSearch:focus { outline-color: transparent; outline-style: none; } .loginMethods { width:150px; left:0; } /* Content rules */ .content { bottom: 0; left: 120px; overflow: auto; position: absolute; right: 0; top: 62px; padding: 50px 25px 25px 20px; } .content .card { background: #0e0e0e; color:#a4a4a4; width:250px; height:320px; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; margin-right:20px; margin-bottom: 15px; overflow: hidden; float: left; z-index: 1; } .content .card .cover { max-width:250px; max-height:140px; background: transparent; float:left; -webkit-border-top-left-radius: 6px; -webkit-border-top-right-radius: 6px; -moz-border-radius-topleft: 6px; -moz-border-radius-topright: 6px; border-top-left-radius: 6px; border-top-right-radius: 6px; } .content .card .description { width:100%; height:50%; display: block; margin-top:150px; } .content .card .coverDetail { position:absolute; display: none; color:#565656; width:220px; height:22px; margin: 115px 0px 0px 0px; padding-left:15px; padding-right:15px; background: #e8ff28; border-top: 1px solid #ecf97e; overflow:hidden; z-index:10; } .content .card .coverDetail .save { width:50px; height:16px; background:#565656; color:#c4c4c4; padding:1px 2px 4px 2px; cursor:pointer; border:0px; border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; margin:1px 4px 0px 1px; text-align: center; } .content .card .coverDetail .card-views { width:50px; height:16px; background-size: 16px 16px; padding:1px 2px 4px 2px; border:0px; border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; margin:1px 4px 0px 1px; text-align: center; } .content .card .description .title { color:#b4b4b4; font-family: 'Yanone Kaffeesatz', sans-serif; font-size: 20px; text-decoration: none; text-transform: capitalize; margin-top:5px; margin-left:10px; overflow: hidden; } .content .card .description .title:hover { color:#62c6ff; border-bottom: 1px dotted #d9f1ff; } .content .card .description .text { font-family: sans-serif; font-size: 11px; text-decoration: none; text-transform: uppercase; height: 80px; margin-top: 5px; margin-left: 10px; width:90%; overflow-y:hidden; overflow-x:hidden; } .content .card .description .text .expand-card { background:#565656; color:#c4c4c4; padding:2px 2px 2px 2px; cursor:pointer; border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; width:75px; height:16px; margin:2px 1px 0px 1px; text-align: center; } .content .card .description .author { background:url('../img/user91.png'); background-size:10px 10px; background-repeat:no-repeat; color:#62c6ff; bottom: 0; font-family: sans-serif; text-decoration: none; text-transform: lowercase; font-size: 9px; padding-left:10px; margin-left: 10px; margin-top: 5px; } .authorlink { text-decoration: none; color:#62c6ff; } .content .card .description .category { background:url('../img/category.png'); background-size:13px 13px; background-repeat:no-repeat; color:#62c6ff; font-family: sans-serif; text-decoration: none; text-transform: lowercase; font-size: 9px; padding-left: 13px; margin-left: 10px; margin-top: 5px; } .categorylink { text-decoration: none; color: #62c6ff; text-transform: capitalize; } Sorry if i've done something wrong in my code . Thank you!
DEMO Add this to your CSS: .websiteLocation{ float:left; } .loginMethods{ float:right; } .loginMethods has black text on dark grey background, so is hard to see, but it's there.
left, right, top, bottom only works with position:absolute and position:fixed. .topbar .inputSearch { position: absolute; font-family: "Calligraffitti", sans-serif; text-decoration: none; background: url("../img/search.png") left no-repeat; padding-left: 25px; margin-bottom:5px; margin-left:5px; right:0px; width:150px; height:23px; border: 0px; color:#b6b6b6; } .loginMethods { width:150px; position: absolute; left:0; } and you can use another method in Table <input type="text" class="inputSearch" placeholder="Search events.." />
IE9 issues with HTML and CSS
I am having an issue with IE9 and I'm assuming 8 and below as well. below is my .CSS. It works perfectly in Chrome, Safari, and FireFox. I am trying to avoid creating a separate .CSS for IE. Sorry this is my first time posting please let me know if you need more information. body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 0.8em; background-image: url('../images/white_side.jpg'); } #container { width: 1280px; margin: 0 auto; margin-top: -10px; align: center; } #masthead { width: 100%; height: 170px; background-image: url('../images/header.jpg'); background-repeat: no-repeat; } #content { float: left; width: 100%; background-image: url('../images/background.jpg'); background-repeat: no-repeat; } #footer { text-align: center; clear: both; width: 100%; padding-top: 5px; padding-bottom: 5px; border-top: 1px solid #a9a9a9; border-bottom: 1px solid #a9a9a9; } #footer p { color: #DD7500; margin-top: 5px; } #footer a { color: #DD7500; text-decoration: underline; } #footer a:hover { color: black; text-decoration: none; } #menu{ float: left; list-style-type: none; margin-top: 95px; margin-left: -40px; } #home{ float: left; list-style-type: none; } #post{ float: left; list-style-type: none; } #input{ float: left; list-style-type: none; margin-left: 100px; margin-top: 15px; } #search{ width: 210px; -moz-border-radius:6px; -webkit-border-radius:6px; border-radius:6px; } #deals{ float: left; list-style-type: none; margin-left: 90px; } #login{ float: left; list-style-type: none; } #registrationul{ float: right; list-style-type: none; margin-top: -20px; } #welcome{ float: left; list-style-type: none; } #register{ float: left; list-style-type: none; } #loginContainer { position:relative; float:right; font-size:12px; } #loginButton { float:right; position:relative; z-index:30; cursor:pointer; } #loginButton img { color: white; font-size:24px; background-image:url(../images/login.jpg) no-repeat ; } #loginButton:hover { background-image:url(../images/loginafter.jpg); } #loginBox { position:absolute; top: 70px; right: 0px; display:none; z-index:29; } #loginForm { width:248px; -moz-border-radius:3px 0 3px 3px; margin-top:-1px; padding:6px; } #loginForm fieldset { margin:0 0 12px 0; display:block; border:0; padding:0; } fieldset#body { background-color: rgba(0,0,0,0.4); -moz-border-radius:3px; padding:10px 13px; margin:0; } #body label { color: white; margin:9px 0 0 0; display:block; float:left; } #loginForm #body fieldset label { display:block; float:none; margin:0 0 6px 0; } #loginForm input { width:92%; border:1px solid #899caa; border-radius:3px; -moz-border-radius:10px; color:#3a454d; font-weight:bold; padding:8px 8px; box-shadow:inset 0px 1px 3px #bbb; -webkit-box-shadow:inset 0px 1px 3px #bbb; -moz-box-shadow:inset 0px 1px 3px #bbb; font-size:12px; } #loginForm #login { width:auto; float:left; color:black; padding:7px 10px 8px 10px; box-shadow:none; -moz-box-shadow:none; -webkit-box-shadow:none; margin:0 12px 0 0; cursor:pointer; padding:7px 2px 8px 2px; /* IE7 Fix */ } #loginForm span { background-color: rgba(0,0,0,0.4); text-align:center; display:block; padding:7px 0 4px 0; } #loginForm span a { color:white; font-size:12px; } #rightpannel{ float: right; margin-top: 20px; margin-right: 20px; width: 600px; height: 350px; background: rgba(0, 0, 0, 0.5); } #bottompannel{ margin-top: 400px; margin-left: 20px; width: 1240px; height: 200px; background: rgba(0, 0, 0, 0.5); } #leftpannel{ float: left; margin-top: 20px; margin-left: 20px; width: 600px; height: 350px; background: rgba(0, 0, 0, 0.5); }
IE's parser is far less error-tolerant that Webkit (Chrome / Safari) or Gecko (Firefox). Run your code through a validation service. There's a good chance, you forgot to close a tag somewhere which is messing with the markup (I speak from personal experience).
You forgot to clear your floats in the navigation menu... <ul id="registrationul"> <li id="welcome"></li> <li id="register"><a id="userButton" href="register.php"><img onmouseout="hideIt(this, 'images/register_plain.jpg')" onmouseover="showIt(this, 'images/register_hover.jpg')" id="imageshow6" alt="" src="images/register_plain.jpg"><em></em></a></li> </ul> <div style="clear:both;"></div><!-- clears floated elements (in this case ul#menu and ul#registrationul) -->
You will never get IE to attempt to perform like the other far more modern browsers without a doctype. A doctype is required for modern web pages and, without one, you are in quirks mode. Add this as your first line: <!DOCTYPE html>