Log In · Register

 
 
Closed TopicStart new topic
div position problems..., please come in and see if u can help me ><
yunchikan
post Apr 9 2006, 03:02 AM
Post #1


Newbie
*

Group: Member
Posts: 7
Joined: Dec 2004
Member No: 74,156



i really need to know what do i have to put into my script if i want my div box to stay the same position even when i do full screen..

example is here. thats my gj site. and if u press F11 [for full screen] u will see that the div box is moved up. and since everyone uses different browsers and have different screens.. i want that div thing to be at the same spots on every computer...

i really wanna know if theres a script that can do that.. i tried looking~ but i cant find it!!!!! please help ><
i'll be very appreciated <3
thank you.
 
*mipadi*
post Apr 9 2006, 10:37 AM
Post #2





Guest






Your link doesn't work.
 
talcumpowder
post Apr 9 2006, 12:24 PM
Post #3


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



You don't need the "www" in front of it.
[ http://tamkan.greatestjournal.com/ ]
If you positioned your div from the bottom up, then it might not move as much... Also, absolute/fixed positioning could also help.
 
yunchikan
post Apr 9 2006, 04:30 PM
Post #4


Newbie
*

Group: Member
Posts: 7
Joined: Dec 2004
Member No: 74,156



QUOTE(mipadi @ Apr 9 2006, 8:37 AM) *
Your link doesn't work.



ahh sorry >< yeah like fishcake-y said. i dont need the www. in the front.. >< sorry ><

QUOTE(fishcake-y @ Apr 9 2006, 10:24 AM) *
You don't need the "www" in front of it.
[ http://tamkan.greatestjournal.com/ ]
If you positioned your div from the bottom up, then it might not move as much... Also, absolute/fixed positioning could also help.



umm how do i position it from the bottom up..? i tried doing position: absolute;~ but it still moves up.. did i type it wrong or what.. ><
 
wildkitty
post Apr 10 2006, 04:38 AM
Post #5


Senior Member
***

Group: Member
Posts: 57
Joined: Nov 2005
Member No: 308,869



there's not really a script to sort this out - it's just one of the limits of divs i'm afraid.
but i have a plan! laugh.gif
make the background image a div. you don't need to set it to anything, just:
CODE
<div style="width: ##px; height: ##px; background-image: url(urlforimagerighthere);">

</div>


if that doesn't work just do this:
CODE
<div>
<img src="url for image right here">
</div>


then put your div for your text box inside that:
CODE
<div style="width: ##px; height: ##px; background-image: url(urlforimagerighthere);">
<div style="all the styles you've set to your textbox div; position: relative; top: ##px; left: ##px">type your text here</div>
</div>

so the relative position means the pixels from the top and left of the actual first div (the image) rather than the top of the page. do you get that?

if thats all a bit confusing for you, don't centre the image, just let it sit in the top left corner. then position the div. it will work in all sizes.

good luck! personal message me if you have a query/problem/don't understand because i may forget to look back at this convo.

kitty
 

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