Topic: Some CSS questions ! (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=9572" title="Pages that link to Topic: Some  CSS questions ! (Page 1 of 1)" rel="nofollow" >Topic: Some  CSS questions ! <span class="small">(Page 1 of 1)</span>\

 
dyZ440
Bipolar (III) Inmate

From: selangor
Insane since: Oct 2001

posted posted 12-15-2002 18:46

There is a method in html using frames where u have a left frame with a menu of links when clicked will change only yhe contents in the center or any intended frame.

I was wondering if i could do that with CSS ?


Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 12-15-2002 20:30

That's done with the "target" attribute of the <a> tag.

dyZ440
Bipolar (III) Inmate

From: selangor
Insane since: Oct 2001

posted posted 12-16-2002 00:40

oh .. ok lets see if i got it right ..

.leftdiv { (all the codes here) }

then at a link i use this

<a href="" target=leftdiv></a>

that means clicking on the link will change the contents in lefidiv right ?


an i have another problem .. i cant seem to get the background-image to work for CSS. Cant i have words in leftdiv and then have background-image as well ?

the image always dont appear ...


DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 12-16-2002 01:14

afraid not. the target attribute works for windows and frames and that's about it.

That would require javascript, and depending on how large a scale you wanted to implement this, may or may not be a wise course of action. It would mean all the content that would be "loaded" into the div would have to be loaded at once, when the page is laoded, and different DIV's are simply made visible and invisible.


look in the FAQ for hide/show layers...should turn up some useful stuff.

{{edit - more specifically, go here - http://faq.ozoneasylum.com/FaqWiki/shownode.php?id=751&sortby=rating }}



[This message has been edited by DL-44 (edited 12-16-2002).]



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu