Log In · Register

 
Center
SpecialEdition
post Jan 28 2007, 04:46 PM
Post #1


Member
**

Group: Member
Posts: 10
Joined: Aug 2006
Member No: 456,859



how do i keep the profile in the Center....

so it wouldnt change beacause of the persons pixels

my pixel size is 1600 by 1200
 
 
Start new topic
Replies (1 - 11)
freeflow
post Jan 28 2007, 04:47 PM
Post #2


t-t-t-toyaaa
********

Group: Official Member
Posts: 19,821
Joined: Apr 2004
Member No: 11,270



Div or normal layout?
 
SpecialEdition
post Jan 28 2007, 04:49 PM
Post #3


Member
**

Group: Member
Posts: 10
Joined: Aug 2006
Member No: 456,859



div.... go look at it


myspace.com/thespecialedition
 
freeflow
post Jan 28 2007, 04:56 PM
Post #4


t-t-t-toyaaa
********

Group: Official Member
Posts: 19,821
Joined: Apr 2004
Member No: 11,270



You should be able to use this to position it centered by using the following: (save your original code first)
CODE
.image{
position: absolute;
left: 50%;
margin-left: -400px;
top: #px;
width: #px;
height: #px;
z-index:0;
}

^ Style tags of course.

Then
CODE
<div class="image"><img src="urltoimage"><div>



Play around with the margin left number and top number till you get it where you want it. (Don't forget to change the width and height) That should position just your image. You can ask me or anyone else to look at your profile after you position it centered on your resolution. This well tell whether or not its centered for me or anyone else. ( Ask one of your friends because most likely they have IE while I only have safari and firefox).


Sorry I didn't look at the profile in your signature because a lot of people ask for layouts that they usually put on a test myspace first. So yea. Sorry. pinch.gif
 
SpecialEdition
post Jan 28 2007, 05:00 PM
Post #5


Member
**

Group: Member
Posts: 10
Joined: Aug 2006
Member No: 456,859



lol i dont understand what 2 do with that....
 
freeflow
post Jan 28 2007, 05:04 PM
Post #6


t-t-t-toyaaa
********

Group: Official Member
Posts: 19,821
Joined: Apr 2004
Member No: 11,270



In the second you you need to add your image url.

You take the first code you add it in style tags. As I said up top you edit the positions. Leave left alone. You play around with the margin left number until the image is where you want it. Then you edit and play around with the top number (start at 150 , make it higher to go lower and lower to go higher up) till the image is where you want it. Add in a width and height. And continue on with what I suggested above. (Which would be to ask other people if its centered in their resolutions.)
 
SpecialEdition
post Jan 28 2007, 05:18 PM
Post #7


Member
**

Group: Member
Posts: 10
Joined: Aug 2006
Member No: 456,859



lol im a noob i dont know what style tags are.....

ok her is my image http://img454.imageshack.us/img454/9996/dance4lifeze7.jpg

can u make a example code
 
freeflow
post Jan 28 2007, 05:22 PM
Post #8


t-t-t-toyaaa
********

Group: Official Member
Posts: 19,821
Joined: Apr 2004
Member No: 11,270



I think you know what style tags are but you didn't know that they were called style tags. These are style tags (the red):
QUOTE
<style type="text/css">
Code goes here!
</style>


Here's an sample code then:
CODE
<style type="text/css">
.image{position: absolute; left: 50%; margin-left: -430px; top: 110px;  z-index: 0;}</style>
<div class="image"><img src="http://img259.imageshack.us/img259/9238/dance4lifego6.jpg"></div>


Note you may have to edit the margin left and the top number. Go ahead and edit those because those determine where the image goes.
 
SpecialEdition
post Jan 28 2007, 05:41 PM
Post #9


Member
**

Group: Member
Posts: 10
Joined: Aug 2006
Member No: 456,859



can it only b a image or can it b like a flash slideshow or a moivie.....
 
freeflow
post Jan 28 2007, 05:55 PM
Post #10


t-t-t-toyaaa
********

Group: Official Member
Posts: 19,821
Joined: Apr 2004
Member No: 11,270



It can be pretty much anything, you just have to make more divs for each new thing that needs to be positioned somewhere else.


Have you done divs before? If not read this: http://www.createblog.com/forums/index.php?showtopic=142922

 
SpecialEdition
post Jan 28 2007, 06:02 PM
Post #11


Member
**

Group: Member
Posts: 10
Joined: Aug 2006
Member No: 456,859



ok so i put this code

<div class="content" style="position: absolute; left:000px; top:000px; width:500px; height:500px; overflow: auto;"><center>
<a href="http://photobucket.com/" target="_blank"><img src="http://i43.photobucket.com/albums/e357/pabloreyes/you20rock20you20rule.jpg" border="0" alt="Photobucket - Video and Image Hosting"></a>
</div>

and it gos under my main image...i want 2 put it over my background image
 
freeflow
post Jan 28 2007, 06:18 PM
Post #12


t-t-t-toyaaa
********

Group: Official Member
Posts: 19,821
Joined: Apr 2004
Member No: 11,270



You did edit the positions.. wherever it says 000 you need to change that to a number. Read the bottom of the tutorial where it speaks of positioning for more information.
 

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