I am making a fancy CSS theme for my tumblr. But my vertical scrollbar has vanished, and pressing "page down" has no effect. It is like the lower half of my page no longer exists, or the page is forced to be the size my browser window is. Indeed - if I resize my browser window, suddenly I see that amount of content and can't scroll down to see the stuff I could see a moment ago.
I have read some things on the internet already to solve this problem, such as adding "overflow:auto" or "overflow:scroll", but either I have have added them in the wrong place or they do not solve the problem I have. I have also tried manually adding a scrollbar in the html {} tag. If I do that, the scrollbar reappears - but it doesn't actually work. It appears all blocked in gray, as if you are already viewing the whole page, while displaying my content cut-off.
Very frustrated as the page is, apart from this, done. Any obvious ideas?
<!--CSS customization here. -->
<style type="text/css">
html {overflow-y: scroll;}
#text {
margin-bottom:50px;
margin-top:100px;
margin-top:5px;
text-transform:uppercase;
font-size:1em;
font-famiy:serif;
letter-spacing:2px;
text-align:center;}
/*main structure*/
blockquote {
padding:5px 0 5px 30px;
border-left:1px solid #eee;
margin:10px 30px;
overflow: auto;
}
body {
background-repeat:repeat-y;
background-size: cover;
font-family:serif;
font-weight:100;
font-size:1em;
text-align:left;
margin:0;
line-height:18px;
overflow:auto;
}
a {
color:black;
text-decoration:none;
-webkit-transition:all 0.2s;
-moz-transition:all 0.2s;
-ms-transition:all 0.2s;
-o-transition:all 0.2s;
transition:all 0.2s; }
a:hover {
color:#45b69d;
}
img{
border:1px solid #fff;
border-radius:6px;
}
p {
margin-top:5px;
margin-bottom:5px}
#divider{
top:25px;
left:305px;
position:fixed;
width:420px;
position:absolute;
}
#dividerr{
bottom:20px;
left:37px;
width:420px;
position:fixed;
}
/*container*/
#con {
width:80%;
margin:0 10%;
position:fixed;
overflow:auto;
}
/*posts*/
.posts {
width:45%;
height:300px;
padding:4px;
background:white;
float:left;
margin:20px 20px;
border:1px solid #ffcec7;
border-radius:6px;
z-index:3;
}
#image {
position:absolute;
padding-top:8px;
padding-left:5px;
margin-right:5px;
}
#image img {
width:190px;
border:1px solid #fff;
border-radius:6px;
margin-right:8px;
}
.info {
margin-left:205px;
width:65%;
text-transform:none;
}
.tit {
font-weight:bold;
text-align:right;
font-family:georgia;
color:#ffa79b;
font-size:1.5em;
letter-spacing:1px;
text-transform:uppercase;
}
.lank {
border-bottom:1px dashed #ffcec7;
margin-bottom:5px;
padding-bottom:5px;}
.about ul {margin-left:-10px}
.quest {
font-size:1.25em;
font-family:Helvetica;
font-variant:small-caps;
}
.answ {
margin-top:10px;
margin-left:40px;
font-family:Georgia;
}
.grave {
text-align:center;
font-weight:bold;
margin-top:10px;
font-family:georgia;
font-size:1.5em;
letter-spacing:1px;
font-style:italic;
color:#cdba96;
}
.credit {
width:45%;
height:auto;
padding:4px;
background:white;
float:left;
margin:20px 20px;
border:1px solid #ffcec7;
border-radius:6px;
z-index:3;
}
/*header*/
.headertext {
color:beige;
font-size:6em;
letter-spacing:1em;
text-align:center;
font-family:Helvetica,sans-serif;
line-height: 80%;
height: auto;
}
.l {
background:#fff;
margin-top:20px;
margin-left:auto;
margin-right:auto;
padding:2px;
text-align:center;
font-family:inconsolata;
text-transform:uppercase;
border:1px solid #ffcec7;
border-radius:6px;
}
#title {
width:50%
font-size:14px;
margin:auto 0;
text-align:center;
letter-spacing:1px;
text-transform:uppercase;
color:#ffcec7;
background:#f8f8f8;
padding:15px;
border-bottom:1px solid #eee;}
.links {
color:#ffa79b;
font-family:georgia;
padding-top:10px;
text-align:center;
padding-bottom:5px;
border-bottom:1px dashed #ffcec7;
}
.links a {
margin:10px 5px;
padding:2px 5px;
border:none;
}
.links a:hover {
background:#f8f8f8;
border-radius:6px;
}
.desc {
text-transform:none;
margin:10px 25px;
font-family:Georgia;
}
Alrighty, so I managed to fix the thing by taking one element at a time. The problem was in
container {position:fixed;}
but I'm not sure why. I was using the position:fixed to center my background. Leaving this in case it helps someone in future.
Related
So basically the menu buttons only changes height/width in two directions, and I need to do it three (in both directions left and right, and the bottom).
Here is what it looks like:
http://hijinxnetwork.net/web.html
The CSS:
body {
bakground-image: url('http://i.imgur.com/vjB3x6m.png');
background-repeat:repeat;
background-attachment:fixed;
}
.top {
background-color: #232323;
width:100%;
position:absolute;
top:0;
left:0;
right:0;
height:40px;
}
.header img {
width:450px;
padding-left:650px;
}
.header {
background-color: #101010;
width:100%;
position:absolute;
height:225px;
left:0;
right:0;
top:40px;
}
.nav {
width:900px;
margin:0 auto;
}
.nav ul {
position:relative;
top:179px;
left:auto;
right:auto;
}
.nav li {
float:left;
display:inline;
display:block;
margin-left:3px;
margin-right:3px;
padding-left:20px;
padding-right:20px;
font-family: 'Roboto', sans-serif;
font-weight:100;
text-transform:uppercase;
font-size:24px;
background-color: #363636;
height:50px;
padding-top:20px;
transition: 1s;
}
.nav li:hover {
background-color:#a61919;
height:60px;
font-size:30px;
}
.nav li a {
color:#ffffff;
text-decoration:none;
}
So, if you have any idea on how to change this, that would be great, thanks.
I'm having an absolute nightmare with Volusion! Basically, I want to make my page wider so that I can fit more on it, and have a bit of an experiment with how the page is set out.
I've tried editing the CSS but it either doesn't change or everything seems to move out of place! This is the CSS i'm attempting to work with:
div.pages_available_text {
font-size: 17px !important;
font-weight: bold !important;
}
a{text-decoration:none;}
a,a:visited,a:active{outline-style:none;}
a:hover{text-decoration:underline;
color:#79CDCD;}
img{border:none!important;}
.begin{border:none !important;}
.end{border:none !important;}
.bold{font-weight:bold !important;}
.highlight{color:#06a0cf !important;}
.left{float:left;}
.right{float:right;}
.clear{clear:both;}
.none{display:none !important;}
.block{display:block !important;}
.inline{display:inline !important;}
/* ############################### FIXES ############################### */
.qe_toolbar_ovr{z-index:9999 !important;} /*admin box*/
/* ############################### WINTER 09 STYLES ############################### */
.next_page_img{width:auto !important; height:auto !important;}
.previous_page_img{width:auto !important; height:auto !important;}
.soft_add_content_area span, .quantity{color:#000;}
.soft_add_wrapper {z-index:1100;}
/* ############################### PAGE WRAPPER ############################### */
body{
background-color:#ffcd05;
color:#505050;
font: normal 17px Arial, Helvetica, sans-serif;
margin:0;
padding:0;
text-align:center;
}
#page{
margin:0 auto;
text-align:left;
width:980px;
}
div{
font-size: 15px;
font:Arial, Helvetica, sans-serif;
}
#app {
color:#FFFF00;
font-size:20px;
text-align:center;
border-radius: 5px;
background-color:#000000;
clear:both;
border:none;
float:left;
width:160px;
padding:5px;
font-family:Coolsville, Cursive, sans-serif;
margin-bottom:10px;
}
#download {
height:70px;
width:71px;
}
#video {
align:middle;
}
/* ############################### HEADER ############################### */
#header{
background:url(../images/template/header_bg.jpg) no-repeat 22px 35px;
height:180px;
margin:0 auto;
padding:0;
position:relative;
width:980px;
}
#header div#display_homepage_title{
height:50px;
left:22px;
margin:0;
padding:0;
position:absolute;
top:77px;
width:400px;
}
#header div#display_homepage_title a{
display:block;
height:100%;
left:0;
margin:0;
padding:0;
position:absolute;
text-align:left;
text-indent:-9999px;
top:0;
width:100%;
}
#header div a#homepage_title{
background:none;
color:#2c2c2c;
font-size:20px;
text-indent:0;
}
#header .top{
background:url(../images/template/divider.gif) repeat-x 0 bottom;
color:#202020;
font-size:13px;
margin:0;
padding:1px 1px 2px;
text-align:right;
}
#header .top a{
border-right:1px solid #202020;
display:inline-block;
color:#202020;
font-size:13px;
height:13px;
padding:0 0px;
vertical-align:middle;
}
.app {
padding:10px;
}
.social {
padding:5px;
float:center;
}
/* ############################### SEARCH BOX */
#display_search{
background:url(../images/template/searchBg.gif) no-repeat 0 0;
float:right;
bottom:5px;
height:21px;
margin:12px 20px 0 0;
width:213px;
}
#display_search form{
height:100%;
margin:0;
padding:0;
width:100%;
}
#display_search #search_input{
background:none;
border:none;
color:#2c2c2c;
display:block;
float:left;
font:normal 12px Arial, Helvetica, sans-serif;
margin:0;
padding:4px 10px 2px 10px;
text-align:left;
width:168px;
}
#display_search #search_submit{
background:none;
border:none;
color:#fff;
cursor:pointer;
display:block;
float:right;
font-size:0;
height:21px;
margin:0;
padding:0;
text-align:right;
text-indent:-9999px;
width:24px;
}
/* ############################### SHOPPING CART DISPLAY */
#header .cart{
color:#202020;
font-size:13px;
float:right;
margin:8px 8px 0 0;
text-align:right;
}
#header .cart a{color:#202020;}
#display_cart_summary,
.cartsummary_full,
.cartsummary_empty{display:inline;}
#display_cart_summary a{display:none !important;}
/* ############################### TOP NAVIGATION ############################### */
#topnav{
background:url(../images/template/divider.gif) repeat-x 0 0;
min-height:52px;
margin:0 auto;
padding:2px 0px 0;
width:980px;
}
/* ############################### CONTENT ############################### */
#content{
background:url(../images/template/contentBg.gif) repeat-y 0 0;
margin:0 auto;
width:980px;
}
#content .inner{
padding:0px 10px 0;
margin-left:8px ;
}
/* ############################### LEFT_NAV ############################### */
#leftnav{
float:left;
width:190px;
}
#leftnav h3{
font-size:17px;
font-weight:normal;
padding:5px 5px 5px 15px;
text-transform:uppercase;
}
#leftnav .menu{padding-bottom:28px;}
/* ############################### PROMOTIONS */
#display_promotions_999{
margin:0;
padding:10px 0;
text-align:center;
vertical-align:middle;
width:1200px;
}
/* ############################### CONTENT AREA ############################### */
#content_area{
float:right;
padding:0 10px;
text-align:left;
width:700px;
}
#content #content_area table{text-align:left;}
/* ############################### FOOTER ############################### */
#footer{
background:url(../images/template/contentBot.gif) no-repeat 0 0;
margin:0 auto;
padding-top:10px;
width:980px;
}
#footer .top{
background:#2c2c2c url(../images/template/footerBg.gif) no-repeat 0 bottom;
color:#000000;
font-size:13px;
padding:20px 20px 15px;
width:940px;
}
/* ############################### MAILING LIST */
#eList{
float:right;
width:186px;
}
#eList div.title{
color:#ffcd05;
font-size:13px;
font-weight:bold;
margin:0 5px 6px 0;
text-align:right;
}
#eList form{
background:url(../images/template/elistBg.gif) no-repeat 0 0;
height:22px;
margin:0;
padding:0;
width:186px;
}
#elist_input{
background:none;
border:none;
color:#fff;
display:block;
float:left;
font:normal 11px Arial, Helvetica, sans-serif;
margin:0;
padding:5px 10px 3px 10px;
text-align:left;
width:145px;
}
#elist_submit {
background:none;
border:none;
color:#2c2c2c;
cursor:pointer;
display:block;
float:right;
font-size:0;
height:22px;
margin:0;
padding:0;
text-align:right;
text-indent:-9999px;
width:20px;
}
#footer .top ul{
float:left;
list-style:none;
margin:0;
padding:0;
width:188px;
}
#footer .top ul li.title{
color:#ffcd05;
font-weight:bold;
}
#footer .top ul li{
color:#fff;
font-size:13px;
padding-bottom:4px;
}
#footer .top ul li a{
color:#fff;
}
#footer .bottom{
color:#505050;
font-size:12px;
line-height:20px;
margin:20px auto;
text-align:center;
width:999px;
}
#footer .bottom a{
color:#505050;
}
I'm ok with HTML and CSS but pretty hopeless at anything else and i've read so many articles and forums but can't seem to get anywhere!
If you are referring to the mytoolkit.co.uk site, you are editing the wrong element. You need to make the page container div wider and then work your way down from there.
In your case, it looks like you need to edit the div with the ID "page". For example:
#page {width:1024px}
Then you would edit any additional child divs like the header, content, and footer divs.
I might be going about this the wrong way, but what I'm trying to achieve is a list style horizental that links in with some js that changes the navigation from one tab to another. The tab headings should have a counter before the text within a css circle using radius and I've got this far.
What I can't seem to resolve is how to then place this circle within a box the same colour as the li text background and ensure it changes colour when hovered/selected.
Here's my code so far:
OL.evotab {
counter-reset:li;
list-style: none;
float:left;
width:100%;
padding:0px;
}
OL.evotab LI {
list-style:none;
position:relative;
display: inline;
float:left;
margin:0 0 6px 2em;
padding:4px 8px;
}
ol.evotab > li:before {
content:counter(li); /* Use the counter as content */
counter-increment:li; /* Increment the counter by 1 */
/* Position and style the number */
position:absolute;
top:-2px;
left:-2em;
-moz-box-sizing:border-box;
-webkit-box-sizing:border-box;
box-sizing:border-box;
width:2em;
/* Some space between the number and the content in browsers that support
generated content but not positioning it (Camino 2 is one example) */
margin-right:8px;
padding:4px;
border-radius:50%;
color:#fff;
background:#666;
font-weight:bold;
font-family:"Helvetica Neue", Arial, sans-serif;
text-align:center;
}
OL.evotab LI A {
background-color: #f8f8f8;
color: #28343d;
text-decoration: none;
padding-top: 30px;
padding-left:20px;
padding-right:20px;
padding-bottom:30px;
border-bottom:5px solid #dfdfdf;
}
OL.evotab LI A.selected,
OL.evotab LI A:hover {
background-color: #f8f8f8;
color: #e51f38;
padding-top: 30px;
padding-bottom:30px;
border-bottom: 5px solid #e51f38;
}
OL.evotab LI A:focus {
outline: 0;
}
FIDDLE
Its a little difficult to see what you mean without any HTML....but have a look at the fiddle linked for an idea.
HTML
<a href='#'>This is an Item</a>
CSS:
a {
background:grey;
border:1px solid black;
display:inline-block;
padding:20px;
color:white;
text-decoration:none;
position:relative;
}
a:before {
content:'7';
color:black;
position:absolute;
display:inline-block;
background:yellow;
border:1px solid black;
border-radius: 999px;
left:-5px;
width:20px;
text-align:center;
line-height:20px;
height:20px;
}
a:hover, a:hover:before {
color:red;
}
firefox:
chrome:
does anyone know why this is happening in Firefox? it's driving me nuts
here is the css:
#gallery_grid .gallery_grid_item,#related_topics .gallery_grid_item,#popular_galleries .gallery_grid_item {
position:relative;
overflow:hidden;
display:block;
text-decoration:none;
}
#gallery_grid .gallery_grid_item {
width:288px;
height:260px;
box-shadow:0 1px 3px rgba(34,25,25,0.4);
-webkit-box-shadow:0 1px 3px rgba(34,25,25,0.4);
-moz-box-shadow:0 1px 3px rgba(34,25,25,0.4);
transition:margin .1s;
-moz-transition:margin .1s;
-webkit-transition:margin .1s;
-o-transition:margin .1s;
margin:15px;
}
#gallery_grid .gallery_grid_item:hover {
margin:13px 15px 17px;
}
#gallery_grid .gallery_grid_image_wrapper {
width:100%;
height:190px;
overflow:hidden;
}
#gallery_grid .gallery_grid_image {
min-height:100%;
}
#popular_galleries .gallery_grid_item,#gallery_grid .gallery_grid_item {
border:1px solid #999;
}
#related_topics .gallery_grid_item {
border:0!important;
width:242px;
height:140px;
overflow:hidden;
background:#181818;
margin:0;
}
#popular_galleries .gallery_grid_item {
width:200px;
height:140px;
letter-spacing:-.05em;
background:#181818;
margin:0 0 15px;
}
#popular_galleries.upsell .gallery_grid_item {
height:200px;
}
#related_topics .gallery_grid_item:nth-child(even) {
border:1px solid #777!important;
border-width:0 1px;
}
#gallery_grid .gallery_grid_item:hover,#related_topics .gallery_grid_item:hover,#popular_galleries .gallery_grid_item:hover {
border:1px solid #86d3ff;
}
#gallery_grid .gallery_grid_image,#related_topics .gallery_grid_image,#popular_galleries .gallery_grid_image,#related_topics .gallery_list_image {
width:100%;
overflow:hidden;
opacity:.9;
filter:alpha(opacity=90);
transition:opacity .1s;
-moz-transition:opacity .1s;
-webkit-transition:opacity .1s;
-o-transition:opacity .1s;
text-align:center;
display:block;
margin:0 auto;
}
#gallery_grid .gallery_grid_item:hover .gallery_grid_image,#related_topics .gallery_grid_item:hover .gallery_grid_image,#popular_galleries .gallery_grid_item:hover .gallery_grid_image,#related_topics .gallery_list_item:hover .gallery_list_image {
opacity:1;
filter:alpha(opacity=100);
}
#popular_galleries .gallery_grid_info,#related_topics .gallery_grid_info {
width:100%;
position:absolute;
bottom:0;
font-weight:500;
}
#gallery_grid .gallery_grid_info {
height:62px;
}
#related_topics .gallery_grid_info {
height:54px;
}
#popular_galleries .gallery_grid_info {
height:58px;
}
#related_topics.grid .gallery_title,#popular_galleries .gallery_title {
color:#fff;
text-shadow:1px 0 1px #000;
font-size:15px;
line-height:18px;
}
#gallery_grid .gallery_title {
font-size:16px;
line-height:21px;
color:#000;
text-shadow:none;
font-weight:600;
border-top:2px solid #00a3ff;
padding:10px 15px 0;
}
#gallery_grid .gallery_title:hover {
text-decoration:underline;
}
#popular_galleries .gallery_title {
height:39px;
overflow:hidden;
}
.trans_bg {
width:100%;
height:100%;
background:#000;
opacity:.5;
filter:alpha(opacity=50);
}
.content_over_transparent {
position:absolute;
top:0;
width:100%;
height:100%;
overflow:auto;
box-sizing:border-box;
-moz-box-sizing:border-box;
}
#gallery_grid .content_over_transparent,#related_topics .content_over_transparent {
padding:10px 15px 0;
}
#popular_galleries .content_over_transparent {
padding:10px 10px 0;
}
It's "content_over_transparent". Appreciate any help, thanks!
Edit:
Here is the grid item HTML (adding more content as it saying it's mostly code):
<a class="gallery_grid_item" href="#">
<img class="gallery_grid_image" src="http://d1qfo1bk8s78mq.cloudfront.net/uimg/5f9aa039ecf554f73312d912e22c516e.x355" />
<div class="gallery_grid_info">
<div class="trans_bg"></div>
<div class="content_over_transparent">
<p class="gallery_title">Finding your Perfect Red</p>
</div>
</div>
</a>
Add overflow: hidden; in .content_over_transparent, and it displays well both on FF and Chrome :
.content_over_transparent {
position:absolute;
top:0;
width:100%;
height:100%;
overflow:auto; /* Delete that */
box-sizing:border-box;
-moz-box-sizing:border-box;
overflow: hidden; /* Add that */
}
By the way, in your question you forgot to wrap your HTML code in a #popular_galleries.
Here's the fiddle : Fiddle
The following creates a table like structure.
As you will see in the FIDDLE the height of the first <li> is not counted. Why is this.
http://jsfiddle.net/CaqCg/5/
.ui .form {
display:block; position:relative; clear:both;
}
.ui .padd {
padding:20px; display:block;
}
.ui .form.boxstyle .text {
padding:0 5px 10px 5px;
}
.ui .form.boxstyle ul {
border:1px solid #DDD; border-radius:10px; background:#FAFAFA; margin:10px 0 10px 0; box-shadow:inset 0 0 10px rgba(100,100,100,0.1); display:block; position:relative; clear:both;
}
.ui .form.boxstyle li {
border-bottom:1px solid #DDD; display:block; clear:both; position:relative;
}
.ui .form.boxstyle li span:first-child {
float:left; display:block; width:-webkit-calc(35% - 20px); width:-moz-calc(35% - 20px); width:calc(35% - 20px); padding:12px 10px 9px 10px; font-size:12px; line-height:16px; height:16px; text-indent:6px; vertical-align:top;
}
.ui .form.boxstyle li span:nth-child(2) {
float:right; display:block; width:-webkit-calc(65% - 34px); width:-moz-calc(65% - 34px); width:calc(65% - 34px); padding:11px 10px 9px 10px; font-size:12px; line-height:16px; min-height:16px; border:solid #DDD; border-width:0 1px 0 1px; background:#FFF;
}
.ui .form.boxstyle li:last-child {
border-bottom:0px;
}
.ui .form.boxstyle label {
width:100%; font-size:12px; color:#555; text-shadow:0 1px #FFF;
}
.ui .form.boxstyle input, .ui .form.boxstyle textarea {
height:16px; display:block; color:#555; border:none; box-shadow:none; outline:none; line-height:16px; margin:0; width:100%; display:block; appearance:normal; padding:0;
}
Add overflow: hidden to the ul: http://jsfiddle.net/CaqCg/6/
The ul is collapsing because of the floated elements inside it.
Update: added overflow: hidden to the lis too, since they were also collapsing: http://jsfiddle.net/CaqCg/13/