html/css coding for div overlays. |
html/css coding for div overlays. |
![]()
Post
#1
|
|
Member ![]() ![]() Group: Member Posts: 10 Joined: Feb 2008 Member No: 624,564 ![]() |
I design band layouts.
There is a few bands that have asked me to do some sort of DIV OVERLAY code. I tried and it never works in different browsers. Heres a few examples of bands that have this code. (look at the members and info section) http://www.myspace.com/letsgetit http://www.myspace.com/tdwp Basically, I just need some help on how to get a div overlay code (if that is even what it is) to be compatible on all browsers. Thanks :) |
|
|
![]() |
![]()
Post
#2
|
|
![]() Treasure Pleasure ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Head Staff Posts: 11,193 Joined: Oct 2005 Member No: 281,127 ![]() |
There's the 50% left margin method. Set the left margin to 50% then add a margin-left attribute for precise positioning, like this:
CODE left:50%; margin-left:-#px; Just replace the pound symbol with a specific value according to where you want to place your DIV's. You can remove the minus sign, too, if you want to move the DIV to the right as opposed to the left. That should make it compatible in most, if not all major browsers. |
|
|
![]() ![]() |