Help - Search - Members - Calendar
Full Version: HELP: Small bugs in tumblr layout
HTMLHelp Forums > Web Authoring > Web Site Functionality
arrowcyrine
HI ALL. I'm new here, but somewhat familiar with html, although not formally (neopets, myspace experience lol)

I'm traveling and fixing up my tumblr, so I took a standard layout and customized it to my needs.
My layout is basically that the sidebar is where it needs to be, the header is where it needs to be. it's a very simple layout.
(Also, I'm viewing this on google chrome so I'm not sure– IT MAY look different on Safari, firefox, etc.)
THIS is what we're referencing

arrowcyrine.tumblr.com

My concern is THIS:

The content section is TOO stretched out. I made the content width 1200px because I wanted a two-column layout. But as you can see, the content unnecessarily stretches out– there's a horizontal scrollbar and the page is stretched for no reason at all (sorry I don't know the terminology for these things lol)

Also, the photos aren't in a straight line– if you scroll to the bottom they start to overlap and it just looks messy.
Some photos are also not high-res and are grainy until you click them. Is there any way to fix that?
Any help is appreciated smile.gif
Here's the layout code:


<!DOCTYPE html>

<!--

theme one version 1.0 by homemade themes
created: december 2013, http://homemadethemes.tumblr.com

-->

<html><head>

<title>{title}</title>
<meta name="description" content="{MetaDescription}" />
<link rel="shortcut icon" href="{Favicon}">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="alternate" type="application/rss+xml" title="RSS" href="{RSS}" />
<meta name="viewport" content="width=1220" />

<!-- DEFAULT VARIABLES -->
<meta name="color:Background" content="#FFFFFF" />
<meta name="color:Center" content="#FFFFFF" />
<meta name="color:Text" content="#000000" />
<meta name="color:Link" content="#555555"/>
<meta name="color:Link Hover" content="#5c5c5c" />
<meta name="color:Scrollbar" content="#7e817e"/>
<meta name="image:Background" content="" />
<meta name="image:Sidebar" content="" />
<meta name="if:Rounded Photos" content="0"/>
<meta name="if:Show Blog Title" content="1"/>
<meta name="if:Show Photo Permalinks" content="1"/>
<meta name="if:Show Description" content="1"/>
<meta name="if:Show Sidebar" content="1"/>
<meta name="if:Show Photo Captions" content="0"/>
<meta name="text:Ask Title" content="ask me anything" />
<meta name="text:Link One" content="" />
<meta name="text:Link One Title" content="" />
<meta name="text:Link Two" content="" />
<meta name="text:Link Two Title" content="" />
<meta name="text:Link Three" content="" />
<meta name="text:Link Three Title" content="" />
<meta name="text:Link Four" content="" />
<meta name="text:Link Four Title" content="" />
<meta name="text:Link Five" content="" />
<meta name="text:Link Five Title" content="" />
<!--- STYLESHEETS & STATIC UPLOADS --->
<script src="http://static.tumblr.com/ek9ly4s/b0Bmxbk09/jquery-latest-homemadethemes.js"></script>
<script src="http://static.tumblr.com/ek9ly4s/am7mxbjx6/homemade.min.js"></script>

<style type="text/css">

html{
{block:ifshowsidebar}padding-left:155px;{/block:ifshowsidebar}
height:103%;}

body, p {
font-family: "times", Helvetica, Arial, sans-serif;
font-style: normal;
font-size: 10px;
padding: 0px;
margin: 0px;
color:{color:text};}

body {
{block:ifcrosshaircursor}cursor:crosshair;{/block:ifcrosshaircursor}
background-color:{color:background};
background-image:url({image:Background});
background-attachment: fixed;
background-repeat: repeat;}

a {
text-decoration:none;
color:{color:text};
-webkit-transition: all 0.4s linear;
-moz-transition: all 0.4s linear;
transition: all 0.4s linear;}

a:link, a:active, a:visited{
color: {color:Link};
text-decoration: none;
-webkit-transition: all 0.6s ease-out;-moz-transition: all 0.6s ease-out;-o -transition: all 0.6s ease-out;transition: all 0.6s ease-out;}

a:hover{
color:{color:link hover};}

img {
{block:ifRoundedPhotos}border-radius:px;{/block:ifroundedphotos}}

img:hover{
opacity:5.0;
-webkit-transition: all 0.6s ease-out;
-moz-transition: all 0.6s ease-out;
-o-transition: all 0.6s ease-out;
-transition: all 0.6s ease-out;
{block:ifcrosshaircursor}cursor:crosshair;{/block:ifcrosshaircursor}}

