div layout question

The geek forum. PHP, Perl, HTML, hardware questions etc.. it's all in here. Got a techie question? We'll sort you out. Ask your questions or post a link to your own site here!

div layout question

Postby Mr. Rogers » Thu Jul 07, 2005 6:40 pm

I'm messing with a div layout, I haven't really used these much before.

-------------------------------
<div id="logo" style="position: absolute; width: 100%; height: 100px; top: 0px; left: 0px;">
<font size="20">Jim's Test Site</font>

</div>

<div id="nav" style="position: absolute; width: 200px; top: 100px; left: 0px;">
Nav
</div>

<div id="links" style="position: absolute; width: 150px; top: 100px; right: 0px;">
<a href="http://www.google.com" target="content">Google</a>
</div>

<div id="content" style="position: absolute; top: 100px; left: 200px; right: 150px;">
Content.
</div>
----------------------------

I'm trying to get that link in the "links" section, to load in the "content" section. I'm not really sure how to do that though.
User avatar
Mr. Rogers
 
Posts: 1512
Joined: Sat Sep 06, 2003 10:23 pm
Location: Chicago, IL

Postby shooraijin » Thu Jul 07, 2005 7:32 pm

Try doing that with an <iframe> instead. <div>s aren't really containers in that sense. Then you can use JavaScript to manipulate the <iframe>.
"you're a doctor.... and 27 years.... so...doctor + 27 years = HATORI SOHMA" - RoyalWing, when I was 27
"Al hail the forum editting Shooby! His vibes are law!" - Osaka-chan

I could still be champ, but I'd feel bad taking it away from one of the younger guys. - George Foreman
User avatar
shooraijin
 
Posts: 9927
Joined: Thu Jun 26, 2003 12:00 pm
Location: Southern California


Return to Computing and Links

Who is online

Users browsing this forum: No registered users and 150 guests