ClioSport.net

Register a free account today to become a member!
Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • When you purchase through links on our site, we may earn an affiliate commission. Read more here.

CSS / hyperlink help needed!



  Not a Clio
Say i have the page divided into 3

i.e.

Left menu, CENTER, Right menu

In my right menu i have a hyperlink, how do i display the contents of the link e.g. "link.html" in CENTER?
 
Assuming you are using frames and have named them, then you need to use the "target" of the "a" tag. Er. that doens't make much sense.

like this:

<a href="link.html" target="center">clicky</a>
 
  Not a Clio
i'm not using frames. I have the left, center and right defined in the CSS. I guess it emulates frames.

The CSS is at work, i'll paste the code tomorrow and maybe that will help!

EDIT:

Think i found how to do it!

This is EXAMPLE code, not the code I'm using:

<div class="left">
<div class="inner">
<h2>Menu</h2>
<div class="menu">
<a href='/frames_with_css/'>Frontpage</a>
<a href='http://www.soiland.no/frames_with_css/background'>Background</a>

<a href='http://www.soiland.no/frames_with_css/menu_at_top'>Menu at top</a>
<a href='http://www.soiland.no/frames_with_css/source'>Source</a>
<a href='http://www.soiland.no/frames_with_css/php'>Php</a>

<a href="simple">Simple example</a>
<a href="scroll">Scroll example</a>
</div>
</div>
</div>

The inner is my center, so I assume all i need to do is just stick <div class="center"> in and close the div. Will have a play tomorrow :D
 
Hmm, I didn't think you could do that with css. Unless you have your menu code on every page. But I may be wrong. You may also be able to use javascript and the div.innerHTML property (?) perhaps.

(I agree that frames are evil by the way!) You could put an iframe in the middle of your page too.
 
CSS1 or 2 can't target links into another area on the page. Might be able to in CSS3, but hardly any browsers fully support CSS3. Frames and tables are evil for layouts ;)
 

Red Cup

ClioSport Club Member
  Focus RS
You duplicate the page and change the center content to match with what the page is about.

ie. on here when you change page the whole browser window reloads but the menus stay the same.

If you don't want to have the navigation on each page you'll need to use a server side include via a web scripting language like PHP or ASP.
 


Top