WEB CSS question about center alignment.

Discussion in 'OT Technology' started by dmora, Feb 19, 2008.

  1. dmora

    dmora Guest

  2. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    55,923
    Likes Received:
    11
    Location:
    Los Angeles
    Yeah, assign a width to your content container.
     
  3. Comtrad

    Comtrad Guest

    Code:
    <div class="nav" align="center">
    Try that
     
  4. dmora

    dmora Guest

    you didnt even look at the code did you?
     
  5. Necromancer

    Necromancer Guest

    Wait, so you just want to center it?
     
  6. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    55,923
    Likes Received:
    11
    Location:
    Los Angeles
    My bad, I didn't look at your CSS. Do this:

    Code:
    .content {
            margin: 0px auto;
    	width: 720px;
    	font-family: "Lucida Grande", Tahoma, Verdana, Arial, Helvetica, sans-serif;
    	font-size: 11px;
    	padding: 5px;
    }
    
     

Share This Page