SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2002
    Location
    England
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Replacing frames

    Can a frames effect be done using pure CSS? I'm doing a side navigation bar and a main page. I know I can do this using two div elements but this means the sidebar has to be reloaded every time. Is there a way to leave the sidebar div displayed constantly and have the links connected to the main div?

    Also, is there a way to get rounded corners on a div without using tables (as I thought the use of tables for layout purposes is being discouraged - is this correct?)?

    Cheers.

    James.

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, without reloading the page, I think your only option is to have ALL the content for the 'pages' in variables, and use the innerHTML property (not sympatico with some browsers though) since the DIV object cannot accept a SRC. Or you could have all the divs on the page, and only one at a time displayed (toggling between display:none and display:block)

    Or just use an IFRAME

    Dunno 'bout the rounded corners
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev





Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •