Facebook Exclusive Article: How to Center Anything With CSS

by on 9th April 2012 with 9 Comments

screenshot

We’ve decided to reward our faithful fans with an exclusive treat. Anyone that “likes” Design Shack on Facebook can download a free, in-depth CSS tutorial!

To follow up last week’s article on the difference between absolute and relative positioning, this week we’re taking a look at an extremely basic question with an incredibly broad reaching answer: How do I center something with CSS?

Read on to get a glimpse of the tutorial and see how you can claim your download today.

Learn To Center Anything With CSS

screenshot

To follow up last week’s article on the difference between absolute and relative positioning, this week we’re taking a look at an extremely basic question with an incredibly broad reaching answer: How do I center something with CSS? The answer may be much more difficult that you think.

If you’ve ever struggled with centering an object in any scenario, this how-to is for you. We’ll walk you through not only basic tricks, such as using auto margins, but advanced tips as well on how to make sure absolutely positioned items stay centered and even how to vertically center objects.

screenshot

Once you’ve gone through this article, you’ll have a solid foundation of CSS positioning knowledge that will likely help you on every single project that you work on.

How Do I Get It?

screenshot

Downloading your free tutorial is easy. Simply head over to our Facebook page, click the “Like” button, then click on the “Bonus Article” banner. From here, it’s a one-click download.

What If I Don’t Want To?

If you’re not big on this whole Facebook idea, don’t worry, this isn’t our new way of distributing articles. It’s merely a small way for us to thank our loyal fans who help us out by appreciating our site through social media.

This article will only remain exclusive for a limited time. Even if you don’t have a Facebook account, you’ll eventually be able to access this free tutorial with the rest of our content in a few months when it goes live on Design Shack.

Once again we’d like to thank all our readers and sincerely hope this bonus article will prove useful to you. Let us know if you liked it in the comments below.

Comments & Discussion

