Centering A div |
![]() ![]() |
Centering A div |
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* |
Jan 17 2006, 09:35 PM
Post
#2
|
|
Guest |
..
|
|
|
|
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...
|
|
|
|
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. |
|
|
|
![]() ![]() |