PDA

View Full Version : css positioning code....



Ryan
December 6th, 2002, 09:25 AM
i was wondering if you could make your absolute cordinate (the base point) at the top right of a table instead of the top right of the page? if you need clearification as to what im asking, let me know.

heres the code i am using.

'<' style type="text/css" '>'
iframe
{
position: absolute;
top: 75px;
left: 25px
}
'<' /style '>'

i just put the quotes around the < and > so that you could see the code. they arent in tje actual code... obviously.

thanks

=ryan

lostinbeta
December 6th, 2002, 12:56 PM
When using CSS to position an object you are positioning by page.

What you could do is put the div tag in the upper right part of a table and have no CSS positioning.

Ryan
December 6th, 2002, 01:03 PM
alright , thanks lost.

=ryan=

lostinbeta
December 6th, 2002, 01:04 PM
No problem, you actually don't even need to use a div tag, but if you were planning on using z-index or something then you have to....lol.

Ryan
December 6th, 2002, 01:45 PM
hey lost, or anyone for that matter. is there a code to go back a page and forward a page? or do you have to have the toolbar to do so? thanks

=ryan=

lostinbeta
December 6th, 2002, 01:54 PM
<A HREF="javascript:window.back()">Go Back</A>
<A HREF="javascript:window.forward()">Go Forward</A>


Try those. (remove the spaces in between java and script, the board put that there).

Ryan
December 6th, 2002, 02:32 PM
hmmmm. that didnt seem to work. i might just be doin omethin stupid. i dont think so though. its ok. i canalways just free up the toolbar. thanks though.

=ryan=

http://www.candlelightcab.com/Candlelight_Cabinetry/splash.htm

thats the link to the site. if you wanna look at it

lostinbeta
December 6th, 2002, 02:37 PM
Wait, I gave you the wrong code... stupid me put window.back.... 'DOH!!!

This should be it.... I think :) I didn't test.



<A HREF="javascript:history.back();">Back</A>
<A HREF="javascript:history.forward();">Forward</A>

Ryan
December 6th, 2002, 02:42 PM
thanks so much man. your my hero. lol. i was typing the most random code hoping to accedently get it. lol. im slowly learning all this jazz. but, without this forum id prolly be completely lost in the world of web design. so thanks.

=ryan=

lostinbeta
December 6th, 2002, 02:43 PM
No problem, sorry for not rechecking my code before hitting submit to the reply. I coulda saved you some trouble :(

I am glad you got it now though :)