[Center Code] - Post ID 211150

User 2924428 Photo


Registered User
1,718 posts

Hey guy's, is there anyway that I can center everything for my website at www.torchmod.com so it shows up the same on a laptop and a PC computer? I want it more responsive, and add some things you think should be added to a gaming website. I got twitter setup and all the classes with pictures/ previews of them. The site hasn't launched yet, according to our coder he won't be done for another week if we're lucky so.. any ideas?? :D
User 122279 Photo


Senior Advisor
14,627 posts
Online Now

You center a container element or a block level element by adding for it in the css file margin:auto;
If it isn't a container element, e.g. an image, you need to add display: block; in addition.

I think I told you this in another thread, where we discussed inserting images.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 122279 Photo


Senior Advisor
14,627 posts
Online Now

Here is the discussion I was referring to above:
http://www.coffeecup.com/forums/html-ed … post210323
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2924428 Photo


Registered User
1,718 posts

Got it, implemented it, thank you Inger :)

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.