View Full Version : Link problem...Please help me!


Orange Juice
04-13-2004, 01:49 AM
This is my site: http://www.studiotruth.bravehost.com/

(by the way, I just started on it and I know it looks crappy and no links work)

But anyway, I am trying to target my links. I am using a CSS layout from this site. How do I do this? Here is my code for the whole thing so far:

<html>
<head>
<title>Studio Truth May 2004</title>
<style type="text/css">

body
{ margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
padding-left: 0;
padding-right: 0;
}

#header {
margin: 20px;
padding: 10px;
height: 100px;
}
#left {
position: absolute;
left: 15px;
top: 160px;
width: 200px;
}
#center {
top: 0;
margin-left: 230px;
margin-right: 15px;
}
</style>
</head>

<body>

<div id="header">

<img src="mayheader.jpg" border="0">

</div>



<div id="left">

<br><br><br>
<a href="home.html">home</a><br><br>
<a href="pictures.html">pictures</a><br><br>
<a href="poems.html">poems</a><br><br>
<a href="extras.html">extras</a>

</div>




<div id="center">

MAIN

</div>

</body>
</html>


I tried putting target="center" after my link urls but this just made it open a new window. Please help!!

thanks,
o.j.

kicker91
04-13-2004, 01:53 AM
You can't target divs. Only iframes. ;)

Orange Juice
04-13-2004, 01:54 AM
I'm confused now......lol

kicker91
04-13-2004, 01:57 AM
Assuming that you want the page from each link to appear inside the <div> tag, you cannot do that.

Iframes are another webpage on a webpage. This is the iframe tag:

<iframe src="page.html" height="200" width="400" name="content" frameborder="0"></iframe>

Orange Juice
04-13-2004, 01:59 AM
OK I get that, but how do I move the iFrame around so it looks my site now?

kicker91
04-13-2004, 02:05 AM
Well, you need to create a page for each section of your site. Just put the iframe where the div was, and put the page you want displayed first in src="".