The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Problem with sidebar using tumblr
400blows
post Apr 18 2012, 08:03 AM
Post #1





Group: Members
Posts: 1
Joined: 18-April 12
Member No.: 16,938



For a few days now, I have tried to solve this on my own. I've set up a tumblr (http://fussballkultr.tumblr.com) and I want to have a sidebar on the left side of the page. For now I have a sidebar, but what I can't do is align text according to the sidebar (e.g. center the text). That's not the biggest problem though. What really bothers me is, that once you make the browser window smaller the sidebar and content will not stay in place. Try it and you'll see what I mean.
Any help is appreciated!


CODE
<!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="De" lang="De">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Fußballkultr</title>
    <link rel="shortcut icon" href="{Favicon}" />
    <link rel="alternate" type="application/rss+xml" href="{RSS}" />
    <!-- Custom Font -->
    <link href='http://fonts.googleapis.com/css?family=Vollkorn:400italic,400' rel='stylesheet' type='text/css'>
    <!-- Tumblr Appearance Settings -->
    <meta name="color:background" content="#fff" />
    <meta name="color:text" content="#000" />
    <meta name="color:link" content="#000" />
    <meta name="font:body" content="Georgia" />
    <meta name="font:notes" content="Georgia" />        
    <meta name="text:Disqus Shortname" content="" />
    <meta name="text:Google Analytics Code" content="" />  
    <!-- JS -->
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
        <script type="text/javascript" src="http://static.tumblr.com/fkm6sn6/lbNl5zqhv/jquery.scrollto-1.4.2-min.js"></script>
        <script type="text/javascript" src="http://static.tumblr.com/fkm6sn6/9Rwl699bz/jquery.masonry.js"></script>
        <!-- Masonry onLoad -->
        <script type="text/javascript">
            $(window).load(function () {
                $('#mason').masonry();
            });
        </script>
    <!-- Top Drawer Code-->
    <script type="text/javascript" src="http://static.tumblr.com/fkm6sn6/uFWlbyg0u/drawer.js"></script>
    <!-- Scroll Code -->

            <script type="text/javascript" src="http://static.tumblr.com/fkm6sn6/KPql5zqgf/jquery.localscroll-1.2.7-min.js"></script>
            <script type="text/javascript">
                <!--
                $(document).ready(function()
                {
                $.localScroll({
                        queue:true,
                        duration:1000
                });
                });
                -->
            </script>
            <script type="text/javascript">
                $(function () {
                    $(window).scroll(function () {
                        if ($(this).scrollTop() != 0) {
                            $('#toTop').fadeIn();
                        } else {
                            $('#toTop').fadeOut();
                        }
                    });
                    $('#toTop').click(function () {
                        $('body,html').animate({
                            scrollTop: 0
                        },
                        800);
                    });
                });
            </script>
        

    


<style type="text/css">
body{
    background-color: {color:background};
    background-image: url('{image:Background}');
    background-position:center;
    background-attachment:fixed;
    font-family:'Vollkorn',serif;
    color: {color:text};
    font-size:0.875em;
    line-height:1.45em;
    }

a:link, a:active, a:visited{
    color: {color:link};
    text-decoration:none;
    }

a:hover{
    opacity:.5
    }

<!-- Headlines -->
h1, h2 {
    font-weight:normal;
    font-family:'Vollkorn';  
    }

h1 a:link,h1 a:visited,h3 a:link,h3 a:visited {
    color:rgb(0,0,0);
    color:rgba(0,0,0,.8);
    text-decoration:none;
    }
            
h3 {
    font-family:'Vollkorn';
    font-size:1.2em;
    line-height:1.3em;
    font-weight:normal;
    margin-bottom:1em;
    align:center;
    }

#ttitel{
    font-weight:normal;
    font-size:2.0em;
    font-family:'Vollkorn';
    line-height:2.5em;  
    }


#spine{
    position:absolute;
    left:50%;
    margin-left:-315px;
    width:630px;
    }

.date{
    display:block;
    text-align:center;
    font-size:24px;
    margin:40px 0px 60px 0px;
    }

.title, .x{
    font-weight:normal;
    font-size:1.2em;
    }

#entry{
    display:block;
    width:620px;
    overflow:hidden;
    margin:auto;
    margin-bottom:20px;
    }

.ebody{
    width:500px;
    float:left;
    display:block;
    text-align:justify;
    }

.caption{
    text-align:center;
    }


.perma{
    font-family:'Vollkorn',serif;
    font-size:10px;
    line-height:11px;
    text-transform:lowercase;    
    width:100px;
    display:block;
    float:right;
    }

blockquote{
    margin:0px 0px 0px 10px;
    padding:0px;
    }

img{border:none;}
    .chat{list-style:none; margin:none; padding:none;}
    .top {position:fixed; top:10px; left:10px;}
    .prev {font-size:40px; position:fixed; bottom:10px; left:10px;}
    .next {font-size:40px; position:fixed; bottom:10px; right:10px;}
    .pages {position:fixed; top:10px; right:10px; text-align: right;}

#disqus_thread {
    padding: 40px 0;
    }

.header{
    padding-top:0px;
    margin-bottom:10px;
    }
            
.headerimage{
    margin-bottom:5px;
    }
            
.linebreak{
    margin:0px auto;
    background-color:rgb(0,0,0);
    background-color:rgba(0, 0, 0, 0.8);
    width:35px;
    height:10px;
    }
            
.centre {
    text-align:center;
    }