#infscr-loading{
height:55px;
width:55px;
padding:0px 10px 5px 5px;
background-color:white;
border-radius:px;
{block:ifnotinfinitescroll}
display:none;visibility: hidden;opacity:0;
{/block:ifnotinfinitescroll}
z-index:999999999999999999;
bottom: 3px;
position: absolute;
left: 50%;
margin-left:-16px;
overflow:hidden;
margin-bottom: 25px;}

.clear {
text-align:left;
clear:both;}

#entry.masonry-brick {
top: 0 !important;
left: 0 !important;}

.title{
display:block;
font-size:34px;
margin-bottom:7px;}

blockquote{
padding:0px 0px 2px 1px;
margin:0px 0px 2px 1px;
border-left: 0px dotted #555555;}

.description{
text-align:left;}

#header{
z-index:999999999999;
padding-left:0px;
width:800px;
margin:auto;
height:auto;
margin-top:-20px;
text-align:center;}

.nav-tabs {
{block:indexpage}
border-bottom: 0px solid #dddddd;
{/block:indexpage}}

#content {
background-color:{color:center};
margin-left:-70px;
position:relative;width:1500px;
border-left:0px solid #dddddd;
border-right:0px solid #dddddd;
{block:permalinkpage}
border-bottom: 0px solid #dddddd;
{/block:permalinkpage}}

{block:indexpage}
@media (max-width: 1100px) {
#content{width:535px;}}

@media (max-width:900px) {
#content{width:270px;}}

@media (max-width: 1100px) {
#header{width:535px;}}

@media (max-width:900px) {
#header{width:270px;}}
{/block:indexpage}


.sidebar{
border-radius: 10px 10px 10px 10px;
z-index:1;
text-align:center;
border-left:1px solid #dddddd;
border-top:1px solid #dddddd;
border-bottom:1px solid #dddddd;
border-right:1px solid #dddddd;
width:210px;
background-color:{color:center};
padding:7px;
margin-left:958px;
position:fixed;
top:70px;
font-size:11px;}

{block:ifshowdescription}
.sidebar img{
margin-bottom:5px;}
{/block:ifshowdescription}

@media (max-width:900px) {
.sidebar{top:205px;}}

.entry{
margin:5px;
padding:3px 3px 0px 3px;
background-color:{color:center};
{block:IndexPage}
width:500px;
overflow:hidden;
{/block:IndexPage}
{block:PermalinkPage}
width:780px;
padding-right:8px;
padding-bottom:50px;
text-align:;
height:auto;
{/block:PermalinkPage}}

{block:IndexPage}
.entry img{
width:500px;}
{/block:IndexPage}

/* SCROLL BAR APPEARANCE */
::-webkit-scrollbar-thumb:vertical {
background-color:{color:scrollbar};
height:10px;
width:10px;
opacity:1;
-webkit-border-radius:0px;
border:3px {color:background} solid;}

::-webkit-scrollbar-thumb:horizontal {
background-color:#4c4f50;
opacity:1;
height:10px !important;
border:3px {color:background} solid;
-webkit-border-radius:0px;}

::-webkit-scrollbar {
height:10px;
width:10px;
background-color:{color:background};
-webkit-border-radius:0px;}

::-webkit-scrollbar-corner {
background-color:{color:background};}

::-webkit-resizer {
background-color:{color:background};}




.video{
width:250px;
height:auto;}


.chat{
padding:3px 3px 6px 3px;
-webkit-transition: all 0.5s linear;
-webkit-transition: all 0.5s linear;
-moz-transition: all 0.5s linear;
transition: all 0.5s linear;}

#chat{
margin:0; list-style:none;
padding:0;opacity:1;}

#chat li{
padding:7px 10px;}

#chat li:nth-child(even) {
background-color:#dddddd;
opacity:1;
border-radius:0px;}

#chat li span{
text-transform:uppercase;}

.photo_caption{
padding:5px 0px 5px 0px;
text-align:right;}

.xspace{
display:block;
margin-top:7px;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
z-index:9999999999999999999;
color:{color:link};
cursor: default;
background-color:{color:center};
border-left: 0px solid #dddddd;
border-top: 0px solid #dddddd;
border-right: 0px solid #dddddd;
border-bottom: 0px solid {color:center};
}

@media (max-width:900px) {
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
{block:ifbackgroundimage}
background-color:transparent;
{/block:ifbackgroundimage}
{block:ifnotbackgroundimage}
background-color:{color:background};
{/block:ifnotbackgroundimage}
border: 0px solid #dddddd;}}

#xpages{
margin:0 5px;
padding:5px 0;
text-align:
right;
line-height:20px}

