Forum Moderators: not2easy

Message Too Old, No Replies

Swapping DIVs?

The possibilities... or impossibilities... of switching content...

         

mcg33

3:01 am on Jan 12, 2009 (gmt 0)

10+ Year Member



So... I'm farily new to CSS and have been trying to wrap my head around this... I was hoping someone could light the way for me.

I'm working on a site for myself <edited>. I would like to avoid having my navigation open up a new .html for every section. The content on the initial loadup is its own div indexed ontop of everything else.

The big question... can I have multiple clicks worth of content loaded beforehand and swapped (hidden/visible?) when the desired link has been clicked USING CSS? Or will I have to teach myself a bit of JavaScript as well :)

Thanks!
Matt

[edited by: tedster at 9:00 am (utc) on Jan. 12, 2009]
[edit reason] no personal urls, please [/edit]

tedster

9:08 am on Jan 12, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to the forums, mcg33.

Changing the visibility of a div does require a very minimal amount of JavaScript - that's what changes the original display: rule that loads with the page. Here's one thread in our Javascript forum that discusses the basics:

[webmasterworld.com...]

You can find more help by using Site Search [webmasterworld.com].