Results 1 to 1 of 1

Thread: center a div with CSS [Resolved]

  1. #1

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    Resolved center a div with CSS [Resolved]

    I can't seem to figure out how to center a div on the page. What I end up doing is putting the div I want to center inside of another div that is centered.

    Here is my CSS:
    Code:
    .requesthead {
    	font-weight: bold;
    	font-size: 11pt;
    	border: 2px solid black;
    	text-align: center;
    	width: 90%;
    }
    I want to put that in the middle of the page, but I can't figure out how. Help!?

    edit: nevermind... I found it: margin-left and right set to auto.
    Last edited by ober0330; Oct 4th, 2004 at 02:17 PM.
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width