iframe problem
by Peter Kraft
on
Feb 18, 2009 at 4:50:40 pm
Hi there,
I am an amateur with Dreamweaver.
I am trying to use an iframe (as my main display window) in the middle of my homepage, surrounded by other static links in other frames on the same homepage. I want the targets of all my links from my home page (i.e. spry menue) that can be clicked, appear in the iframe in the middle of my homepage, almost like my main browser window. There is probably an easier way to do this.
I appreciate all comments
Re: iframe problem by Seth Wood on Feb 18, 2009 at 6:58:10 pm
Have you thought about using a Style Sheet? CSS!
I'm not sure exactly what you are trying to do, but nearly any layout can be achieved using style sheets. It's very simple and allows you to set margins and padding and specific size and where it floats on the page... etc. The
could be your new best friend.
Hope this helps,
Seth
Re: iframe problem by Richard Williams on Feb 18, 2009 at 9:08:34 pm
Hi Peter.
Yes this is very easy. When you set up a link to your page, using the properties menu, there is a box underneath it called Target. Put the name of the iframe in there as the target, then all you links will go into the iframe. (you need to give your iframe an ID name, and link to that same name).
Re: iframe problem by Peter Kraft on Feb 19, 2009 at 8:08:26 am
thank you Seth and Richard for the responses.
I forgot to say that all my spry menu links are web pages and that the target box in the properties of the spry menu lets me only choose from the 4 typical options, such as "parent" etc. But what if I want my target to be the iframe, which is also on the homepage - this is neither of the options.
Where is my logic going wrong?
Re: iframe problem by Richard Williams on Feb 19, 2009 at 5:58:31 pm
Of course, you are right, there are 4 options, but there is nothing to stop you typing in something yourself there. Just click in the target box and type the id of your iframe.