Related
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.
i'm redesigning my website. and doing that i'm finding myself in some problems using the css code i wrote.
i use div's to get an image and some text next to each other.
i'm unable to get the text moved to the correct place (see pictures) the margin-left doesn't seem to work when it is in the css file but it works when directly embedded in the div tags, am i doing something wrong?
also i'dd like to add that i don't need to set the image size in the html code but its in the css code is this possible?
What i get
What i want
body
{
background:#333 url(bg.jpg) repeat top left;
font-family:Arial;
color:white;
text-align:center;
}
body header.heading
{
width:1150px;
/*background:transparent url(../images/menu/MEbanner.jpg) no-repeat top;
background-size: 1150 100px;
padding-top:101px;*/
margin:0 auto;
z-index:0;
}
body.Content
{
width:1150px;
}
main
{
width:1150px;
margin: 0 auto;
}
section
{
text-align:left;
margin:0 auto;
}
header nav
{
width:1150px;
background:transparent url(../images/menu/MEbanner.jpg) no-repeat top;
background-size: 1150 100px;
padding-top:101px;
margin:0 auto;
z-index:0;
}
header nav ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}
header nav li {
float: left;
border-right: 1px solid #bbb;
}
header nav li:last-child {
border-right: none;
}
/*header nav li a {
display: block;
color: white;
text-align: center;
padding: 20px 16px;
text-decoration: none;
}*/
/* Change the link color to #111 (black) on hover */
header nav li a:hover {
background-color: #111;
}
header nav li.active {
background-color: #4CAF50;
}
header nav li a, .dropbtn {
display: inline-block;
color: white;
text-align: center;
padding: 20px 16px;
text-decoration: none;
}
header nav li a:hover, .dropdown:hover .dropbtn {
background-color: #111;
}
header nav li.dropdown {
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
}
.dropdown-content a:hover {background-color: #f1f1f1}
.dropdown:hover .dropdown-content {
display: block;
}
nav
{
text-align:left;
margin:0 auto;
}
.hidden {display:none}
hr
{
border-left: none;
border-right: none;
height:4px;
margin: 2em 0 2em 0;
}
main a:link {color:#fff;} /* unvisited link */
main a:visited {color:#fff;} /* visited link */
main a:hover {color:#159;} /* mouse over link */
blockquote{
color:white;
border-left: 8px solid;
border-color: #0BD676;/*#0DFF8C;*/
padding-left:10px;
}
h2
{
font-size: 30px;
color:Black;
}
h1,h2,h3,h4
{
font-family: 'Open Sans Condensed', sans-serif;
color:#4CAF50;
text-decoration:underline;
}
h2, h3
{
font-size: 1.6em;
letter-spacing: -1px;
margin: 0 0 0.75em 0;
}
h3
{
font-size:1.3em;
}
h1
{
font:bold;
}
h4
{
font-size:1em;
margin: 0.5em 0 0.5em;
padding-left:1em;
}
.green
{
border-left: 8px solid;
border-color: #0BD676;/*#0DFF8C;*/
padding-left:10px;
color: #4CAF50;
margin-left:40px;
font-style:oblique;
}
article.centeralign
{
text-align:center;
}
div.wrapper{
width: 800px;
overflow: hidden;
}
div.toolsWrapper{
width: 980px;
overflow: hidden;
}
div.left{
width: 200px;
float:left;
margin-right:40px;
padding-left:40px;
}
div.right{
float:left;
margin-left: 20px;
}
div.cc
{
width:200px;
text-align:right;
font-size:10px;
}
div.ccf
{
text-align:center;
font-size:12px;
}
iframe
{
text-align:center;
float:center;
}
/* ===========================
====== Contact Form =======
=========================== */
input, textarea {
padding: 10px;
border: 1px solid #E5E5E5;
width: 200px;
color: #999999;
box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 8px;
-moz-box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 8px;
-webkit-box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 8px;
}
textarea {
width: 400px;
height: 150px;
max-width: 400px;
line-height: 18px;
}
input:hover, textarea:hover,
input:focus, textarea:focus {
border-color: 1px solid #C9C9C9;
box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px;
-moz-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px;
-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px;
}
.form label {
margin-left: 10px;
color: #999999;
}
/* ===========================
====== Submit Button ======
=========================== */
.submit input {
width: 100px;
height: 40px;
background-color: #474E69;
color: #FFF;
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
table, th, td {
border: 1px solid black;
border-color:white;
}
th, td {
padding: 15px;
}
.blue{
background: url(blue.png) no-repeat left center;
color: #109CEF;
padding: 0px 40px 0px 20px;
font-style:oblique;
}
.red{
background: url(red.png) no-repeat left center;
color:#FF0000;
padding: 0px 40px 0px 20px;
font-style:oblique;
}
<article>
<h1>Audio Projects</h1>
<blockquote>
<h3>
<a href="Damp">
Class D Amplifier
</a>
</h3>
<div class="wrapper">
<div class="left">
<img src="Damp/Damp_front.JPG"/>
</div>
<div class="right">
Some text that should be next to image
</div>
</div>
</blockquote>
</article>
I changed those:
.h1 {
text-align: left;
}
.h3 {
text-align: left;
}
div.left{
float: left;
}
div.right {
width: 500px;
float: left;
margin-left: 20px;}
results
https://i.stack.imgur.com/7rswY.png
You just need to change a few styles, and replace the <article> with a <div> (For IE support)
div.wrapper {
width: 800px;
overflow: hidden;
}
div.toolsWrapper {
width: 980px;
overflow: hidden;
}
div.left {
width: 200px;
float: left;
margin-right: 40px;
padding-left: 40px;
}
div.right {
color: white;
display: inline-block;
position: absolute;
top: 0;
}
.wrapper {
position: relative;
width: 50%;
}
.title {
color: #4B9F49;
}
.inner_title {
color: white;
}
.blockquote {
border-left: 3px solid #0CD673;
padding-left: 5px;
}
#article {
background: black;
}
<div id="article">
<h3>
Audio Projects
</h3>
<blockquote class="blockquote">
<h3>
Class D Amplifier
</h3>
<div class="wrapper">
<img src="Damp/Damp_front.JPG" style="height:80px; width:200px;"/>
<div class="right">
Some text that is now next to the image.
</div>
</div>
</blockquote>
</div>
I guess problem is with width of left class division. Try to make it auto.
div.left{
width: auto;
....
}
Option 1, my preferred way of doing this:
Remove the float in .left take the inline left margin out of the .right and give both .left and .right
display: inline-block;
Giving you
div.left{
width: 200px;
/*float:left;*/
display: inline-block;
margin-right:40px;
padding-left:40px;
}
div.right{
display: inline-block;
width: 520px;
margin-left: 20px;
}
For those two classes
Option 2:
Give both a float:left
div.left{
width: 200px;
float:left;
margin-right:40px;
padding-left:40px;
}
div.right{
float:left;
width: 520px;
margin-left: 20px;
}
This should cause them to stack in the same way that inline-block does, but floats can cause trouble later. In either case you have to limit the width on .right or the text will prefer to be full width and not be inline, but rather be below the image. The total width of the two divs has to be less than the available width in .wrapper
Your image is probably larger than the .left container (given that this is the only element that is not included in your snippet to test properly).
Try the following ...
img{
height: auto;
width: auto;
max-height: 100%;
max-width: 100%;
}
... you should probably add a class for that image, rather than styling all images this way.
well, what i can advice you is to put the text in the same division as the image like in paragraph tag and then give the image css attribute called "float:left" according to what you want.
thank you
hope this is going to help you
use .classname only
instead of div.classname
i am currently trying to move my sidebar from below the content box to the right of it alongside it. No matter what i try it stays at a certain point no going up any higher. My website is VAGUE LINES, where if you scroll down a bit u will be able to see exactly what i am saying.
Below is my css code thanks alot:
h1
{
text-align:center;
font-family:sans-serif;
letter-spacing:12px;
padding-bottom:6px;
border-top:1px solid rgb;
margin-top:35px;
color:#544E4F;
font-weight:lighter;
}
hr
{
display:overline-block;
width:200px;
}
#header
{
background: #FFFFFF;
text-align: center;
}
#navigation ul
{
margin: 0;
padding: 0;
list-style-type: none;
text-align: center;
}
#navigation ul li
{
display: inline;
padding-right: 30px;
}
#navigation ul li a
{
text-decoration: none;
padding: .3em 5em;
color: #000000;
background-color: #FFFFFF;
font-family: courier;
}
#navigation ul li a:hover
{
text-decoration: line-through;
}
.centeredImage
{
float: none;
margin: 4% 0 2% 9%;
text-align: center;
padding-bottom: 25px;
}
#main-content hr
{
width :66%;
margin-left: 9%;
}
#main-content
{
width:80%;
padding-left: 113px;
padding-top: 20px;
}
#page-wrap {
background: white;
min-width: 780px;
max-width: 1260px;
margin: 10px auto;
}
#page-wrap #inside {
margin: 10px 10px 0px 10px;
padding-top: 10px;
padding-bottom: 10px;
}
#sidebar{
border-top: 1px solid #99CC33;
border-left: 1px solid #99CC33;
height: 300px;
width: 200px;
margin-right: 5px;
padding: 5px 0 0 5px;
position:absolute;
}
#main-content p
{
margin-left: 10%;
font-family: courier;
font-size: 14px;
}
#heading p
{
margin-left: 10%;
font-family: sans-serif;
font-size: 14px;
}
#sidebar p
{
margin-left: 10%;
font-family: courier;
font-size: 14px;
font-weight:bold;
}
Try this:
#main-content
{
float: left; // float element to the left side
width:80%;
padding-left: 113px;
padding-top: 20px;
}
#sidebar{
border-top: 1px solid #99CC33;
border-left: 1px solid #99CC33;
height: 300px;
width: 200px;
margin-right: 5px;
padding: 5px 0 0 5px;
position:absolute;
right: 0; // position element to the right
}
EDIT: Sorry. You wanted sidebar on the right.
So I don't have to post too much code the page is: http://www.ketchikanvet.com . The problem is I can't get the tabs to be attached to the pane in IE8. The majority of the vets clients use IE8 apparently so this is making it a pain in the ass for me. Anyone know why? CSS is:
html {
margin: 0;
padding: 0;
}
body {
width: 100%;
text-align: center;
margin: 0;
padding: 0;
background-color: #17BFEE;
color: #111111;
font-family: Arial, sans-serif;
}
h1 {
margin: 0;
font-family: 'Marmelad', sans-serif;
font-size: 5em;
color: #111111;
text-shadow: 0px 2px 3px #efefef;
}
#header {
text-align: center;
margin-top: 10px;
margin-bottom: 30px;
}
#content {
text-align: left;
margin: 0 auto;
width: 70%;
}
/* root element for tabs */
ul.tabs {
margin:0 !important;
margin-bottom: 0;
padding:0;
height:30px;
}
/* single tab */
ul.tabs li {
float:left;
padding:0;
margin:0;
list-style-type:none;
}
/* link inside the tab. uses a background image */
ul.tabs a {
float:left;
font-size:13px;
display:block;
padding:5px 30px;
text-decoration:none;
border:2px solid #001401;
border-bottom:0px;
height:18px;
background-color:#ddd;
color:#000;
margin-right:2px;
margin-bottom: 0;
position:relative;
outline:0;
border-radius:5px 5px 0 0;
}
ul.tabs a:hover {
background-color:#F7F7F7;
color:#000;
}
/* selected tab */
ul.tabs a.current {
background-color:#F0F0FF;
border-bottom:2px solid #F0F0FF;
color:#000;
cursor:default;
}
/* tab pane */
.panes div {
display:none;
border:2px solid #001401;
min-height:150px;
padding:15px 20px;
background-color:#F0F0FF;
border-radius: 0 5px 5px 5px;
box-shadow: 1px 1px 8px #C4C4C4;
}
/*End of Tabs*/
#gallery img {
border: 2px solid #001401;
border-radius: 5px;
margin-right: 5px;
}
#gallery img:hover {
border: 2px solid #494949;
}
#footer a {
color: #111111;
text-decoration: none;
}
#footer a:hover {
color: #efefef;
}
#addhours {
width: 100%;
}
#addhours td {
width: 50%;
}
.clear {
clear: both;
}
a {
text-decoration: none;
color: #890224;
}
a:hover {
text-decoration: none;
color: #890224;
}
a:visited {
text-decoration: none;
color: #890224;
}
.falselink {
cursor: pointer;
}
.bioimage {
box-shadow: 1px 1px 8px #C4C4C4;
border: 2px solid #001401;
border-radius: 10px;
}
.photo {
box-shadow: 1px 1px 8px #C4C4C4;
border: 2px solid #001401;
border-radius: 10px;
}
#browsercheck {
color: #ff0000;
}
add to UL.tabs A
border-bottom-color:rgb(221, 221, 221);
border-bottom-style:solid;
border-bottom-width:2px;
I added a height of 32px to your anchors inside the ul.tabs and it seemed to be what you're looking for.
ul.tabs a {height:32px;}
If you're using the html5 boiler plate you can target ie alone.
.ie8 ul.tabs a {height:32px;}
I'm trying to show some bullet point list circles on my webpage, but it doesn't seem to show, and I tried using firebug but I can't find what's wrong, I went through my whole css file, and I don't see where the problem is, i want the list to be vertical with circles!
Please can you help me, here is the code :
/* Browser resets. */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, code,
del, dfn, em, img, q, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, dialog, figure, footer, header,
hgroup, nav, section {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 1em;
font-family: inherit;
vertical-align: baseline;
line-height: 1.5em;
}
#fancy_ajax .note{ cursor:default; }
/* Three styles for the notes: */
.yellow{
background-color:#FDFB8C;
border:1px solid #DEDC65;
}
.blue{
background-color:#A6E3FC;
border:1px solid #75C5E7;
}
.green{
background-color:#A5F88B;
border:1px solid #98E775;
}
/* Each note has a data span, which holds its ID */
span.data{ display:none; }
/* Green button class: */
a.green-button,a.green-button:visited{
color:black;
display:block;
font-size:10px;
font-weight:bold;
height:15px;
padding:6px 5px 4px;
text-align:center;
width:60px;
text-shadow:1px 1px 1px #DDDDDD;
background:url(../img/button_green.png) no-repeat left top;
}
a.green-button:hover{
text-decoration:none;
background-position:left bottom;
}
.author{
/* The author name on the note: */
bottom:10px;
color:#666666;
font-family:Arial,Verdana,sans-serif;
font-size:12px;
position:absolute;
right:10px;
}
#main{
/* Contains all the notes and limits their movement: */
margin:0 auto;
position:relative;
width:980px;
height:500px;
z-index:10;
background:url(img/add_a_note_help.gif) no-repeat left top;
}
h3.popupTitle{
border-bottom:1px solid #DDDDDD;
color:#666666;
font-size:24px;
font-weight:normal;
padding:0 0 5px;
}
#noteData{
/* The input form in the pop-up: */
height:200px;
margin:0px 0 0 0px;
width:350px;
}
.note-form label{
display:block;
font-size:10px;
font-weight:bold;
letter-spacing:1px;
text-transform:uppercase;
padding-bottom:3px;
}
.note-form textarea, .note-form input[type=text]{
background-color:#FCFCFC;
border:1px solid #AAAAAA;
font-family:Arial,Verdana,sans-serif;
font-size:19px;
font-weight: bold;
height:60px;
padding:5px;
width:300px;
margin-bottom:0px;
}
.note-form input[type=text]{ height:auto; }
.color{
/* The color swatches in the form: */
cursor:pointer;
float:left;
height:10px;
margin:0 5px 0 0;
width:10px;
}
#note-submit{ margin:20px auto; }
body {
height:100%;
background-color: white;
font-size: 14px;
color: #333333;
font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
}
/* custom selection colors */
::-moz-selection {
color: #fff;
color: rgba(255,255,255,.85);
background: #ea4c88;
}
::selection {
color: #fff;
color: rgba(255,255,255,.85);
background: #ea4c88;
}
/* Links */
a {
text-decoration: none;
color: #19558D;
font-size: inherit;
}
a:hover {
text-decoration: underline;
}
a:visited {
text-decoration: none;
background-color: inherit;
color: #336699;
}
a img {
border: none;
}
/* Input fields + label */
input, textarea {
border: 1px solid #999999;
padding: 5px;
}
label {
float: left;
margin-right: 10px;
margin-top: 10px;
margin-bottom: 0pxpx;
width: 120px;
font-size: 22px;
color: inherit;
font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
}
#error {
font-size: 14px;
}
/* Lists */
li {
font-size: 14px;
margin-left: 10px;
list-style-type: circle;
display:inline;
}
li a {
margin-left: inherit;
}
#like_text {
float: left;
color: #0099CC;
cursor: pointer;
font-size: inherit;
}
.like_list_element {
width: 681px;
float: left;
padding-top: 15px;
margin-left: 0px;
height: 35px;
border-bottom: 1px solid #999999;
}
.like_list_element:hover {
width: 681px;
float: left;
padding-top: 15px;
margin-left: 0px;
height: 35px;
border-bottom: 1px solid #999999;
background-color: #EDEDED;
}
.micro_avatar {
float: left;
width: 30px;
height: 30px;
margin-right: 15px;
margin-top: -7px;
padding: 2px;
background-color: #ffffff;
-moz-box-shadow: 2px 2px 4px #D1D1D1;
-webkit-box-shadow: 2px 2px 4px #D1D1D1;
box-shadow: 2px 2px 4px #D1D1D1;
-moz-border-radius: 2px;
border-radius: 2px;
}
/* "Super" headline */
h1 {
font-weight: bold;
font-style: italic;
font-size: 38px;
color: #666666;
font-family: Georgia, "Times new roman", serif;
}
/* "Medium (bold)" headline */
h2 {
font-size: 20px;
font-weight: bolder;
color: inherit;
font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
}
/* Normal headline (used on profile page) */
.normal_headline {
font-size: 22px;
float: left;
font-weight: bold;
color: inherit;
font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
}
/* "Standard" headline */
h3 {
font-size: 15px;
color: inherit;
font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
}
/* page structure */
/* Container - main content goes here */
#container {
min-height: 100%;
height:100%;
width: 897px;
margin-bottom: 30px;
margin: 0 auto;
}
/* Left (main) content */
#left_content {
float: left;
width: 485px;
font-size: 1em;
padding-left: -15px;
}
ul.statuses{
margin:10px 0;
}
ul.statuses li {
position:relative;
padding:15px 15px 15px 10px;
list-style:none;
font-size:12px;
}
div.tweetTxt{
float:left;
width:400px;
overflow:hidden;
}
ul.statuses a img.avatar{
float:left;
margin-right:10px;
border:1px solid #446600;
}
div.date{
line-height:18px;
font-size:10px;
color:#999999;
}
.question_link{
float:left;
font-weight: bold;
margin-left:40px;
color:blue;
}
#answerText {
float:left;
width:480px;
margin-left:40px;
margin-bottom: 5px;
}
#answerText ul{
margin-left:40px;
}
#answerText li {
list-style-type: circle;
font-size:30px;
}
.answerActions {
float:left;
margin-left:40px;
font-size:9px;
}
.thanks{
font-weight:bold;
}
.content{
float:left;
}
/* Used for seperating content eg. Timeline && photos */
.left_content_seperator {
width: 485px;
float: left;
border-bottom: 1px solid #999999;
margin-top: 15px;
margin-bottom: 30px;
height: auto;
}
/* Used in eg. postphoto.php */
.big_content_seperator {
width: 897px;
float: left;
border-bottom: 1px solid #999999;
margin-bottom: 30px;
}
/* Right side content */
.right_content {
float: right;
width: 200px;
font-size: 14px;
margin-right:80px;
}
/* Used for seperating content eg. Timeline && photos */
.right_content_seperator {
width: 200px;
float: right;
margin-top: 33px;
margin-bottom: 15px;
}
.right_content_seperator_home {
width: 200px;
float: right;
margin-top: 25px;
margin-bottom: 15px;
}
/* For footer + header (outside the main container) */
.small_container {
margin: 0 auto;
width: 900px;
}
/* The bar on the top of the page */
.top_bar {
width: 100%;
height: 50px;
margin-bottom: 30px;
background:none repeat scroll 0 0 black;
}
#search {
width: 502px;
padding: 10px;
height:20px;
margin: 10px 0px 0px -30px;
background-color:#505759;
float:left
}
.question_box{
background: none repeat scroll 0 0 #FFFFFF;
border-color: #CCCCCC #999999 #999999 #CCCCCC;
border-style: solid;
border-width: 1px;
color: #000000;
font: 16px arial,sans-serif;
margin: -5px 0px 0px -5px;
padding: 5px 8px 0px 6px;
width:380px;
height:25px
}
input.blur {
color: #999;
}
#search a {
color: #E5E5E5;
text-decoration: none;
font-weight: bold;
}
#search a:hover {
text-decoration: underline;
}
/* Logotype container */
.logotype {
background-color:#671E1E;
font-size: 20px;
float: left;
color:white;
padding:10px;
margin: 10px 30px 0px 0px;
}
/* The menu on the top of the page */
.top_menu {
float: right;
text-align: right;
background-color: inherit;
color: #ffffff;
margin: 15px 0px 0px 0px;
}
.top_menu a {
color: #E5E5E5;
text-decoration: none;
}
.top_menu a:hover {
text-decoration: underline;
color: inherit;
}
/* Main content + form container on the front page */
.text_box {
margin: 0 auto;
margin-top: 70px;
text-align: center;
width: 590px;
}
/* Box for the iPhone image on the front page */
.iphone_promo {
margin: 0 auto;
margin-top: 70px;
margin-bottom: 30px;
text-align: center;
width: 590px;
}
/* Red arrow next to the iPhone picture */
.arrow {
margin: 0 auto;
margin-left: 210px;
margin-bottom: -145px;
}
/* Typography */
.small_copy {
font-size: 12px;
}
#menu_list ul{
}
#menu_list li{
}
.not_selected {
-moz-border-radius: 5px 5px 5px 5px;
background-image: url("http://d1vgw4v7ja2ido.cloudfront.net/-9dfe92083011731d.gif");
background-position: left center;
background-repeat: no-repeat;
clear: both;
display: block;
font-weight: bold;
padding: 3px 5px 3px 10px;
color: #444444;
cursor: default;
}
.not_selected:hover{
background-color:lightblue;
}
.selected{
-moz-border-radius: 5px 5px 5px 5px;
background-image: url("http://d1vgw4v7ja2ido.cloudfront.net/-9dfe92083011731d.gif");
background-position: left center;
background-repeat: no-repeat;
clear: both;
display: block;
font-weight: bold;
padding: 3px 5px 3px 10px;
background-color: #E0E0E0;
color: #444444;
cursor: default;
}
#menu_list li{
margin-left: inherit;
}
.right_seperator {
width: 200px;
float: left;
border-bottom: 1px dotted #999999;
margin-top: 15px;
margin-bottom: 10px;
height: auto;
}
.light_gray_serif {
font-family: Georgia, "Times new roman", serif;
font-size: inherit;
color: #999999;
font-size: 14px;
}
/* Forms */
#email_form {
width: 285px;
height: 40px;
font-size: 22px;
margin-right: -1px;
outline: none;
font-weight: bold;
color: #999999;
font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
float: left;
}
#submit_button {
width: 295px;
height: 52px;
font-size: 22px;
font-weight: bold;
margin-left: -1px;
cursor: pointer;
color: inherit;
font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
border: 1px solid #F9AA33;
float: right;
}
#username_form {
width: 448px;
height: 40px;
font-size: 22px;
margin-bottom: 15px;
outline: none;
font-weight: bold;
color: inherit;
font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
float: right;
}
#password_form {
width: 448px;
height: 40px;
font-size: 22px;
margin-bottom: 15px;
outline: none;
font-weight: bold;
color: inherit;
font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
float: right;
}
.standard_big_form {
width: 448px;
height: 40px;
font-size: 22px;
margin-bottom: 15px;
outline: none;
font-weight: bold;
color: inherit;
font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
float: right;
}
/* Big login button */
#login_button {
width: auto;
padding-left: 20px;
padding-right: 20px;
height: 52px;
font-size: 22px;
font-weight: bold;
margin-left: -1px;
cursor: pointer;
color: inherit;
font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
border: 1px solid #F9AA33;
float: right;
}
#login_button:active {
position: relative;
top: 1px;
}
/* Standard buttons */
.big_button {
width: auto;
padding-left: 20px;
padding-right: 20px;
height: 52px;
font-size: 22px;
font-weight: bold;
cursor: pointer;
color: #333333;
font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
border: 1px solid #F9AA33;
float: right;
}
.big_button:active {
position: relative;
top: 1px;
}
.profile_name_container {
width: auto;
}
.follow_container {
float: left;
width: auto;
margin-top: 7px;
margin-left: 15px;
}
.follow_button {
margin-left: 0px;
text-align: justify;
color: #0099CC;
padding-left: 20px;
padding-right: 4px;
padding-top: 4px;
padding-bottom: 4px;
-moz-border-radius: 5px;
border-radius: 5px;
font-size: 14px;
background: url(../images/follow-icon.png) no-repeat 4px 6px;
}
.follow_button:hover {
cursor: pointer;
margin-left: -1px;
margin-right: -1px;
background-color: #EDEDED;
border: 1px solid #999999;
background-image: url(../images/follow-icon.png) no-repeat 4px 6px;
}
.unfollow_button {
margin-left: 0px;
text-align: justify;
color: #0099CC;
padding-left: 20px;
padding-right: 4px;
padding-top: 4px;
padding-bottom: 4px;
-moz-border-radius: 5px;
border-radius: 5px;
font-size: 14px;
background: url(../images/unfollow-icon.png) no-repeat 4px 6px;
}
.unfollow_button:hover {
cursor: pointer;
margin-left: -1px;
margin-right: -1px;
background-color: #EDEDED;
border: 1px solid #999999;
background-image: url(../images/unfollow-icon.png) no-repeat 4px 6px;
}
.push_footer {
margin-bottom: 200px;
}
/* Footer (container) of the page */
.footer {
float: left;
margin-top: 30px;
padding-bottom: 15px;
width: 897px;
height: 49px;
border-top: 1px solid #999999;
}
/* "Photoblogging through events." text. */
.footer_info {
font-size: 14px;
float: left;
margin-top: 15px;
}
/* The link to 'Support & Feature requests' */
.footer_link {
font-size: 14px;
float: right;
margin-top: 15px;
}
/*** Colors ***/
/* Blue gradient (css gradients, #336699 is used for IE and older browsers) */
.blue_gradient {
background: #336699;
background: -webkit-gradient(linear, left top, left bottom, from(#0099CC), to(#336699));
background: -moz-linear-gradient(top, #0099CC, #336699);
}
/* Yellow gradient (for button) #FBAA33 = orange */
.yellow_gradient {
background: #FBAA33;
background: -webkit-gradient(linear, left top, left bottom, from(#FBF16E), to(#FBAA33));
background: -moz-linear-gradient(top, #FBF16E, #FBAA33);
}
.yellow_gradient:hover {
background: #F6D05A;
}
/* Image design */
.photo {
float: left;
min-width: 200px;
min-height: 200px;
padding: 5px;
margin-right: 15px;
margin-bottom: 15px;
background-color: #ffffff;
border: 1px solid #EAEAEA;
-moz-box-shadow: 4px 4px 10px #D1D1D1;
-webkit-box-shadow: 4px 4px 10px #D1D1D1;
box-shadow: 4px 4px 10px #D1D1D1;
}
.photo_thumbnail:hover {
filter:alpha(opacity=60);
-moz-opacity:0.6;
-khtml-opacity: 0.6;
opacity: 0.6;
}
.big_photo_container {
text-align: center;
width: 666px;
margin-bottom: 15px;
}
.event_name {
height: 20px;
margin-right: 5px;
width: 169px;
float: left;
}
.trash_can {
height: 17px;
width: 14px;
-moz-border-radius: 5px;
border-radius: 5px;
padding-top: 3px;
padding-left: 2px;
float: right;
}
.trash_can:hover {
cursor: pointer;
margin: -1px;
background-color: #EDEDED;
border: 1px solid #999999;
}
/* Image design */
.big_photo {
margin-top: 15px;
max-width: 656px;
padding: 5px;
background-color: #ffffff;
border: 1px solid #EAEAEA;
-moz-box-shadow: 4px 4px 10px #D1D1D1;
-webkit-box-shadow: 4px 4px 10px #D1D1D1;
box-shadow: 4px 4px 10px #D1D1D1;
}
.profile_photo {
float: left;
width: 50px;
height: 50px;
margin-right: 15px;
margin-bottom: 15px;
padding: 5px;
background-color: #ffffff;
-moz-box-shadow: 4px 4px 10px #D1D1D1;
-webkit-box-shadow: 4px 4px 10px #D1D1D1;
box-shadow: 4px 4px 10px #D1D1D1;
-moz-border-radius: 5px;
border-radius: 5px;
}
.profile {
padding-top: 15px;
}
/* Heart sign */
.fav {
margin-left: 0px;
color: #0099CC;
padding-left: 20px;
padding-right: 4px;
padding-bottom: 4px;
-moz-border-radius: 5px;
border-radius: 5px;
background: url(../images/heart-icons.png) no-repeat 4px 4px;
}
.fav:hover {
cursor: pointer;
margin-left: -1px;
margin-right: -1px;
background-color: #EDEDED;
border: 1px solid #999999;
background: url(../images/heart-icons.png) no-repeat 4px -13px #EDEDED;
}
.highlight {
margin-left: 0px;
color: #0099CC;
cursor: pointer;
padding-left: 20px;
padding-right: 4px;
padding-bottom: 4px;
-moz-border-radius: 5px;
border-radius: 5px;
background: url(../images/heart-icons.png) no-repeat 4px -13px;
}
.highlight:hover {
cursor: pointer;
margin-left: -1px;
margin-right: -1px;
background-color: #EDEDED;
border: 1px solid #999999;
background: url(../images/heart-icons.png) no-repeat 4px 4px #EDEDED;
}
/* Heart sign */
.likes {
font-size: inherit;
}
/* Views */
.views {
padding-left: 20px;
float: right;
}
/* Costum */
/* Removes underlines for eg. buttons */
.no_underline:hover {
text-decoration: none;
}
/* Margins */
.small_margin_top {
margin-top: 15px;
}
.negative_margin_top {
margin-top: -4px;
}
.custom_margin_top {
margin-top: 48px;
}
.no_margin_left {
margin-left: 0px;
}
.no_margin_top {
margin-top: 0px;
}
/* Paddings */
.no_padding_top {
padding-top: 0px;
}
.normal_font_weight {
font-weight: normal;
}
.photo_label {
margin-right: auto;
padding-left: 6px;
text-align: left;
}
/* button basics */
a.minibutton {
display:inline-block;
height:23px;
padding:0 0 0 3px;
font-size:11px;
font-weight:bold;
color:#333;
text-shadow:1px 1px 0 #fff;
background:url(http://github.com/images/modules/buttons/minibutton_matrix.png) 0 0 no-repeat;
white-space:nowrap;
margin-right:4px;
border:none;
overflow:visible;
cursor:pointer;
text-decoration:none;
}
a.minibutton>span {
display:block;
height:23px;
padding:0 10px 0 8px;
line-height:23px;
background:url(http://github.com/images/modules/buttons/minibutton_matrix.png) 100% 0 no-repeat;
}
a.minibutton:hover, a.minibutton:focus {
color:#fff;
text-decoration:none;
text-shadow:-1px -1px 0 rgba(0,0,0,0.3);
background-position:0 -30px;
}
a.minibutton:hover>span, a.minibutton:focus>span {background-position:100% -30px;}
a.minibutton.mousedown{background-position:0 -60px; }
a.minibutton.mousedown>span{background-position:100% -60px; }
/* answer button */
a.answer {
display:inline-block;
height:23px;
padding:0 0 0 3px;
font-size:18px;
font-weight:bold;
color:#333;
text-shadow:1px 1px 0 #fff;
background:url(http://github.com/images/modules/buttons/minibutton_matrix.png) 0 0 no-repeat;
white-space:nowrap;
margin-right:4px;
border:none;
overflow:visible;
cursor:pointer;
text-decoration:none;
}
a.answer>span {
display:block;
height:23px;
padding:0 10px 0 8px;
line-height:23px;
background:url(http://github.com/images/modules/buttons/minibutton_matrix.png) 100% 0 no-repeat;
}
a.answer:hover, a.answer:focus {
color:#fff;
text-decoration:none;
text-shadow:-1px -1px 0 rgba(0,0,0,0.3);
background-position:0 -30px;
}
a.answer:hover>span, a.answer:focus>span {background-position:100% -30px;}
a.answer.mousedown{background-position:0 -60px; }
a.answer.mousedown>span{background-position:100% -60px; }
/* with icon */
a.btn-download .icon {
float:left;
margin-left:-4px;
width:18px;
height:22px;
background:url(http://github.com/images/modules/buttons/minibutton_icons.png?v20100306) 0 0 no-repeat;
}
a.btn-download .icon {background-position:-20px 0;}
a.btn-download:hover .icon, a.btn-download:focus .icon {background-position:-20px -25px;}
#profile_pic{
padding:5px;
border:1px #AAAAAA solid;
float:left;
}
ul.stats{
width:auto;
float:left;
display:inline;
margin: 20px 0px 0px 0px;
}
ul.stats li{
display:inline-block;
text-align:left;
}
.stats_number{
font-weight:bold;
font-size:10px;
}
.stats_text{
font-size:9px;
color:#505759;
}
ul.followingBar{
width:auto;
float:left;
margin: 0px 0px 0px 0px;
}
.watchingTopics{
float:left
}
ul.followingBar li{
display:block;
margin: 10px 0 0 0 ;
border-bottom:1px #999999 solid;
}
.topicFollow{
padding-bottom:10px;
font-weight:bold;
float:left;
}
.related_questions{
padding-bottom:10px;
font-weight:bold;
}
.panel
{
margin-left:50px; margin-right:50px; margin-bottom:5px; background-color:#D3E7F5; padding:6px; width:400px;
display:none; float:left;
}
.load_comment
{
margin-left:50px; margin-right:50px; margin-bottom:5px; background-color:#D3E7F5; height:auto; padding:6px; width:400px; font-size:12px;
float:left;
}
.flash_load
{
margin-left:50px; margin-right:50px; margin-bottom:5px;height:20px; padding:6px; width:400px;
display:none; }
.loadplace{
margin-top:70px;
}
<ul class="statuses">
<li>
<div id="answerText">
<ul>
<li>google</li>
<li>yahoo</li>
<li>quora</li>
</ul>
</div>
</li>
</ul>
li only gets its list-style-related styles applied if it has display: list-item
Your style for <li> is wrong:
li {
font-size: 14px;
margin-left: 10px;
list-style-type: circle;
display: inline;
}
should be
li {
font-size: 14px;
margin-left: 10px;
list-style-type: circle;
}
Try ensuring there are no:
list-style-type: none;
in your css file.
You attributed display:inline; to the LI tag, which explains why they're showing up horizontally instead of vertical. Get rid of that attribute.
I found that having overflow-x: hidden; (which I had applied to *) was hiding my bullets.
list not display bullet points
list-style-type:none;
Hey , you may have a problem in selector for example we have this code for list
some text
soke text
so our css code become like this
#ls{ list-style-type: circle;}
select with id value if you have multiple list .
My issue was caused by:
::marker {
content: none;
}
I was able to resolve by updating the CSS for my element to include:
li::marker {
content: initial;
}