1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: CSS Help...

Discussion in 'Web Design & Development' started by iTrey, Dec 21, 2010.

Thread Status:
Not open for further replies.
  1. iTrey

    iTrey Thread Starter

    Joined:
    Feb 18, 2010
    Messages:
    22
    Hey. I'm kinda new to web development and i need some help with something.

    I need the content inside the div tag to be centered but the typical "text-align: center" doesn't work. I'm pretty sure its because of the other CSS style sheets within the div tag. So my question is: how do i center align the buttons in my site?

    Thanks.
     

    Attached Files:

  2. iTrey

    iTrey Thread Starter

    Joined:
    Feb 18, 2010
    Messages:
    22
    nvm i got it. i just put everything in a table inside the <div>
     
  3. colinsp

    colinsp

    Joined:
    Sep 5, 2007
    Messages:
    2,270
    First Name:
    Colin
    Tables are not the recommended way of doing this. It is easy to do in CSS. Create a menu div and give it a style of margin: 0 auto; and put your menu code in this, that will centre it for you.

    BTW it is easier for us to help you if you quote a URL and post your actual code in code tags in the message rather than a zip file with screenshots.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/969876

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice