Log In · Register

 
 
Closed TopicStart new topic
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 :-)
 
*This Confession*
post Jan 17 2006, 09:35 PM
Post #2





Guest






..
 
xm4r5h4llx
post Jan 17 2006, 09:41 PM
Post #3


Member
**

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



thanks... but do you think you could give me an example of the code... I am not all that good with html... ermm.gif
 
duplicatex0x0x0
post Jan 17 2006, 09:42 PM
Post #4


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.
 

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