Help with Absolute Positioning HTML code

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Help with Absolute Positioning HTML code
lll_marty_lll
CZ Newbie
lll_marty_lll has been a member for over 20 year's 20 Year Member
Website:
Status: Offline
Joined: Oct 21, 2003
0.00 posts per day
Posts: 17
Points: 906
 Yahoo Messenger  

Hi Guys

I need a code for absolute positioning ...

...for a frame so that i can load a differnet webpage into a frame on my page, BUT i want to be able to determine what part of the page im loading i can view too, something similiar to the frames used for some league pages where you view the tny calender,
i hope some1 can help me

marty new_multi.gif



Back to top Reply with quote
#2   
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
Kelly_Hero has been a member for over 20 year's 20 Year Member
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.50 posts per day
Posts: 3765
Points: 351,412
   
Hi Marty. Welcome to Codezwiz.

Put this in the <head> section of your page:

<style type="text/css">
iframe {position: absolute; top: -580px;}
</style>


You'll need to play with the number of px to get the exact position you want on the page.

This goes in the <body> section of your page:

<iframe
src="http://URL_to_your_page.html"
height="500" width="300" frameborder="0"></iframe>


Again, change the height and width to suit the positioning of the page inside the iframe.

Hope this helps.


Back to top Reply with quote
#3   
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
Taut has been a member for over 20 year's 20 Year Member
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.72 posts per day
Posts: 5530
Points: 481,695
   
welcome to codezwiz.......I see you decided to come after all.


taut



Back to top Reply with quote
#4   I cant get it to work
lll_marty_lll
CZ Newbie
lll_marty_lll has been a member for over 20 year's 20 Year Member
Website:
Status: Offline
Joined: Oct 21, 2003
0.00 posts per day
Posts: 17
Points: 906
 Yahoo Messenger  
Hi
Thx for the welcome

Im startin to get really peeved !!

I done what u said, and even tho it looks like its loading, its not !!!

What i want is to get the "Top 20" section of this page.....
[ Register or login to view links on this board. ]

to appear in a completely different page at a completely differnet site !
can u have a go?
im at wits end !!!

thx
marty



Back to top Reply with quote
#5   
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
Kelly_Hero has been a member for over 20 year's 20 Year Member
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.50 posts per day
Posts: 3765
Points: 351,412
   
I don't think you're going to be able to do what you're wanting to do.

I created a test page with an iframe in it that pulls in the page you're wanting to load in it (your myleague main page). The page loads, but then it redirects to your myleague left page because of the <body onload> tag in your main page.

I can't think of any way around that unless you remove the onload tag which would mean going back to the original Cases' left side.

Kelly



Back to top Reply with quote
#6   i see ! but ...
lll_marty_lll
CZ Newbie
lll_marty_lll has been a member for over 20 year's 20 Year Member
Website:
Status: Offline
Joined: Oct 21, 2003
0.00 posts per day
Posts: 17
Points: 906
 Yahoo Messenger  
Yea
erm
im lost now

thing is, i was gonna change it so that it redirects the main page to a full one, that would wipe out the left column in view neways...
but, for me to do that, i would not be allowed to hide cases news, as its part of their rules,
so i was hoping to have this iframe positioning thing, to show the cases news on page...
but thinking about it...if im trying to link to the page im gonna overwrite, its gonna pop up my page again !!

hmmm ! i might just have to link to it arent i?



Back to top Reply with quote
#7   
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
Kelly_Hero has been a member for over 20 year's 20 Year Member
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.50 posts per day
Posts: 3765
Points: 351,412
   
If you want to have your league represented in a whole new independant website, I would suggest putting the Cases pages back to their original state and just putting a link or nice graphic in the announcement box linking to the "official site", which would open in a whole new browser window.

It means an extra click for your visitors but that way everything for Cases stays intact and you don't have to worry about putting the Cases stuff on your page.

Just a thought....... icon_smile.gif

Kelly



Back to top Reply with quote
#8   Yeaaa !!
lll_marty_lll
CZ Newbie
lll_marty_lll has been a member for over 20 year's 20 Year Member
Website:
Status: Offline
Joined: Oct 21, 2003
0.00 posts per day
Posts: 17
Points: 906
 Yahoo Messenger  
Hmmm
It was something i considered too, i think thats the way forward isnt it !?
And....i wont get no stupid banner at the top.

Well, at least i have an idea of absolute positioning if i ever need to do it again !!

And thanx for all ur help, this is the only part of html i didnt know how to do.

Cheers, Marty xx



Back to top Reply with quote
#9   
lll_marty_lll
CZ Newbie
lll_marty_lll has been a member for over 20 year's 20 Year Member
Website:
Status: Offline
Joined: Oct 21, 2003
0.00 posts per day
Posts: 17
Points: 906
 Yahoo Messenger  
Actually

Just a thought

With a redirect code, can i determine it to open in the "_blank"

that way they wouldnt have to click nething !!

marty



Back to top Reply with quote
#10   
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
Kelly_Hero has been a member for over 20 year's 20 Year Member
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.50 posts per day
Posts: 3765
Points: 351,412
   
Yep. You could do that. :cool:

Kelly



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum