37 users online (0 members and 37 guests)  

Thread: frames vs. css


  Results 1 to 4 of 4

Related

  1. frames    Forum: HTML Forum
    Replies: 3
  2. frames    Forum: HTML Forum
    Replies: 11
  3. frames help    Forum: HTML Forum
    Replies: 2
  4. frames HELP-please?    Forum: HTML Forum
    Replies: 5
  5. Frames    Forum: HTML Forum
    Replies: 2
  1. #1
    cbcampbell's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2003
    Location
    Beeville, TX
    Posts
    2

    frames vs. css

    can anyone help me figure out how to direct my navigation bar links to display their content to a certain box, id, or class area? with frames......you told a link to TARGET to the name of the area...how do you do this with CSS?

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hi there. Welcome to the forums.

    You can't. CSS is designed to separate style from content, and its not really designed to control navigation or content in this way.

    You could look into using iframes (yuk) or maybe into a server-side solution.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    benzden's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Feb 2002
    Location
    San Antonio, Texas
    Posts
    652
    Thinking outside the box, here's a simple way to fake out the computer (and the user) into thinking you've got some sort of frames thing going. Here's one of my templates for displaying images in a framed-like box on a page:

    <CENTER><TABLE WIDTH=720 NAME=03309 BORDER=0 CELLSPACING=3 CELLPADDING=3>
    <TR VALIGN=top><TH>
    <A HREF=#03309 onClick="document.poPhoto.src='pic1.jpg'">one</A>
    בעב <A HREF=#03309 onClick="document.poPhoto.src='pic2.jpg'">two</A>
    <P>(more text explaining the photos and/or display process goes here)
    </TH><TH WIDTH=380 HEIGHT=285><A HREF=#03309
    onClick="document.poPhoto.src='.jpg'"><IMG NAME=poPhoto BORDER=1
    ALT="description of default photo" SRC=.jpg></A>
    </TH></TR></TABLE></CENTER>


    Change the sizes and positioning of the object frame picture, NAME=poPhoto, to what you want. The outside the box trick is to convert the text, including icons and images, that's to display inside the frame to .jpg files. So long as not a lot of changes are made to them over time, who's to know the difference between them and "real" text scrolling inside the frame?! (Scrolling inside the frame isn't the intent of that template and I'm not sure of the code to do so but am sure QuietDean does - if that's possible with an image instead of with text. Otherwise, the technique would only look good with small amounts of text that don't need scrolling.)
    Last edited by benzden; 04-25-2003 at 08:45 AM.

  4. #4
    cbcampbell's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2003
    Location
    Beeville, TX
    Posts
    2
    thanks a lot! great help!



Tags for this Thread