Log In · Register

 
html/css coding for div overlays.
imasharkbear
post Feb 16 2009, 01:06 AM
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 :)
 
 
Start new topic
Replies
Mickey
post Feb 16 2009, 08:20 AM
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.
 

Posts in this topic


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