Home > Tutorial > Blogger Margin Fix
Blogger Margin Fix
Posted on Sunday, November 7, 2010 by android apps market for tablests
When it comes to tweaking your blog, sometimes you will find some of your page elements being shifted away from its original desired position. And most of the times you wouldn't find an easy fix for this. This tends to happen when you are hiding an element from your page. As a result, some gap is resulted at the place where the element was supposed to be, causing a distorted look.
In this tutorial, you will learn a simple trick on how to 'pull' a page element towards a certain direction using CSS code. I wanted to include this tweak in my previous tutorial, when I was writing on how to hide an annoying tag that would appear in label pages. Then again, I thought it'd be better if this tweak has it's own page as well. So here it is.
In this tutorial, you will learn a simple trick on how to 'pull' a page element towards a certain direction using CSS code. I wanted to include this tweak in my previous tutorial, when I was writing on how to hide an annoying tag that would appear in label pages. Then again, I thought it'd be better if this tweak has it's own page as well. So here it is.
Step 1:
First we'd have to identify the Class or ID of the element that we are going to fix. In the example from my previous tutorial, this is what FireBug's inspection yielded:
So I will be pulling this element upward by addressing it's class, which is column-center-inner.
First we'd have to identify the Class or ID of the element that we are going to fix. In the example from my previous tutorial, this is what FireBug's inspection yielded:
So I will be pulling this element upward by addressing it's class, which is column-center-inner.
Step 2:
To fix the margin, I will be using the followinc CSS code:
To fix the margin, I will be using the followinc CSS code:
.column-center-inner{
margin-top: -30px;
}
The value 30 is arbitrary. You gotta adjust this value by trial and error. But if you're gonna do this often, I suggest you get yourselves useful add-ons, like MeasureIt.Step 3:
Even though the CSS code above will do the job, applying it to your whole template will not be a good idea because it will shift your posts up in all the pages in your blog. It is okay if you're having the margin problem in all of your pages. In that case, you can apply the code in Step 2 to all of your pages by going to Template Designer - Advanced - Add CSS - Paste the code - Apply to blog.
But if you were following my previous tutorial, you will be having problems in selected pages only. So you should not apply the fix to all of your pages. What we're gonna do now here is apply our fix to one selected page alone. From your template's Edit HTML - Find for </b:skin> - Paste the following code directly below </b:skin> :
That's about it! See the final result below:
Even though the CSS code above will do the job, applying it to your whole template will not be a good idea because it will shift your posts up in all the pages in your blog. It is okay if you're having the margin problem in all of your pages. In that case, you can apply the code in Step 2 to all of your pages by going to Template Designer - Advanced - Add CSS - Paste the code - Apply to blog.
But if you were following my previous tutorial, you will be having problems in selected pages only. So you should not apply the fix to all of your pages. What we're gonna do now here is apply our fix to one selected page alone. From your template's Edit HTML - Find for </b:skin> - Paste the following code directly below </b:skin> :
<b:if cond='data:blog.url == "http://southernspeakersv2.blogspot.com/search/label/Tutorial"'>Of course, don't forget to change the URL above to the URL of the page you want the fix to apply. My inserted code looks like this in Edit HTML:
<style>
.column-center-inner{
margin-top: -30px;
}
</style>
</b:if>
That's about it! See the final result below:
Category Article Tutorial
Powered by Blogger.
Blog Archive
-
▼
2010
(1682)
-
▼
November
(197)
- Info Product "T-Mobile Comet " 3G HSDPA Android P...
- Full Info Specification "Samsung A667 Evergreen" 3...
- Video: How To Hotpot
- Adding Buttons to Blogger Header
- Info Specification "Motorola MOTO MT716" Android S...
- New Info Product "Nexian Sound Box(Nexian NX-G509)...
- Namesake
- When Nature Pays A Visit
- iTunes won't backup iPad when syncing
- Info Specification about "Nokia C2-01" Handphone M...
- Info Specification Product "LG GS390 Prime" 3.0 in...
- No sound in apps since iOS 4.2 update
- Spirits for iPad
- How to Fix iPad No 3G service after 4.2 upgrade
- UNLOCKED DELL STREAK�S WITH NEW COLOR CHOICE AND ...
- APPLE IPAD ACASE SLIMLINE PREMIUM LEATHER CASE FOR...
- FUJITSU DISPLAYS A NEVER BEFORE SEEN 10-INCH WINDO...
- ACER UNVEILS SLIM AMD BASED WINDOWS 7 10-INCH TABL...
- ASUS U36 ULTRATHIN NOTEBOOK WITH CORE I3 & I5 13.3...
- iPad 2nd generation brings new features
- NETBOOK COMPAQ MINI CQ10-405DX AND CQ10-525DX
- TOP 10 BLACK FRIDAY WEB HOSTING DEALS
- Blogger Floating Footer
- T-mobile BOGO Promotion Now Begin
- Christmas Countdown Gadget
- How to get screen rotate lock switch back iPad iOS...
- Mail app crashes routinely on iOS 4.2.1
- iPad battery drains in sleep mode on iOS4.2
- iPad Notes only in landscape mode after upgrading ...
- Info Specification Product "T-Mobile Vibe E200" Ch...
- IOS 4.2 DIRECT DOWNLOAD LINKS LIST
- SONY PLAYSTATION PHONE SPECIFICATION
- Open Blogger Links in New Tabs
- How I�m Using Hotpot to Plan My Thanksgiving Weekend
- AirPrint - No Mail Print Icon but Safari and Photo...
- How to delete Game Center from iPad?
- MobileMe Account not verified with Find my iPad
- Product Info Specification Android Smartphone "Mot...
- Map Your Favorite Places Along the Macy�s Parade R...
- IDs and Classes for Beginners
- Remove Space between Blogger Posts
- Remove Space between Gadgets in Blogger Sidebar
- iPad stuck on cancelling sync
- AirPrint Setup on the iPad
- Most-Rated Google Places
- We Have Gone to SouthernSpeakers.net
- Music, Videos lost after iPad updated to iOS 4.2
- How Many iPad Apps and Folders Can I Have?
- How to Use AirPlay For Videos, Photos and Music
- Big Bad Sudoku Book - Game Center game
- iOS 4.2 AirPrint compatible printers
- iPad mute switch doesn't mute on iOS 4.2.1
- Lunch is on Google
- NEW TABLET ANDROID TOSHIBA FOLIO 100
- Siemens GreenTouchscreen� - Higher Education
- Nokia World's first ice touchscreen virtually burns
- Resize Blogger Post Image
- Update Apps Before updating to iOS 4.2 for iPad
- Trucks and Skulls HD
- iTunes Connect Mobile for iPad
- T-mobile 's "4G Sweepstakes" Contest
- HTC Released myTouch 4G Source Code
- Christmas Tale for iPad
- iPad crashes when scrolled through photos in iPhotos
- Hotpot's First Week
- Remove Blogger Static Page Titles
- How to get started with Game Center on iPad
- iOS 4.2 for iPad Release Date Delayed Again
- Info New Produk With Great Specs "LG L-03C" 12MP C...
- InFo Complete Specification Product "LG C320 InTou...
- Upload Multiple Pictures with Blogger's Updated Ed...
- Reposition Blogger Header Image
- Google Sky Map- now with time travel
- Google Sky Map- now with time travel
- Talking Gremlin HD - Entertainment app
- Running android OS on your iPad
- How to add PDF files to iBooks & read them on your...
- Info Complete Specification "Sony Ericsson Xperia...
- Information Product Specification CDMA Android Pho...
- AmazonWireless myTouch 4G Now Only $49 on Backordered
- Latest myTouch 4G Ad - Still Hits AT&T
- Editing your Google Docs on the go
- Editing your Google Docs on the go
- Info Product Specification "Samsung Nexus S (Samsu...
- review "ZTE Peel" Change Ipod Touch Into Iphone
- Introducing the Hotpot Blog
- Google Voice for iPhone
- Google Voice for iPhone
- Offline, meet online: a marketing experiment with ...
- Offline, meet online: a marketing experiment with ...
- Should I Upgrade iPad to iOS 4.2?
- EyeTV Enables Satellite TV on iPad running iOS 4.2
- Can't stop Mail checking email on iPad
- Android 2.3 Gingerbread Features
- Eric Schmidt teases Nexus S with Gingerbread
- Personally Yours on the Go - Personalized Recommen...
- Personally Yours on the Go - Personalized Recommen...
- Complete Info Specification of Android Phone "Dell...
- Review LG 4G Modem and Pantech UML290 VL600 4G W...
- Google Shopper 1.3 adds search filters and feature...
-
▼
November
(197)



