Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 2206 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Centering in CSS

Thread title: Centering in CSS
     
    Thread tools Search this thread Display Modes  
Prev Previous Post   Next Post Next
08-16-2004, 04:29 AM
#1
Jon-Kyle is offline Jon-Kyle
Status: Member
Join date: Jul 2004
Location: Nashville, TN
Expertise:
Software:
 
Posts: 181
iTrader: 0 / 0%
 

Jon-Kyle is on a distinguished road

  Old  Centering in CSS

I'm trying to center a <DIV> tag for a header I'm making. Here is the code that I have now:

Code:
.header {
	margin: 10px;
	padding: 10px;
	background-color: #FFFFFF;
	width: 500px;
	border: 1px solid #999999;
	left: 50%;
	right: 50%;
}
For some reason it will not lign up in the center of my browser window. It just stays off to the left.

     


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed