Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-20-2012, 11:13 AM   PM User | #1
Mowinckel
New to the CF scene

 
Join Date: Apr 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Mowinckel is an unknown quantity at this point
Iframes

Hello.
I am having a problem with iframes. Just starting to learn this feat, so I apologize for any apparent code-idiocy.

Here's a screenshot:


And the code I deem important for the problem:
<asp:ContentPlaceHolder ID="MainContent" runat="server"/>
<!--- Menu --->
<iframe id="menu" name="menuWindow" src="menu.aspx" height="224px" width="113px" frameborder="0" scrolling="no" ></iframe>
<iframe id="main" name="mainContent" src="default.aspx" height="640px" width="672px" frameborder="0" scrolling="no" ></iframe>

The menu.aspx:
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<a id= "menuNews" href="default.aspx" target="mainContent"></a>
<a id= "menuInfo" href="info.aspx" target="mainContent"></a>
<a id= "menuContact" href="contact.aspx" target="mainContent"></a>
<a id= "menuLinks" href="links.aspx" target="mainContent"></a>
</asp:Content>

The relevant CSS:
#main
{
background-image:url("../graphic/content.png");
height:640px;
width:672px;
position:absolute;
left:25%;
top:30%;
}

#menu
{
position:absolute;
top:30%;
left:15%;
}


My question is, why does it keep copying itself and why isn't the default.aspx not showing.
Furthermore, when I click a link they are showed in the menu iframe and not the target I defined.

Thanks in advance,
Mowinckel

Last edited by Mowinckel; 04-20-2012 at 11:17 AM..
Mowinckel is offline   Reply With Quote
Reply

Bookmarks

Tags
asp.net, css, iframes

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:06 AM.


Advertisement
Log in to turn off these ads.