Log In · Register

 
Centering A div
xm4r5h4llx
post Jan 17 2006, 09:25 PM
Post #1


Member
**

Group: Member
Posts: 12
Joined: Dec 2005
Member No: 311,630



how do you center a DIV overlay?

thanks...


edit... I need this method to work in both IE and firefox... thanks again...

here is the link...
My Myspace :-)
 
 
Start new topic
Replies
duplicatex0x0x0
post Jan 17 2006, 09:42 PM
Post #2


Senior Member
******

Group: Duplicate
Posts: 1,912
Joined: May 2005
Member No: 137,527



^
QUOTE
I didn't find that infromation helpful at all :blank:



In your code you probebly have:
QUOTE
.div1 {
background-color:ffffff; color:ffffff;
border:0px solid; border-color:silver;
width:300px; height:15px; overflow:auto;
position:absolute; z-index:2; left:50%; top:0%;
margin-left:70px; margin-top:820px;
visibility:visible;}


if you have the settings that are in bold in your code, for the background div, or any div for that matter it will become automatically centered.
 

Posts in this topic
xm4r5h4llx   Centering A div   Jan 17 2006, 09:25 PM
This Confession   ..   Jan 17 2006, 09:35 PM
xm4r5h4llx   thanks... but do you think you could give me an ex...   Jan 17 2006, 09:41 PM
tcunningham1589   ^QUOTEI didn't find that infromation helpful a...   Jan 17 2006, 09:42 PM


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: