Log In · Register

 
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.
 
 
Start new topic
Replies
wildkitty
post Apr 10 2006, 04:38 AM
Post #2


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
 

Posts in this topic
yunchikan   div position problems...   Apr 9 2006, 03:02 AM
mipadi   Your link doesn't work.   Apr 9 2006, 10:37 AM
yunchikan   QUOTE(mipadi @ Apr 9 2006, 8:37 AM) Your ...   Apr 9 2006, 04:30 PM
fishcake-y   You don't need the "www" in front of...   Apr 9 2006, 12:24 PM
wildkitty   there's not really a script to sort this out -...   Apr 10 2006, 04:38 AM


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