The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS simulate frames

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #22533

    Hello All,
    I am pretty much new to CSS and I was wondering if there is a way to simulate a frames layout using only CSS. For example; if I have two DIV’s, One being a left positioned side-bar with a bunch of links listed and the other main DIV floated to the right. Can I have any of the link HTML page(s) render in the main DIV as can be done using frames?
    Any help would be appreciated.


    Thanks Edwin.
    I do not have PHP. I will try the Java and see how it performs. I was kindda hoping that there would be a much easier way of doing it though. Its just that I was trying to avoid frames completely and use 100% CSS but my research is telling me that there is no way of doing it using ONLY css. Seems that frames do come in handy I guess.
    Your input is appreciated.

    Chris Coyier

    That’s a great solution Edwin!

    I think frames is a really outdated solution for something like this, there are tons of ways of handling it without using them. If the content in each of the main areas is small enough that it would be reasonable to load them all at once, you could use something like the tabbed box example I posted:

    Instead of literally having "tabs", you could use CSS positioning to put the selectors in your left sidebar, but the content would still swap out instantly like in the example.


    Thanks Chris. I’ll try that as well as the java solution. :P

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.