Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Tumblr - positioning issues/CSS

Featured Replies

Hey,

 

Having some issues customising in Tumblr. Can anyone tell me why my Twitter feed is not in my sidebar here:

My link

 

May be something really simple that I can't see, would appreciate some fresh eyes on it, cheers :)

  • Author

ok thanks 4colourprogress - I'm a little confused, I thought I had it in the sidebar. this is the code, where do I need to move it to?

 

 

<div id="SideBar">


			{block:Description}<div id="Description">{Description}</div>{/block:Description}

			<ol id="SideBarNav">
				{block:AskEnabled}<li><a href="/ask" title="Ask a question">{AskLabel}</a></li>{/block:AskEnabled}
				{block:SubmissionsEnabled}<li><a href="/submit" title="{SubmitLabel}">{SubmitLabel}</a></li>{/block:SubmissionsEnabled} 

				<li><a href="{RSS}" title="RSS Feed">RSS Feed</a></li>



				{block:HasPages}{block:Pages}<li><a href="{URL}" title="{Label}">{Label}</a></li>{/block:Pages}{/block:HasPages}
			</ol><!-- End SideBar Navigation -->

			<div id="SocialLinks">

				{block:IfDribbbleUsername}
				<a href="http://dribbble.com/{text:Dribbble Username}" title="Dribbble">
					<img src="http://static.tumblr.com/ubkenek/pvyluyuim/dribbble-icon.png" alt="Dribble Icon"/>
				</a><!-- End Dribbl  e Link -->
				{/block:IfDribbbleUsername}

				{block:IfFacebookUsername}
				<a href="http://facebook.com/{text:Facebook Username}" title="Facebook">
					<img src="http://www.podcastingireland.ie/facebook_icon.png" alt="Facebook Icon"/>
				</a><!-- End Facebook Link -->
				{/block:IfFacebookUsername}

				{block:IfFlickrUsername}
				<a href="http://flickr.com/{text:Flickr Username}" title="Flickr">
					<img src="http://static.tumblr.com/ubkenek/SAAluyut9/flickr-icon.png" alt="Flickr Icon"/>
				</a><!-- End Flickr Link -->
				{/block:IfFlickrUsername}

				{block:IfForrstUsername}
				<a href="http://forrst.com/people/{text:Forrst Username}" title="Forrst">
					<img src="http://static.tumblr.com/ubkenek/rfoluyuxn/forrst-icon.png" alt="Forrst Icon"/>
				</a><!-- End Forrst Link -->
				{/block:IfForrstUsername}

				{block:IfFoursquareUsername}
				<a href="https://foursquare.com/{text:Foursquare Username}" title="Foursquare">
					<img src="http://static.tumblr.com/ubkenek/S3Zluyv00/foursquare-icon.png" alt="Foursquare Icon"/>
				</a><!-- End Foursquare -->
				{/block:IfFoursquareUsername}

				{block:IfGitHubUsername}
				<a href="https://github.com/{text:GitHub Username}" title="GitHub">
					<img src="http://static.tumblr.com/ubkenek/Qv0luyv55/github-icon.png" alt="GitHub"/>
				</a><!-- End GitHub Link -->
				{/block:IfGitHubUsername}

				{block:IfGooglePlusUsernumber}
				<a href="https://plus.google.com/u/1/{text:GooglePlus Usernumber}" title="Google Plus">
					<img src="http://static.tumblr.com/ubkenek/G6uluz2hj/googleplus-icon.png" alt="GooglePlus Icon"/>
				</a><!-- End Google Plus Link -->
				{/block:IfGooglePlusUsernumber}

				{block:IfLastfmUsername}
				<a href="http://last.fm/user/{text:Lastfm Username}" title="Last fm">
					<img src="http://static.tumblr.com/ubkenek/NMcluyvdm/lastfm-icon.png" alt="Last fm Icon"/>
				</a><!-- End Last fm Link -->
				{/block:IfLastfmUsername}

				{block:IfLetterBoxdUsername}
				<a href="http://letterboxd.com/{text:LetterBoxd Username}" title="LetterBoxd">
					<img src="http://static.tumblr.com/ubkenek/7JJluywko/letterboxd-icon.png" alt="LetterBoxd Icon"/>
				</a><!-- End LetterBoxd Link -->
				{/block:IfLetterBoxdUsername}

				{block:IfTwitterUsername}
				<a href="http://twitter.com/{text:Twitter Username}" title="Twitter">
					<img src="http://www.podcastingireland.ie/twitter_icon.png" alt="Twitter Icon"/>
				</a><!-- End Twitter Link -->
				{/block:IfTwitterUsername}

				{block:IfVimeoUsername}
				<a href="http://vimeo.com/{text:Vimeo Username}" title="Vimeo">
					<img src="http://static.tumblr.com/ubkenek/szjluyw9v/vimeo-icon.png" alt="Vimeo Icon"/>
				</a><!-- End Vimeo Link -->
				{/block:IfVimeoUsername}

				<!-- {block:IfYouTubeUsername}
				<a href="http://youtube.com/user/{text:YouTube Username}" title="YouTube">
					<img src="http://static.tumblr.com/ubkenek/c1Gluz2id/youtube-icon.png" alt="YouTube Icon"/>
				</a>
				{/block:IfYouTubeUsername} -->

			</div><!-- End Social Links -->

<div class="sponsor_logo">
<div id="sponsor_header">
</div>
<a href="http://www.artscouncil.ie"><img class="sponsor" src="http://www.podcastingireland.ie/woo/artscouncil_logo.png" alt="Arts Council"/></a>             
<img class="sponsor" src="http://www.podcastingireland.ie/woo/dub_theatre.png" alt="Dublin Theatre Festival"/>             

<img class="sponsor" src="http://www.podcastingireland.ie/woo/nso_logo.png" alt="NSO logo"/>
<img class="sponsor" src="http://www.podcastingireland.ie/woo/bget.gif" alt="Bord Gais Energy Theatre"/>
<img class="sponsor" src="http://www.podcastingireland.ie/woo/lyricfm.png" alt="Lyric FM"/>
</div>
</div>                

<div id="twitter">
<div id="twitter_header">

</div>
<div id="twitter_m">
<div id="twitter_container">
<ul id="twitter_update_list"></ul>
</div>
</div>
<div id="twitter_b"></div>

</div>
		</div><!-- End Side Bar  -->

 

cheers :)

At the minute your code looks like this when you inspect the page.

 

<div id="body">
 <div id="sidebar">content</div>
 <div id="twitter">content</div>
</div>

 

Try removing one of the </div> before the twitter div

 

so like this

 

<img class="sponsor" src="http://www.podcastingireland.ie/woo/nso_logo.png" alt="NSO logo"/>
<img class="sponsor" src="http://www.podcastingireland.ie/woo/bget.gif" alt="Bord Gais Energy Theatre"/>
<img class="sponsor" src="http://www.podcastingireland.ie/woo/lyricfm.png" alt="Lyric FM"/>
</div>                

<div id="twitter">
<div id="twitter_header">

Edited by 4colourprogress

  • Author

Yes that's worked. Thanks so much! Is it the same issue happening with the background on the 'Our Sponsors" in the sidebar? The background is overlapping with the links above even though the div starts below the links?

do you mind posting the css for the sponsor_logo div? I've tried it in chrome, ff & safari and it works in all 3.

Edited by 4colourprogress

  • Author

Ok so this is all of the CSS for that section - not including the change for the .sponsor_logo div:

 

.sponsor {
margin-bottom: 7px; 
margin-left: 10px;
}
.sponsor_logo {
margin-top: 20px; 
background-color: #cdd9e3;
}
#sponsor_header{
background: url("http://www.podcastingireland.ie/woo/sponsors.gif") top left no-repeat; 
font-weight:bold; 
float:left;
font-size: 14px; 
width:220px; 
height: 50px; 
color: #3F3F3F; 
margin-bottom: 10px;
}

Ok so this is all of the CSS for that section - not including the change for the .sponsor_logo div:

 

.sponsor {
margin-bottom: 7px; 
margin-left: 10px;
}
.sponsor_logo {
margin-top: 20px; 
background-color: #cdd9e3;
}
#sponsor_header{
background: url("http://www.podcastingireland.ie/woo/sponsors.gif") top left no-repeat; 
font-weight:bold; 
float:left;
font-size: 14px; 
width:220px; 
height: 50px; 
color: #3F3F3F; 
margin-bottom: 10px;
}

 

Yeah try this

 

.sponsor {
margin-bottom: 7px; 
margin-left: 10px;
}
.sponsor_logo {
background-color: #cdd9e3;
float: left;
}
#sponsor_header{
background: url("http://www.podcastingireland.ie/woo/sponsors.gif") top left no-repeat; 
font-weight:bold; 
font-size: 14px; 
width:220px; 
height: 50px; 
color: #3F3F3F; 
margin-bottom: 10px;
}

  • Author

Yeah that's doing the same thing...in Firefox and Safari...

 

 

Yeah try this

 

.sponsor {
margin-bottom: 7px; 
margin-left: 10px;
}
.sponsor_logo {
background-color: #cdd9e3;
float: left;
}
#sponsor_header{
background: url("http://www.podcastingireland.ie/woo/sponsors.gif") top left no-repeat; 
font-weight:bold; 
font-size: 14px; 
width:220px; 
height: 50px; 
color: #3F3F3F; 
margin-bottom: 10px;
}

  • Author

Ok that's weird, you're dead right...the </div> that you had told me to remove previously was there again. Really don't know how that happened. It's fixed now.

 

Really appreciate your help, cheers :)

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.