.linebreak{
    margin:0px auto;
    background-color:rgb(0,0,0);
    background-color:rgba(0, 0, 0, 0.8);
    width:35px;
    height:10px;
            }

.subtitle {
    text-transform:uppercase;
    letter-spacing:2px;
    margin:0px auto;
    margin-bottom:25px;
    padding:10px;
    border-top:1px solid;
    border-bottom:1px solid;
    width:230px;
    line-height:25px;
    }

#toTop {
    width:59px;
    height:53px;
    background:url(http://static.tumblr.com/fkm6sn6/AvWlb7jjb/totop.png);
    position:fixed;
    bottom:20px;
    right:0;
    cursor:pointer;
    display:none;
    }

#content{
    align:center;
    }


{CustomCSS}
</style>
</head>

<body>
    <div id="toTop"></div> <!-- Scroll to top Ribbon -->
    <span class="top">
        <div class="header centre">
                    <a href="/"><img src="http://static.tumblr.com/ibhomaw/wq0lwqffj/ball150.jpg" class="headerimage" alt=""/></a>
                    <div id="ttitel"><a href="/">Fußballkultur</a></div>
                    <div class="subtitle"><script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-27984658-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script></div>
                    
                    <div class="linebreak"></div>
                    
                </div>
<div id="content">
    <h3>
    <a href="http://fussballkultr.tumblr.com/tagged/Ikonographie">/ Ikonographie des Fußballs</a>
    </h3>
</div>

{block:HasPages}<br>{block:Pages}<a href="{URL}">{Label}</a><br>{/block:Pages}{/block:HasPages}</span>

{block:NextPage}<div class="next"><a href="{NextPage}">></a></div>{/block:NextPage}
{block:PreviousPage}<div class="prev"><a href="{PreviousPage}"><</a></div>{/block:PreviousPage}
{block:PermalinkPagination}
{block:NextPost}<div class="next"><a href="{NextPost}">></a></div>{/block:NextPost}
{block:PreviousPost}<div class="prev"><a href="{PreviousPost}"><</a></div>{/block:PreviousPost}
{/block:PermalinkPagination}

<div id="spine">
  {block:Posts}
    <div id="entry">
       {block:date}{block:NewDayDate}<span class="date">{DayOfWeek}, {DayOfMonth}. {Month}</span>{/block:NewDayDate}
        <div class="perma">
           <a href="{permalink}">▲</a> {24Hour}:{Minutes}
           {block:RebloggedFrom}<BR>(via <a href="{ReblogParentURL}">{ReblogParentName}</a>){/block:RebloggedFrom}
           {block:NoteCount}<BR>{NoteCountWithLabel}{block:NoteCount}
           {block:IfDisqusShortname}<BR><a href="{Permalink}#disqus_thread"></a>{block:IfDisqusShortname}
           {block:HasTags}<BR>tags: {block:Tags}<a href="{TagURL}">{Tag}</a>. {/block:Tags}{/block:HasTags}
        </div>
       {/block:date}
        <div class="ebody">
           {block:Text}{block:Title}<span class="title">{Title}</span> {/block:Title}{Body}{/block:Text}
            <div class="caption">
           {block:Photo}<center>{LinkOpenTag} <img src="{PhotoURL-500}" alt="{PhotoAlt}"/>{LinkCloseTag} </center>{block:Caption}{Caption}{/block:Caption}{/block:Photo}
            </div>
           {block:Photoset}<center>{Photoset-500}</center>{block:Caption}{Caption}{/block:Caption}{/block:Photoset}
           {block:Audio}{AudioPlayerBlack}{block:Caption}<BR>{Caption}{/block:Caption}{/block:Audio}
           {block:Quote}<span class="title">{Quote}</span>{block:Source}<BR>{Source}{/block:Source}{/block:Quote}
           {block:Link}<a href="{URL}" class="title" {Target}>{Name}</a> {block:Description}{Description}{/block:Description}{/block:Link}
           {block:Chat}{block:Title}<span class="title">{Title}</span><BR><BR>{/block:Title}<span class="chat">{block:Lines}<li class="x_{UserNumber}">{block:Label}<span class="x">{Label}</span>{/block:Label} {Line}</li>{/block:Lines}</span>{/block:Chat}
           {block:Video}<center>{Video-500}</center>{block:Caption}{Caption}{/block:Caption}{/block:Video}
           {block:IfDisqusShortname}
           {block:Permalink}
            <div id="disqus_thread">
            </div>
           <script type="text/javascript" src="http://disqus.com/forums/{text:Disqus Shortname}/embed.js"></script>
           <noscript><a href="http://{text:Disqus Shortname}.disqus.com/?url=ref">View the discussion thread.</a></noscript>
           {/block:Permalink}
           {/block:IfDisqusShortname}
        </div>
    </div>
   {block:PostNotes}{block:NoteCount}<br><span class="title">{NoteCountWithLabel}</span> {/block:NoteCount}{PostNotes}{/block:PostNotes}
   {/block:Posts}
</div>

{block:IfDisqusShortname}
<script type="text/javascript">
//<![CDATA[
(function() {
    var links = document.getElementsByTagName('a');
    var query = '?';
    for(var i = 0; i < links.length; i++) {
    if(links[i].href.indexOf('#disqus_thread') >= 0) {
        query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';
    }
    }
    document.write('<script charset="utf-8" type="text/javascript" src="http://disqus.com/forums/{text:Disqus Shortname}/get_num_replies.js' + query + '"></' + 'script>');
})();
//]]>
</script>
{/block:IfDisqusShortname}

</body>
</html>
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 22nd November 2014 - 04:15 PM