martemelon Posted April 14, 2006 Share Posted April 14, 2006 I needed some HTML help to my homepage,and I found this site. It's really good and helpful.But, I got a problem. I want to have a "Navigation frame"on my page. The problem is that I couldn't make it!Can someone please help me?marte_melon@hotmail.com Link to comment Share on other sites More sharing options...
Little Goat Posted April 14, 2006 Share Posted April 14, 2006 well if you want help, post what you have already tried.after that we can fix your code, but unless you have an Idea of what you're trying to do, we can't help you.LG Link to comment Share on other sites More sharing options...
martemelon Posted April 14, 2006 Author Share Posted April 14, 2006 well if you want help, post what you have already tried.after that we can fix your code, but unless you have an Idea of what you're trying to do, we can't help you.LG<{POST_SNAPBACK}> Okay, the nearest I came was:<html><table border="0"><tr><td><a href ="index.html" target ="showframe">Frame a</a><br><a href ="velkommen.html" target ="showframe">Frame b</a><br><a href ="testeside.htm" target ="showframe">Frame c</a></td><td><iframe src="velkommen.html" style="border:1px black solid;" name="frame2" scrolling="yes" frameborder="no" align="center" height = "300px" width = "350px"></iframe></td></tr></table></html>And the problem I have is that when I click on a linkthe page don't appear in the 2 frame. But it appear likea new side comes (not in a new "window").I'm not that good in english, but hope someone understand! Link to comment Share on other sites More sharing options...
Little Goat Posted April 14, 2006 Share Posted April 14, 2006 since your target is showframe: <a href ="index.html" target ="showframe">Frame a</a><br><a href ="velkommen.html" target ="showframe">Frame b</a><br><a href ="testeside.htm" target ="showframe">Frame c</a>your iframe's name needs to be showframe:<iframe src="velkommen.html" style="border:1px black solid;" name="frame2" scrolling="yes" frameborder="no" align="center" height = "300px" width = "350px"></iframe>needs to be:<iframe src="velkommen.html" style="border:1px black solid;" name="showframe" scrolling="yes" frameborder="no" align="center" height = "300px" width = "350px"></iframe> LG Link to comment Share on other sites More sharing options...
martemelon Posted April 14, 2006 Author Share Posted April 14, 2006 since your target is showframe:your iframe's name needs to be showframe:needs to be:<iframe src="velkommen.html" style="border:1px black solid;" name="showframe" scrolling="yes" frameborder="no" align="center" height = "300px" width = "350px"></iframe> LG <{POST_SNAPBACK}> Thank you, thank you sooo much! It did work! Link to comment Share on other sites More sharing options...
martemelon Posted April 14, 2006 Author Share Posted April 14, 2006 Thank you, thank you sooo much! It did work!<{POST_SNAPBACK}> I have to ask one more thing. The frames is in center,how can it not be? Link to comment Share on other sites More sharing options...
Little Goat Posted April 14, 2006 Share Posted April 14, 2006 do you know css?text-align:center,left, or rightLG Link to comment Share on other sites More sharing options...
martemelon Posted April 14, 2006 Author Share Posted April 14, 2006 do you know css?text-align:center,left, or rightLG<{POST_SNAPBACK}> No, I don't know css.But thanks, once again, for you help! Link to comment Share on other sites More sharing options...
Little Goat Posted April 14, 2006 Share Posted April 14, 2006 in the style attribute of the frame add this: text-align:center; LG Link to comment Share on other sites More sharing options...
martemelon Posted April 14, 2006 Author Share Posted April 14, 2006 in the style attribute of the frame add this:text-align:center; LG <{POST_SNAPBACK}> I'm not very good in this kind of things,where do I put it?Here are the code it shall be putted into:<html><table border="0"><tr><td><a href ="index.html" target ="showframe">Enter</a><br><a href ="velkommen.html" target ="showframe">Velkommen</a><br><a href ="testeside.htm" target ="showframe">Testeside</a></td><td><iframe src="velkommen.html" style="border:1px black solid;" name="showframe" scrolling="yes" frameborder="no" align="center" height = "400px" width = "450px"></iframe></td></tr></table></html> Link to comment Share on other sites More sharing options...
Little Goat Posted April 15, 2006 Share Posted April 15, 2006 <td><iframe src="velkommen.html" style="border:1px black solid; text-align:center;" name="showframe" scrolling="yes" frameborder="no" align="center" height = "400px" width = "450px"></iframe>[/code]<{POST_SNAPBACK}> gray is what to take out, red put in.LGEdit:you can also put left or right in the red code instead of center. or leave it out. Link to comment Share on other sites More sharing options...
martemelon Posted April 15, 2006 Author Share Posted April 15, 2006 gray is what to take out, red put in.LGEdit:you can also put left or right in the red code instead of center. or leave it out.<{POST_SNAPBACK}> I tried what you said, but it didn't work ..Now the code is:<html><table border="0"><tr><td><a href ="index.html" target ="showframe">Enter</a><br><a href ="hovedside.html" target ="showframe">Velkommen</a><br><a href ="testeside.htm" target ="showframe">Testeside</a></td><td><iframe src="hovedside.html" style="border:1px black solid; text-align:left;" name="showframe" scrolling="yes" frameborder="no" height = "400px" width = "450px"></iframe></td></tr></table></html> What is wrong? Link to comment Share on other sites More sharing options...
Err Posted April 16, 2006 Share Posted April 16, 2006 Lets try: <html> <head> <title>Test Page</title> </head><body><table border="0"> <tr> <td> <a href ="index.html" target ="showframe">Enter</a><br> <a href ="hovedside.html" target ="showframe">Velkommen</a><br> <a href ="testeside.htm" target ="showframe">Testeside</a> </td> <td style="text-align:left;"> <iframe src="hovedside.html" style="border:1px black solid;" name="showframe" scrolling="yes" frameborder="no" height = "400px" width = "450px"></iframe> </td> </tr></table></body></html> If that doesn't work I don't know what will.All I did was add a text-align:left; to the <td> where the <iframe> is.Also, some good things to note:A standard web page has the following mark-up: <html> <head> <title></title> </head><body>Your Content here</body></html> The border="0" that you have in your tablereally means nothing because that value is automatically 0. Only wheneveryou are going to have a border on it would I suggest that you havethat code there.Well, I hope it all works out for you Link to comment Share on other sites More sharing options...
martemelon Posted April 16, 2006 Author Share Posted April 16, 2006 It didn't work! What is wrong? This is really weird.. Link to comment Share on other sites More sharing options...
Err Posted April 16, 2006 Share Posted April 16, 2006 Is this what you wanted? : <html> <head> <title>Test Page</title> </head><body><table> <tr> <td> <a href ="index.html" target ="showframe">Enter</a><br> <a href ="hovedside.html" target ="showframe">Velkommen</a><br> <a href ="testeside.htm" target ="showframe">Testeside</a> </td> </tr> <tr> <td style="text-align:left;"> <iframe src="hovedside.html" style="border:1px black solid;" name="showframe" scrolling="yes" frameborder="no" height = "400px" width = "450px"></iframe> </td> </tr></table></body></html> Well, I assumed that you were trying to say that you wanted thelinks on top of the frame, so the frame is all the way to the left side.Did you still want those links to the left of that frame? Or is it okay whereit is? Link to comment Share on other sites More sharing options...
martemelon Posted April 16, 2006 Author Share Posted April 16, 2006 This was better, thank you really much! Now it is just like Iwanted it! Thank you! Link to comment Share on other sites More sharing options...
Err Posted April 16, 2006 Share Posted April 16, 2006 M'kay. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now