Help - Search - Members - Calendar
Full Version: Tumblr blog help...
HTMLHelp Forums > Web Authoring > Web Site Functionality
holly
Hi everyone,

Theres seems to be a fair few tumblr questions going around and I'm afraid I am no exception.

Basically I use my blog as a means of logging my uni work to some extent, so I need it clean and readable. I installed a theme that seemed perfect except my images and videos are leaking out of the borders and columns. There seems no pattern, the video always too big, some images large, and some too small.

I have posted my coding if someone has time, my page is http://hollyhayward.tumblr.com/

Thanks for your time

Coding:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>{Title}</title>

<meta name="color:Background" content="#F5F5F5"/>
<meta name="color:Header" content="#DDD"/>
<meta name="color:Interior" content="#FFF"/>
<meta name="color:Text" content="#000"/>
<meta name="font:Body" content="Helvetica"/>

<meta name="if:Display Captions" content="0"/>
<meta name="if:Photo Shadow" content="1"/>
<meta name="if:Endless Scrolling" content="1"/>
<meta name="image:Background" content=""/>

<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="" />

<link rel="shortcut icon" href="{Favicon}">
<link rel="alternate" type="application/rss+xml" href="{RSS}">
{block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}


<style type="text/css">
body {font-family: {font:Body}; font-size: 11px; color: {color:Text}; background-color: {color:Background}; background-image:url('{image:Background}'); background-attachment:fixed;}
a { text-decoration:none; color: {color:Text}; -webkit-transition-duration: .5s;}
a:hover { text-decoration:none; }
#header {padding:25px; background-color:{color:Header}; }
.b_title { font-family:Helvetica; text-transform:uppercase; font-size:14px; font-weight:bold; }
#center {margin:auto; {block:IndexPage} width:1030px; {/block:IndexPage} {block:PermalinkPage}width:755px; {/block:PermalinkPage} background-color: {color:Interior}; margin-top: -7px; margin-bottom: -7px; border:1px solid {color:Header}; }
.entry { {block:IndexPage} width:300px; float:left; margin:15px; {/block:IndexPage} {block:PermalinkPage} margin:10px; width: 650px; padding:20px; {/block:PermalinkPage} }
#postwrap {padding:20px;}
.entry img { {block:IndexPage} max-width:300px; height:auto; {/block:IndexPage} {block:PermalinkPage} width: 600px; height:auto; {/block:PermalinkPage} }
#link { font-family:Helvetica; text-transform:uppercase; font-weight:bold; font-size:12px }
#audio { background-color:#e4e4e4; {block:IndexPage}width:288px;{/block:IndexPage} {block:PermalinkPage}width:638px;{/block:PermalinkPage} padding:5px; -webkit-box-shadow: 2px 3px 8px #DDD; border:1px solid #CCC; }
div.vid_photoset embed, div.entry div.vid_photoset object { {block:IndexPage} width:300px !important; height:196px !important; {/block:IndexPage} {block:PermalinkPage} width:650px !important; height:311px !important;}{/block:PermalinkPage} }
.plink { opacity:.5; -webkit-transition-duration: .5s; font-family:Helvetica; font-size:10px; text-align:right; text-transform:uppercase; }
.entry:hover .plink {opacity: 1;}
.photopage { padding-top:10px; padding-bottom:10px; opacity:.5; line-height:18px; }
.photopage img { width:10px; }
.photopage a { text-decoration:underline; }
#shadow { width:100%; }
.trigger { cursor: help; display:inline-block; opacity:.7; padding-left:20px; text-align:center; text-decoration:underline; padding-bottom:20px; }
.info { padding:1px;}
.right { margin: 0 0 px 0; padding: px; overflow:hidden; -moz-border-radius:3px; border-radius:3px; text-align:left; {block:IndexPage}width:300px;{/block:IndexPage} {block:PermalinkPage}width:650px;{/block:PermalinkPage} }
.totalright {float:right; margin-top:0px; }
ol.notes { padding: 20px; margin:0; list-style-type: none; }
ol.notes li.note { opacity:0.5; padding: 4px 0; margin:0; -webkit-transition-duration: .5s; }
ol.notes li.note:hover { opacity:1; -webkit-transition-duration: .5s; }
ol.notes li.note img.avatar { display:none; }
::-webkit-scrollbar-thumb:vertical {background-color: {color:Header}; height:100px;}
::-webkit-scrollbar-thumb:horizontal {background-color: {color:Header}; height:10px !important;}
::-webkit-scrollbar { height:10px; width:7px; background-color: {color:Background};}
#navigate { position:fixed; background:{color:Interior}; bottom:-10px; right:35px; padding: 10px; width:70px; border:1px solid {color:Header};}
.nav_title { background-color:{color:Header}; color:#000; padding:10px; text-align:center; }
</style>

{block:IfEndlessScrolling}<script src="http://static.tumblr.com/twte3d7/0pellzh2t/infinitescroll.js"></script>{/block:IfEndlessScrolling}

{block:IndexPage}
<script type="text/javascript" src="http://static.tumblr.com/imovwvl/dJWl20ley/jqueryformasonry.js"></script>
<script type="text/javascript" src="http://static.tumblr.com/imovwvl/rSGl20lfv/masonry.js">
</script>
<script src="http://static.tumblr.com/df28qmy/SHUlh3i7s/jquery.infinitescroll.js"></script>
<script src="http://static.tumblr.com/thpaaos/lLwkowcqm/jquery.masonry.js"></script>
<script type="text/javascript">
$(window).load(function () {
$('#postwrap').masonry(),
$('.masonryWrap').infinitescroll({
navSelector : "div#navigation",
// selector for the paged navigation (it will be hidden)
nextSelector : "div#navigation a#nextPage",
// selector for the NEXT link (to page 2)
itemSelector : ".entry",
// selector for all items you'll retrieve
bufferPx : 10000,
extraScrollPx: 11000,
loadingImg : "http://www.freeiconsweb.com/Icons-show/loading/loading3.gif",
loadingText : "<em></em>",
},
// call masonry as a callback.
function() { $('#postwrap').masonry({ appendedContent: $(this) }); }
);
});
</script>
{/block:IndexPage}

{block:PermalinkPage}
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js" type="text/javascript"><!--mce:0--></script>
<script src="toggle.js" type="text/javascript"><!--mce:1--></script>
<script type="text/javascript">
$(document).ready(function(){
$(".info").hide();
$(".trigger").click(function(){
$('.info').slideToggle("slow");
return true;
});
});
</script>
{/block:PermalinkPage}

</head>

<body>

{block:IfNotEndlessScrolling}
<div id="navigate">
{block:PreviousPage}<div class="nav_title">
<a href="{PreviousPage}">Newer</a>
</div>{/block:PreviousPage}
{block:NextPage}<div class="nav_title">
<a href="{NextPage}">Older</a>
</div>{/block:NextPage}
</div>
{/block:IfNotEndlessScrolling}

<div id="center">

<div id="header">
<span style="font-family:Helvetica; text-transform:uppercase; font-size:14px; font-weight:bold;"> <a href="/">{Title}</a> </span> &nbsp;&nbsp;&nbsp;&nbsp; <span style="word-spacing:5px; font-size:12px; "> <a href="/ask">ask</a> &nbsp; <a href="/archive">archive</a> &nbsp; <a href="/rss">rss</a> &nbsp; <a href="http://sleepingtigers.tumblr.com">theme</a> {block:IfLinkOneTitle} &nbsp; <a href="{text:Link One}">{text:Link One Title}</a> {/block:ifLinkOneTitle}
{block:ifLinkTwoTitle} &nbsp; <a href="{text:Link Two}"> {text:Link Two Title}</a> {/block:ifLinkTwoTitle}
{block:ifLinkThreeTitle} &nbsp; <a href="{text:Link Three}"> {text:Link Three Title}</a> {/block:ifLinkThreeTitle}
</span> <br>
<span style="font-family:Times New Roman; font-style:italic; padding-top:3px; width:500px;"> {block:Description}{Description}{/block:Description} </span>
</div>

<div id="postwrap">

{block:Posts}

{block:Photo}
<div class="entry">
{block:IndexPage}<a href="{Permalink}">{/block:IndexPage}
{block:PermalinkPage}{LinkOpenTag}{/block:PermalinkPage}
<img src="{PhotoURL-HighRes}" alt="{PhotoAlt}" />{block:IndexPage}</a>{/block:IndexPage}
{block:IfPhotoShadow}<img src="http://static.tumblr.com/ii96rbk/kpClpdexl/shadow.png" id="shadow">{/block:IfPhotoShadow}
{block:IfDisplayCaptions}{Caption}{/block:IfDisplayCaptions}
{block:PermalinkPage}{LinkCloseTag}{block:IfNotDisplayCaptions}{block:Caption}{C
aption}{/block:Caption}{/block:IfNotDisplayCaptions}
<div class="photopage">
<div class="right"> {block:Date}<img src="http://i51.tinypic.com/qrb2as.png"> {TimeAgo} {/block:Date} <div class="totalright"> {block:NoteCount} <img src="http://i56.tinypic.com/ojjqja.png"> {NoteCountWithLabel} {/block:NoteCount} </div></div>
<br>
{block:HasTags} <img src="http://i51.tinypic.com/2a4xy15.png"> {block:Tags}<a href="{TagURL}">{Tag}</a> {/block:Tags} {block:HasTags}
</div>
{/block:PermalinkPage}
</div>
{/block:Photo}

{block:Photoset}
<div class="entry">
<div class="vid_photoset">{Photoset-500}</div>
<a href="{Permalink}">Posted {TimeAgo}</a>
{block:IndexPage}{block:IfDisplayCaption}{block:Caption}{Caption}{/block:Caption}{/block:IfDisplayCaption}{/block:IndexPage}
{block:IfNotDisplayCaption}{block:PermalinkPage}{block:Caption}{Caption}{/block:Caption}{/block:PermalinkPage}{/block:IfNotDisplayCaption}
{block:PermalinkPage}
<div class="photopage">
<div class="right"> {block:Date}<img src="http://i51.tinypic.com/qrb2as.png"> {TimeAgo} {/block:Date} <div class="totalright"> {block:NoteCount} <img src="http://i56.tinypic.com/ojjqja.png"> {NoteCountWithLabel} {/block:NoteCount} </div></div>
<br>
{block:HasTags} <img src="http://i51.tinypic.com/2a4xy15.png"> {block:Tags}<a href="{TagURL}">{Tag}</a> {/block:Tags} {block:HasTags}
</div>
{/block:PermalinkPage}
</div>
{/block:Photoset}

{block:Text}
<div class="entry">
{block:Title}<a href="{Permalink}" id="link">{Title}</a>{/block:Title}
{Body}
{block:IndexPage}<p> <div class="right"> <a href="{ReblogURL}" title="Reblog"><img src="http://www.freeiconsweb.com/Icons-show/glyphish-icons/02-redo.png" width="12"></a> <div class="totalright"> <div class="plink"><a href="{Permalink}">permalink</a></div> </div></div> </p> {/block:IndexPage}
{block:PermalinkPage}
<div class="photopage">
<div class="right"> {block:Date}<img src="http://i51.tinypic.com/qrb2as.png"> {TimeAgo} {/block:Date} <div class="totalright"> {block:NoteCount} <img src="http://i56.tinypic.com/ojjqja.png"> {NoteCountWithLabel} {/block:NoteCount} </div></div>
<br>
{block:HasTags} <img src="http://i51.tinypic.com/2a4xy15.png"> {block:Tags}<a href="{TagURL}">{Tag}</a> {/block:Tags} {block:HasTags}
</div>
{/block:PermalinkPage}
</div>
{/block:Text}

{block:Quote}
<div class="entry">
<a href="{Permalink}" title="Permalink"> {Quote} </a> <br>
{block:Source}<p> &mdash; {Source} </p> {/block:Source}
{block:PermalinkPage}
<div class="photopage">
<div class="right"> {block:Date}<img src="http://i51.tinypic.com/qrb2as.png"> {TimeAgo} {/block:Date} <div class="totalright"> {block:NoteCount} <img src="http://i56.tinypic.com/ojjqja.png"> {NoteCountWithLabel} {/block:NoteCount} </div></div>
<br>
{block:HasTags} <img src="http://i51.tinypic.com/2a4xy15.png"> {block:Tags}<a href="{TagURL}">{Tag}</a> {/block:Tags} {block:HasTags}
</div>
{/block:PermalinkPage}
</div>
{/block:Quote}

{block:Link}
<div class="entry">
<a href="{URL}" id="link" {Target}>{Name}</a>
{block:Description}{Description}{/block:Description}
{block:IndexPage}<p> <div class="right"> <a href="{ReblogURL}" title="Reblog"><img src="http://www.freeiconsweb.com/Icons-show/glyphish-icons/02-redo.png" width="12"></a> <div class="totalright"> <div class="plink"><a href="{Permalink}">permalink</a></div> </div></div> </p>{/block:IndexPage}
{block:PermalinkPage}
<div class="photopage">
<div class="right"> {block:Date}<img src="http://i51.tinypic.com/qrb2as.png"> {TimeAgo} {/block:Date} <div class="totalright"> {block:NoteCount} <img src="http://i56.tinypic.com/ojjqja.png"> {NoteCountWithLabel} {/block:NoteCount} </div></div>
<br>
{block:HasTags} <img src="http://i51.tinypic.com/2a4xy15.png"> {block:Tags}<a href="{TagURL}">{Tag}</a> {/block:Tags} {block:HasTags}
</div>
{/block:PermalinkPage}
</div>
{/block:Link}

{block:Chat}
<div class="entry">
{block:Title}<a href="{Permalink}" id="link" >{Title}</a>{/block:Title}
<a href="{Permalink}" title="Permalink">
{block:Lines}{block:Label}
<span style="font-weight:bold; background-color:{color:Header}; padding:2px; ">{Label}</span>{/block:Label} &nbsp; <span style="line-height:20px;">{Line}</span> <br>{/block:Lines}
</a>
{block:PermalinkPage}
<div class="photopage">
<div class="right"> {block:Date}<img src="http://i51.tinypic.com/qrb2as.png"> {TimeAgo} {/block:Date} <div class="totalright"> {block:NoteCount} <img src="http://i56.tinypic.com/ojjqja.png"> {NoteCountWithLabel} {/block:NoteCount} </div></div>
<br>
{block:HasTags} <img src="http://i51.tinypic.com/2a4xy15.png"> {block:Tags}<a href="{TagURL}">{Tag}</a> {/block:Tags} {block:HasTags}
</div>
{/block:PermalinkPage}
</div>
{/block:Chat}

{block:Audio}
<div class="entry">
<div id="audio">{AudioPlayerGrey}</div>
{block:AlbumArt}
<div style="-webkit-box-shadow: 3px 3px 8px #DDD; ">
<img src="{AlbumArtURL}" {block:IndexPage}width="300"{/block:IndexPage} {block:PermalinkPage}width="650"{/block:PermalinkPage} >
</div>
<img src="http://static.tumblr.com/ii96rbk/kpClpdexl/shadow.png" id="shadow">
{/block:AlbumArt}
{block:Caption}{Caption}{/block:Caption}
{block:PermalinkPage}
<div class="photopage">
<div class="right"> {block:Date}<img src="http://i51.tinypic.com/qrb2as.png"> {TimeAgo} {/block:Date} <div class="totalright"> {block:NoteCount} <img src="http://i56.tinypic.com/ojjqja.png"> {NoteCountWithLabel} {/block:NoteCount} </div></div>
<br>
{block:HasTags} <img src="http://i51.tinypic.com/2a4xy15.png"> {block:Tags}<a href="{TagURL}">{Tag}</a> {/block:Tags} {block:HasTags}
</div>
{/block:PermalinkPage}
</div>
{/block:Audio}

{block:Video}
<div class="entry">
<div class="vid_photoset">{Video-500}</div>
{block:IndexPage}<a href="{Permalink}"><div class="permalink">{NoteCount}</div></a>{/block:IndexPage}
{block:IndexPage}{block:IfDisplayCaption}{block:Caption}{Caption}{/block:Caption}{/block:IfDisplayCaption}{/block:IndexPage}
{block:IfNotDisplayCaption}{block:PermalinkPage}{block:Caption}{Caption}{/block:Caption}{/block:PermalinkPage}{/block:IfNotDisplayCaption}
{block:PermalinkPage}
<div class="photopage">
<div class="right"> {block:Date}<img src="http://i51.tinypic.com/qrb2as.png"> {TimeAgo} {/block:Date} <div class="totalright"> {block:NoteCount} <img src="http://i56.tinypic.com/ojjqja.png"> {NoteCountWithLabel} {/block:NoteCount} </div></div>
<br>
{block:HasTags} <img src="http://i51.tinypic.com/2a4xy15.png"> {block:Tags}<a href="{TagURL}">{Tag}</a> {/block:Tags} {block:HasTags}
</div>
{/block:PermalinkPage}
</div>
{/block:Video}

{block:Answer}
<div class="entry">
<div style="padding:10 10 10 0;"> <span style="text-transform:uppercase; line-height:16px;">{Question}</span> by <b>{Asker}</b> </div>
<div style="padding:10 0 10 10;">{Answer}</div>
{block:IndexPage}<p> <div align="right"> <div class="plink"><a href="{Permalink}">permalink</a></div> </div> </p> {/block:IndexPage}
{block:PermalinkPage}
<div class="photopage">
<div class="right"> {block:Date}<img src="http://i51.tinypic.com/qrb2as.png"> {TimeAgo} {/block:Date} <div class="totalright"> {block:NoteCount} <img src="http://i56.tinypic.com/ojjqja.png"> {NoteCountWithLabel} {/block:NoteCount} </div></div>
<br>
{block:HasTags} <img src="http://i51.tinypic.com/2a4xy15.png"> {block:Tags}<a href="{TagURL}">{Tag}</a> {/block:Tags} {block:HasTags}
</div>
{/block:PermalinkPage}
</div>
{/block:Answer}

{block:PostNotes}
<center> <div class="trigger">Show notes</div> </center>
<div class="info">{PostNotes}</div>
{/block:PostNotes}
{/block:Posts}

</div>
</div>

{block:IfEndlessScrolling}
{block:IndexPage}
<div class="column navigation" id="navigation">
{block:Pagination}
{block:PreviousPage}<a href="{PreviousPage}" class="navigate">{/block:PreviousPage}{block:PreviousPage}</a>{/block:PreviousPage}
{block:NextPage}<a href="{NextPage}" class="navigate" id="nextPage">{/block:NextPage}{block:NextPage}</a>{/block:NextPage}{/block:Pagination}
</div>
{/block:IndexPage}
{/block:IfEndlessScrolling}

</body>

</html>
holly
no worries, I changed the theme smile.gif
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-2014 Invision Power Services, Inc.