9 Comments

  • nomi

    Just read. Damn DesignShack! Your tutorials make me feel like someone with zero knowledge of basics. Keep up the good work.

  • Joshua Johnson

    Thanks!

  • Marlou

    I like the idea of a bonus article on facebook! It worked for me, I liked your page x)
    I still don’t know the best way to vertically center something without knowing it’s height though!

  • Monti
  • Monti

    http://jsfiddle.net/monti/G95dP/1/
    ^with the correct path to the .htc for IE7.

  • http://www.giometri.com egiova

    The FB formula doesn’t work to me. First, sorry, but I hate FB; second, no way to keep the post for a further reading. It stinks.
    I understand this need to “socially links” your blog to your FB page, but I think it’s confusing genres. Or blog, or social. It could work for, perhaps, a freeby, but for a post definitely not (in my opinion). I read your blog generally while I’m working on my feed reader, and it’s fast. This formula slow down all the process, it’s a nuisance to me.
    About the post: clever and useful, as usual. Thanks for this.

  • http://LAKOLOGY.COM LAKSHMI MAREDDY

    Guys, I am with Egiova on this. I think you should put a standard ribbon in the header with “Like us on FB to download bonus material” and disassociate the likes via the article.

    Secondly, after i did all that you asked me to do, and something extra [i shared this article on my wall] when i accessed the bonus material, it is not in a pdf or downloadable format. I cannot do and <CTRL+V, for such a long article plus images…. That was not how i expected to be served.

    Hoping you will do a more slick offering next time!

    Thanks, Lak

  • Dm

    Im with the naysayers: Boo.
    You guys are great at design but you have some to learn about marketing. Buying “likes” especially with free content?!?
    Easy enough to “like” you, grab the article, and then “unlike” you. We should like you because of what you do. I’ll wait for it to be posted on your site.
    Otherwise, keep up the good work.

  • faust

    Freelance limited, reviews.

    3dinfo Jun 25, 11, 08:32AM | #1
    Joined: Jun 23, 11
    Threads: 1
    Posts: 7

    I was lucky to order an essay with the powered by Limited. They have a wide range of academic papers, including essay, reviews, dissertations, case studies, and even admission service. I was delighted with the services of Though, I have encountered a lot of similar custom writing service web sites, by Limited is much better in relation to price and quality balance. I ordered an essay � delivery of the essay was in time, although I was a bit disappointed with the support service � there were some technical problems or something like that. In general, my demands were met: nice prices, high quality of academic paper performance, fast delivery. It was worth it, indeed. I’d better say premium class service in comparison with the websites I had visited before. No cheating, nice discounts if you are either a regular customer, or a newcomer. is a nice academic writing solution, indeed.
    WritersBeware Edited by: WritersBeware Jun 25, 11, 09:38AM | #2

    3dinfo, f*ck you, spammer.

    fraudulent, unqualified, deceptive, ESL site from Ukraine

    “Eugene,” get your spammers out of here, or you will have a serious problem on your hands.
    pheelyks Jun 25, 11, 10:03AM | #3

    , aka UVO, aka Academic Experts) is operated out of Ukraine and hires writers from countries like Jordan, Pakistan, India, and other places where $3-$7/page is considered an excellent wage. This wouldn’t be a problem if their writers actually knew how to speak (and write) fluent English, and if they didn’t institute a bunch of practices with the sole purpose of cheating their writers and their customers. Things being as they are, however, anyone that actually wants an academic quality paper written by a native (or at least fluent) English speaker should still well clear of this company.
    Twig Jun 25, 11, 10:23AM | #4
    Joined: May 10, 11
    Threads: 2
    Posts: 141

    3dinfo:
    was lucky to order an essay with the Limited. They have a wide range of academic papers, including essay, reviews, dissertations, case studies, and even admission service. I was delighted with the services of Though, I have encountered a lot of similar custom writing service web sites, Limited is much better in relation to price and quality balance. I ordered an essay � delivery of the essay was in time, although I was a bit disappointed with the support service � there were some technical problems or something like that. In general, my demands were met: nice prices, high quality of academic paper performance, fast delivery. It was worth it, indeed. I’d better say premium class service in comparison with the websites I had visited before. No cheating, nice discounts if you are either a regular customer, or a newcomer. is a nice academic writing solution, indeed.

    It is very sad for a person of your caliber to promote a scamming site here.
    pheelyks Jun 25, 11, 10:36AM | #5

    Twig:
    a person of your caliber

    A person of what caliber, exactly? They came here to lie because they were paid to do so. Their post does not make them seem intelligent, honest, noble, or any other quality associated with people of “high caliber.” On that note, you yourself seem to be of increasingly questionable caliber–exactly what is it you think you add to this forum?
    Twig Jun 25, 11, 10:54AM | #6
    Joined: May 10, 11
    Threads: 2
    Posts: 141

    pheelyks:
    A person of what caliber, exactly?

    Low caliber.
    pheelyks:
    On that note, you yourself seem to be of increasingly questionable caliber–exactly what is it you think you add to this forum?

    I do not think you are the right person to ask me such a query. Sh*t
    pheelyks Jun 25, 11, 11:42AM | #7

    Twig:
    I do not think you are the right person to ask me such a query. Sh*t

    Any one here has every right to question someone else’s legitimacy. Your lack of explanation is more indicative of your character and potential nefariousness than a simple acknowledgment that you’re a Kenyan writer looking for a new way to scam customers.
    Twig Edited by: Twig Jun 25, 11, 12:08PM | #8
    Joined: May 10, 11
    Threads: 2
    Posts: 141

    pheelyks:
    that you’re a Kenyan writer looking for a new way to scam customers.

    Can you prove this. You are just fond of making unsubstantiated allegations. If you are sure I am a scamming writer, go ahead and expunge my username. Fu*k. You think you are the King/Prince of this forum. Provide evidence to show that I am indeed a scamming writer. How many students have I scammed? How many Pheelyks? Provide a list of their names and the amount of money.
    pheelyks Jun 25, 11, 05:09PM | #9

    Twig:
    Can you prove this.

    No.
    Twig:
    You are just fond of making unsubstantiated allegations

    No, I’m not, but when you have no apparent reason for posting here and refuse to answer a direct question pertaining to that purpose, I will voice my suspicions aloud.
    Twig:
    If you are sure I am a scamming writer, go ahead and expunge my username.

    I am not a moderator here, nor do I have any influence over the moderators (I don’t even know who they are). I am not sure that you’re a scamming writer, but that’s certainly what it seems like. Since you won’t share what you’re actually doing here, I am forced to guess.
    Twig:
    You think you are the King/Prince of this forum

    No.
    Twig:
    Provide evidence to show that I am indeed a scamming writer

    I don’t have any, and never claimed to. Again, all I have are my suspicions.

    If you’re not a scam writer, tell us what your purpose for being here is. It certainly isn’t to add anything useful to the discussions.
    Twig Edited by: Twig Jun 25, 11, 10:25PM | #10
    Joined: May 10, 11
    Threads: 2
    Posts: 141

    pheelyks:
    I don’t have any, and never claimed to. Again, all I have are my suspicions.

    Who really cares? If you have admitted that you are not the moderator, any future question(s) from you regarding my credibility will go unanswered. Meanwhile, keep on suspecting me. I am a writer with integrity, and writes for 20 private clients.
    Twig Edited by: Twig Jun 25, 11, 10:42PM | #11
    Joined: May 10, 11
    Threads: 2
    Posts: 141

    pheelyks:
    If you’re not a scam writer, tell us what your purpose for being here is.

    And what about you? Your reasons for being here are:
    1) To criticize others
    2) To make unsubstantiated claims
    3) To trade insults
    4) To write crap
    5) To show off that you are the most talented writer in the world. Do you possess a PhD in English Language? No.
    Do they really help anyone? No.
    craftywriter Jun 25, 11, 11:10PM | #12
    Joined: Jun 25, 11
    Posts: 3

    Twig, never argue with a fool (pheelyks), he will lower you to his level, and then beat you with experience.
    craftywriter Jun 25, 11, 11:34PM | #13
    Joined: Jun 25, 11
    Posts: 3

    pheelyks Jun 26, 11, 09:55AM | #14

    Twig:
    I am a writer with integrity, and writes for 20 private clients.

    Wow. 20. They must all be really pleased at the barely passing grades you are able to earn with those ESL skills.
    Twig:
    1) To criticize others

    Only when they deserve criticism. This site is devoted to exposing scam writers/companies, after all.
    Twig:
    2) To make unsubstantiated claims

    Not at all. i substantiate my claims as much as possible, and clearly acknowledge when I am voicing suspicions rather than facts.
    Twig:
    3) To trade insults

    I’d rather not, and actually “insult” other posters a lot less than they attempt to insult me. The fact that you take criticism of your language skills as an insult does not mean that it was my intent to insult; it is more evidence of your emotional state than of mine.
    Twig:
    4) To write crap

    Like what, exactly? Is this the kind of lucid and well-thought-out statement you provide your clients with?
    Twig:
    5) To show off that you are the most talented writer in the world.

    Not even close. I have never claimed to be the most talented anything in the world, and am certainly not the most talented writer. I am very good at what I do and I take pride in that, but that isn’t the same thing as arrogance. That’s something a lot of the Kenyan writers that have appeared on this forum seem to have a problem with.
    Twig:
    Do they really help anyone?

    Yes. There are many customers that have thanked me quite openly on this forum and via PM for my information and assistance.
    craftywriter:
    never argue with a fool (pheelyks), he will lower you to his level, and then beat you with experience.

    Ahh, arguing with other people’s words. What a crafty plagiarizing writer, indeed.
    Twig Jun 26, 11, 10:21AM | #15
    Joined: May 10, 11
    Threads: 2
    Posts: 141

    pheelyks:
    Wow. 20. They must all be really pleased at the barely passing grades you are able to earn with those ESL skills.

    Showing off as usual. Did you grade those papers?
    pheelyks:
    That’s something a lot of the Kenyan writers that have appeared on this forum seem to have a problem with.

    Making unsubstantiated claim as usual. Are you always a fool or you simply repeat some mistakes to amuse us? Who told you I am a Kenyan Writer? Your degree of madness is extremely high.
    pheelyks Jun 26, 11, 10:59AM | #16

    Twig:
    Did you grade those papers?

    No. Did you?
    Twig:
    Making unsubstantiated claim as usual

    What unsubstantiated claim? There have been numerous posters on this site claiming to be from Kenya (something the mods occasionally verified using IP information) and insisting that other writers must recognize their superiority, that Kenyans are the kings of the world and we should bow down before them, etc. I do not know whether you’re from Kenya or somewhere else, but your tone is similar to that of these Kenyan writers, if toned down somewhat. The fact that you misinterpreted a fairly simple sentence is still more evidence of your lack of English fluency.
    Twig Jun 26, 11, 11:15AM | #17
    Joined: May 10, 11
    Threads: 2
    Posts: 141

    pheelyks:
    The fact that you misinterpreted a fairly simple sentence is still more evidence of your lack of English fluency.

    Which sentence? You claim they score “passing grades” and yet you have no evidence. Is this not unsubstantiated claim? You are not my professor to question whether I “lack English Fluency”. Also, have I ever indicated anywhere on this forum that I am the “King of the world”?
    3dinfo Jun 29, 11, 12:59AM | #18
    Joined: Jun 23, 11
    Threads: 1
    Posts: 7

    Oh WritersBeware Twig

    limited not scamming
    pheelyks Jun 29, 11, 07:18AM | #19

    3dinfo:
    limited not scamming

    With such a lucid, confident, and well-supported statement, who could possibly disagree?

    Oh, yeah…anyone that’s had any real world experience with company. Damn. If only the facts didn’t get in the way of your blithe assertion.
    Twig Jun 30, 11, 02:07PM | #20
    Joined: May 10, 11
    Threads: 2
    Posts: 141

    3dinfo:
    limited not scamming

    Ha ha ha..
    pheelyks Jun 30, 11, 03:03PM | #21

    Twig:
    3dinfo:
    limited not scamming

    Ha ha ha..

    You add absolutely nothing of value to this forum. Unless you can change that, please leave.
    Twig Jun 30, 11, 10:11PM | #22
    Joined: May 10, 11
    Threads: 2
    Posts: 141

    pheelyks:
    please leave.

    Keep on dreaming.
    pheelyks Jun 30, 11, 11:00PM | #23

    Twig:
    Keep on dreaming.

    You do realize this doesn’t actually make sense in context, right?
    Twig Edited by: Twig Jul 1, 11, 04:45AM | #24
    Joined: May 10, 11
    Threads: 2
    Posts: 141

    pheelyks:
    ou do realize this doesn’t actually make sense in context, right

    I am sick of your constant attacks. They are seemingly insane. But you know what? You have no right to persist with them since you confessed you are not the Modulator.
    pheelyks Jul 1, 11, 09:19AM | #25

    Twig:
    I am sick of your constant attacks.

    Stop making useless posts here and I’ll stop “attacking.”
    Twig:
    You have no right to persist with them since you confessed you are not the Modulator.

    This sentence is ridiculous on several levels. Anyone has a right to post anything they want here that isn’t in conflict with the TOS. The site also doesn’t have Modulators, to my knowledge. Try looking up words when you don’t know what they mean–there’s no shame n trying to learn a new language, and the sense of accomplishment you’ll have when you’ve actually mastered English will be worth the effort.
    Twig Jul 1, 11, 09:25AM | #26
    Joined: May 10, 11
    Threads: 2
    Posts: 141

    pheelyks:
    This sentence is ridiculous on several levels. Anyone has a right to post anything they want here that isn’t in conflict with the TOS. The site also doesn’t have Modulators, to my knowledge. Try looking up words when you don’t know what they mean–there’s no shame n trying to learn a new language, and the sense of accomplishment you’ll have when you’ve actually mastered English will be worth the effort.

    Shut the hell up, housefly.
    pheelyks Jul 1, 11, 09:34AM | #27

    Twig:
    Shut the hell up, housefly.

    Is housefly a big insult in Kenya?
    WritersBeware Edited by: WritersBeware Jul 1, 11, 10:31AM | #28

    Twig:
    you are not the Modulator

    Illudium PU-36 Explosive Space Modulator
    craftywriter Jul 2, 11, 01:50AM | #29
    Joined: Jun 25, 11
    Posts: 3

    Pheelyks, what happened here http://essaychat.com/3/
    MeoKhan Writer Jul 2, 11, 01:01PM | #30
    Joined: Jan 9, 11
    Threads: 5
    Posts: 1,384

    craftywriter:

    First, page 3 is full of posts made by numerous visitors. Secondly, I wonder why you are discussing a different forum here. It has different rules from those of EssayScam. Hope you get my point.
    dunno214 Writer Dec 3, 11, 07:24PM | #31
    Joined: Dec 3, 11
    Posts: 2

    I think with every company it depends. The customer’s need to give specific instructions to the writer. I currently write for them and what I have noticed (revisions and sometimes customer’s reassign the writer) is that some are really good and some are really bad. However, they use quite a few ESL writers and that is something that you may need to be careful with. It’s technically ‘hot season’ (meaning that students are submitting orders like crazy). Being someone who only speaks English you would think business would be booming. Yet on the login screen it shows close to 200 orders but once you log in (if you are an English speaker) it gets cut down to like 15. From that I can understand why there are so many negative reviews on this company. But like I said its a two way street. From a writers perspective (who only speaks English) I wouldn’t recommend other any native speakers to work for this company at this point.

Subscribe
Membership
About the Author