View Full Version : div and frames?


DivaStyle
11-06-2003, 12:47 PM
Am I able to put frames in div layers?

Sorry, I know nothing about div layers... lol

Alcy
11-06-2003, 12:50 PM
Iframes (http://www.lissaexplains.com/frames.shtml#inline) yes.

DivaStyle
11-06-2003, 12:54 PM
Thanks for replying Alcy!

I have another dumb question, I have a left and right frame, how do I put an image at the very top without having to use a top frame?

Oh and I couldnt find anything about div's and frames in the link.

DivaStyle
11-06-2003, 01:00 PM
Would I be able to put my left and right frame in a div layer?

knudddel
11-06-2003, 03:29 PM
Look at this (http://www.neopets.com/~leialissa)
for DIVS and I'd do a top frame

DivaStyle
11-06-2003, 08:19 PM
Thanks knudddel!!

How do I get the links on my left side to show the pages on the right side? Like this: CLICKY (http://home.neopets.com/templates/homepage.phtml?pet_name=leialissa#div)

I think she used "page anchors" but I dont know to use them and what "codeword" goes into it.

kittycat
11-06-2003, 08:28 PM
She did use page anchors, there's instructions on that page and also here: http://www.lissaexplains.com/html4.shtml#anchor

DivaStyle
11-06-2003, 08:34 PM
Thanks kittycat,

I read about it but I'm not sure what to do. I want the link to open the page on the right side. (my navigation is on the left and I want the pages to open on the right.) I cant find anything about that here.

kittycat
11-06-2003, 08:42 PM
Are you using iframes? Then for the link, type in the full url including code name...

<a href="http://site.com/page.html#codename" target="frame">

DivaStyle
11-06-2003, 08:45 PM
I'm using the div html code from HERE (http://home.neopets.com/templates/homepage.phtml?pet_name=leialissa#div) ("How To Make A Layout")

I know how to do it with frames, but it says you can use div layers to make the same thing.

MaGiCSuN
11-06-2003, 09:01 PM
for your links you do: <a href="#NAME">blah</a> and change NAME to something else

then for the parts that it has to jump to (in the other div) you do <a name="NAME">blah</a>

that should work, since the links and all are all on the same page, they are only placed in a div

Love,
Mirna

DivaStyle
11-06-2003, 09:15 PM
Would I be able to use "<a name="NAME">blah</a>" in a drop down menu?

MaGiCSuN
11-06-2003, 09:19 PM
not in, but you can put it right before the drop down menu so that it sends you to the drop down menu kind of

<a name="NAME"></a>
drop down menu here

Love,
Mirna

DivaStyle
11-06-2003, 09:22 PM
So I cant use a drop menu at all if I want the pages to show on the right?

MaGiCSuN
11-06-2003, 09:29 PM
wow you are going fast now
you want the links to be in the drop down menu? you said <a name> that's why, because <a name> appears on the place where the links has to go to when clicked

in your drop down menu you just put as link #NAME in the href="" part instead of a full link. That should work

Love,
Mirna

DivaStyle
11-06-2003, 10:23 PM
lol sorry for being a complete dunce but if I want this link http://ca.geocities.com/sapphire_diva03/Tiffeni.html to go into the drop menu on the left and show in the right, what will the tag look like? I tried it but it wasnt a link... lol I'm so sorry!

kittycat
11-07-2003, 08:26 PM
You'd have your entire drop down frame code, and the option part would look like
<option value="http://ca.geocities.com/sapphire_diva03/Tiffeni.html">

Can you post a link to the entire page? It might be a bit easier to see what you're doing if something's going wrong.

DivaStyle
11-08-2003, 02:32 AM
Here's the link to the site page. It's just a blueprint so it's not done yet.

http://ca.geocities.com/sapphire_diva03/blue.html

kittycat
11-08-2003, 08:33 PM
You need an iframe in order to target the links to the side. Just replace your centre div with the correct iframe code, and make the page inside that a separate page.

DivaStyle
11-08-2003, 10:00 PM
See that's what confuses me. I read on here and in another site that you CAN do what I'm tryin to do with divs. Like this site (lissaexplains) isnt done in frames, but in css or div.

If I have to have frames, how can I put the frame into my div? Sorry if I'm annoying.. lol.

kittycat
11-08-2003, 10:45 PM
You can do it with divs if you include the same entire layout code on every page, that's what's done here. But if you want only the specific area to change you need the iframe :)

What you could do is this: Where you currently have the div code on the right, remove that stuff. Insert the iframe code there with the name, positioning, etc. Then on a separate page include the code that you previously had in the div.

DivaStyle
11-08-2003, 11:56 PM
Hey KittyCat, thanks for responding...

I used iframes instead of divs and this is what I have so far...

http://ca.geocities.com/sapphire_diva03/newblue.html

Could you please show me what the code would look like for the links? My links are in the drop down menu and I dont know what kind of link to put in to make them show up on the right side.

Thanks a bunch!!!

DivaStyle
11-09-2003, 01:12 AM
Nevermind, I GOT IT TO WORK!!!!! YAY! Thanks to everyone that posted and helped me out!