Div help |
![]() ![]() |
Div help |
Jul 3 2008, 11:40 PM
Post
#1
|
|
|
Member ![]() ![]() Group: Member Posts: 12 Joined: May 2008 Member No: 649,600 |
I need to center this on my Myspace but the div image keeps covering the ads,I just can't get the positioning just right. I'm trying to put another div on top of it in a solid color. Its kinda getting annoying now. Note: not my coding
CODE <style typle="text/css"> .div{ position: absolute; left: 50%; margin-left:80px; top: -400px; z-index: 0;} .one{ position: absolute; left: 50%; margin-left:0px; top: 0px; z-index:5; width: 0px; height: 0px; overflow: auto;} .two{ position: absolute; left: 50%; margin-left:0px; top: 0px; z-index:5; width: 0px; height: 0px; overflow: auto;}</style> <div class="div"> <img src="http://i29.tinypic.com/2vcw4qs.jpg" /> </div> <div class="one"><center>BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH </center> </div> <div class="two"> <a href="http://www.msplinks.com/MDFodHRwOi8vY29tbWVudC5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj11c2VyLnZpZXdDb21tZW50cyZmcmllbmRJRD1YWFhYWFg=">comment </a> <a href="http://www.msplinks.com/MDFodHRwOi8vYmxvZy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1ibG9nLkxpc3RBbGwmZnJpZW5kSUQ9WFhYWFhY">blog </a> <a href="http://www.msplinks.com/MDFodHRwOi8vdmlld21vcmVwaWNzLm15c3BhY2UuY29tL2luZGV4LmNmbT9mdXNlYWN0aW9uPXVzZXIu mlld1BpY3R1cmUmZnJpZW5kSUQ9WFhYWFhY">pics </a> <a href="http://www.msplinks.com/MDFodHRwOi8vbWVzc2FnaW5nLm15c3BhY2UuY29tL2luZGV4LmNmbT9mdXNlYWN0aW9uPWludml0ZS5h GRmcmllbmRfdmVyaWZ5JmZyaWVuZElEPVhYWFhYWA==">add </a> <a href="http://www.msplinks.com/MDFodHRwOi8vaG9tZS5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj11c2VyJk15VG9rZW49MWJmZGQ1Y2QtOWMxZC00NmZhLTgzYzQtN2YzMGUwZmUzZmZh">home </a> <a href="http://www.msplinks.com/MDFodHRwOi8vbWVzc2FnaW5nLm15c3BhY2UuY29tL2luZGV4LmNmbT9mdXNlYWN0aW9uPW1haWwubWVz 2FnZSZmcmllbmRJRD1YWFhYWFgmTXlUb2tlbj02MDA3M2FmNS1lOTI5LTRjN2EtYjM1Ny0zZjFiNmRhM JiZmI=">message </a> <a href="http://www.msplinks.com/MDFodHRwOi8vaG9tZS5teXNwYWNlLmNvbS9Nb2R1bGVzL1ZpZXdGcmllbmRzL0ZyaWVuZHNWaWV3LmFz Hg/ZnJpZW5kSUQ9WFhYWFhY">friends </a> <a href="http://www.msplinks.com/MDFodHRwOi8vZnJpZW5kcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1ibG9jay5ibG9ja1VzZXImdXNlcklEPVhYWFhYWA==">block </a><center> </center> </div> Thanks |
|
|
|
Jul 4 2008, 05:49 AM
Post
#2
|
|
![]() Addict ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 3,918 Joined: Jun 2007 Member No: 538,522 |
You really should give coding a bash yourself!
To help you, make sure your image DIV has a margin-top of about 90px and it's all set relatively. Use this to center align your DIVS: CODE left:50%; margin-left:-250px; Where the margin left value is exactly half the size of your image. |
|
|
|
Jul 4 2008, 09:40 AM
Post
#3
|
|
|
Member ![]() ![]() Group: Member Posts: 12 Joined: May 2008 Member No: 649,600 |
You really should give coding a bash yourself! To help you, make sure your image DIV has a margin-top of about 90px and it's all set relatively. Use this to center align your DIVS: CODE left:50%; margin-left:-250px; Where the margin left value is exactly half the size of your image. Well I have...but Myspace is so annoying to me, I give up everytime. So I'd thought I'd get help on it. =) Ok, I will try that, thanks! |
|
|
|
Jul 8 2008, 04:59 PM
Post
#4
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Administrator Posts: 8,629 Joined: Jan 2007 Member No: 498,468 |
Topic Closed & Moved
|
|
|
|
![]() ![]() |