1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

css question

Discussion in 'HTML, Graphics & Programming' started by suki, 28 Feb 2006.

  1. suki

    Hitman

    Joined: 31 Oct 2003

    Posts: 526

    Hi

    how can i make a link open up in a div instead of the whole page.
    some people say dont use frames in css,
    i've been told about something called domcollapse.

    but never used javascript etc

    any ideas

    thanks
     
  2. Mr_L

    Mobster

    Joined: 28 Jan 2005

    Posts: 3,732

    Location: Worcester

    A quick google found domCollapse, which looks quite simple to implement. I was a bit worried that if javascript is disabled then you wouldn't be able to see the hidden content but, it seems that all the content is displayed if that is the case.

    I think it would definitely be better than using frames, which the majority of people on here would advise you against. You could always dynamically link in content using PHP, ASP or something similar.