#xpages a,#xpages span{
padding:5px}

#xpages li{
display:inline}

#xpages li.prev:first-child .s{
display:none}


{block:ifshowphotocaptions}
.permalinks{
top:-6px;}
{/block:ifshowphotocaptions}


{CustomCSS}
</style>

{block:IndexPage}
{block:Pagination}
<div id="pagination">
{block:NextPage}
<a id="nextPage" href="{NextPage}"></a>
{/block:NextPage}
{block:PreviousPage}
<a href="{PreviousPage}"></a>
{/block:PreviousPage}
</div>
{/block:Pagination}
{/block:IndexPage}
</head><body>

<link href="http://static.tumblr.com/ek9ly4s/Bdxmxbtjg/nav_homemadethemes.css" rel="stylesheet">
<link href="http://static.tumblr.com/ek9ly4s/iDNmxbk31/drop_homemadethemes.css" rel="stylesheet">

<div id="header">
<ul class="title">
{block:ifshowblogtitle}
<a href="/">{title}</a>
{/block:ifshowblogtitle}

</ul>

</ul>
</li>




</div>


<div id="content" class="infinite-scroll">

{block:ifshowsidebar}
<div class="sidebar">
<center>
{block:ifsidebarimage}<center><a href="/"><img src="{image:sidebar}" style="width:100%;" class="img"></a></center>{/block:ifsidebarimage}

{block:ifshowdescription}
<div class="description">{description}</div>
{/block:ifshowdescription}

</div>
{/block:ifshowsidebar}

{block:Posts}
<div id="content" class="infinite-scroll">
<div class="entry">

{block:Photo}
{block:IndexPage}
<div class="photo">{LinkOpenTag}<a href="{Permalink}"><img src="{PhotoURL-250}" alt="{PhotoAlt}" widht="250"/> </a>{LinkCloseTag}</div>
{block:ifshowphotopermalinks}
<div class="permalinks">
<ul class="buttons">
<li>{ReblogButton color="gray" size="20"}</li>
<li>{likeButton color="gray" size="20"}</li>
{/block:ifshowphotopermalinks}
{Block:ifshowphotocaptions}{block:Caption}<div class="photo_caption">{Caption}</div>{/block:Caption}{/Block:ifshowphotocaptions}
{/block:IndexPage}
{block:PermalinkPage}<div class="photobig"><img src="{PhotoURL-500}" alt="{PhotoAlt}" width="500px"/></div>
{/block:PermalinkPage}
{/block:Photo}

{block:Photoset}
<center>
<div class="photoset">
{block:IndexPage}{Photoset-500}


{block:ifshowphotopermalinks}
<div class="permalinks">
<ul class="buttons">
<li>{ReblogButton color="gray" size="20"}</li>
<li>{likeButton color="gray" size="20"}</li>
<div class="noteslabel"><a href="{Permalink}">{NoteCount}</a></div>
</ul>
</div>{/block:ifshowphotopermalinks}
{Block:ifshowphotocaptions}{block:Caption}<div class="photo_caption">{Caption}</div>{/block:Caption}{/Block:ifshowphotocaptions}
{/block:IndexPage}
{block:PermalinkPage}{Photoset-500}{/block:PermalinkPage}
</center>
{/block:Photoset}

{block:Text}
<div class="text"><div style="padding:3px;">
<span class="title">{Title}</span>
{Body}
{block:IndexPage}
<a href="{Permalink}"></a></div></div>
{/block:IndexPage}
{/block:Text}

{block:Link}
<div class="text"><div style="padding:3px;">
<center><a href="{URL}"><span class="title">{Name}</span></a></center>
<div style="margin-left:3px;">{block:Description}{Description}{/block:Description}</div>
{block:IndexPage}
<a href="{Permalink}"></a></div></div>
{/block:IndexPage}
{block:Link}

{block:Quote}
<div class="text"><div style="padding:3px;">
<div style="margin-left:3px;">
{Quote}</span>
{block:Source}<strong>{Source}</strong>{/block:Source}
</div>
{block:IndexPage}
<a href="{Permalink}"></a></div></div>
{/block:IndexPage}
{/block:Quote}


{block:Chat}
<div class="chat">
{block:Title}
<a href="{Permalink}">
<div class="title">{Title}</div></a>
{/block:Title}
<ul id="chat">
{block:Lines}
<li class="{Alt} user_{UserNumber}">
{block:Label}
<span class="label">{Label}</span>
{/block:Label}
{Line}
</li>
{/block:Lines}
</ul>
</div>
{block:IndexPage}
<a href="{Permalink}"><div class="xnotes">{NoteCountwithLabel}</div></a>
{/block:IndexPage}
{/block:Chat}

{block:Audio}
<div class="audio">
{block:AlbumArt}{block:indexpage}<a href="{Permalink}">{/block:indexpage}<img src="{AlbumArtURL}" alt="{PhotoAlt}" style="{block:indexpage}width:250px;{/block:indexpage}{block:permalinkpage}width:500px;height:500px;{/block:permalinkpage}"/>{/block:AlbumArt}
<center>
<div style="padding:10px;>{AudioPlayerGrey}
</div>
{block:IndexPage}
{block:Caption}<div class="caption">{Caption}</div>{/block:Caption}
<a href="{Permalink}"><div class="xnotes">{block:PlayCount}{FormattedPlayCount} Plays / {/block:PlayCount} {NoteCountwithLabel}</div></a>
{/block:IndexPage}
</div></center>
{/block:Audio}

{block:Answer}
<div class="text"><div style="padding:10px;">
<b>Q</b>: {Question}<br>
<div class="xspace">{Answer}</div>
<div class="xspace"><i>asked by {Asker}</i></div>
{block:IndexPage}
<a href="{Permalink}"><div class="xnotes">{NoteCountwithLabel}</div></a>
{/block:IndexPage}</div></div>{/block:Answer}

{block:Video}
{block:IndexPage}
<div class="video">
<center>{Video-250}</center>
{block:Caption}<div class="caption">{Caption}</div>{/block:Caption}
<a href="{Permalink}"><div class="xnotes">{block:PlayCount}{FormattedPlayCount} Plays / {/block:PlayCount} {NoteCountwithLabel}</div></a></div>
{/block:IndexPage}
{block:PermalinkPage}
<center>{Video-500}</center>
{/block:PermalinkPage}
{block:Video}

{block:PermalinkPage}
{block:HasTags} &middot; {block:Tags}<a href="TagURL"> #{Tag}</a> {/block:Tags}{/block:hasTags}
{/block:PermalinkPage}

{block:PostNotes}
<div class="notess">{block:Caption}{Caption}{/block:Caption}
{block:NoteCount}{NoteCountWithLabel}{/block:NoteCount}
<br>{PostNotes}</div>
{/block:PostNotes}
</div>
</div>
{/block:Posts}



<!-- INFINTE SCROLL SCRIPT -->
<script type="text/javascript" src="http://static.tumblr.com/ek9ly4s/9Z7mxbk9o/jquery142.min.js"></script>
<script type="text/javascript" src="http://static.tumblr.com/ek9ly4s/ts7mxbkbc/infinite-scroll.js"></script></script><script type="text/javascript" src="http://static.tumblr.com/j1tjexd/WYwm8ed44/like_script.js"></script>
<script type="text/javascript">
$(window).load(function () {
var $content = $('#content');
$content.masonry({itemSelector: '.entry', columnWidth:0
});
$content.infinitescroll({
navSelector : 'div#pagination',
nextSelector : 'div#pagination a#nextPage',
itemSelector : '.entry',
loading: {/*Loading...*/
finishedMsg: '',
img: 'http://static.tumblr.com/ek9ly4s/cmzmxd5xz/ajax-loader__2_.gif'
},
bufferPx :200,
extraScrollPx: 550,
debug : false,
},
// call masonry as a callback.
function( newElements ) {
window.n = window.n || 0;
Tumblr.LikeButton.get_status_by_page(++window.n);
var $newElems = $( newElements );
$newElems.hide();
// ensure that images load before adding to masonry layout
$newElems.imagesLoaded(function(){
$content.masonry( 'appended', $newElems, true, function(){$newElems.fadeIn(1500);} );
});
});
});
</script>



<script type="text/javascript" src="http://static.tumblr.com/ek9ly4s/8cAmx5h6j/bootstrap.min.js"></script>

{block:Pagination}
<div id="pagination">
{block:NextPage}
<a id="nextPage" href="{NextPage}"></a>
{/block:NextPage}
{block:PreviousPage}
<a href="{PreviousPage}"></a>
{/block:PreviousPage}
</div>
{/block:Pagination}
{/block:IndexPage}
</div></div></div></div>



</body></html><!-- END OF THEME -->
Frederiek
If you get rid of the width: 1500px; on #content, the horizontal scrollbar disappears.

I don't see any of the other problems you mention.
But I do get 2 javascript errors.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.