Thread: frames vs. css
Results 1 to 4 of 4
04-24-2003, 10:50 PM #1
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?
04-25-2003, 05:12 AM #2
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?
04-25-2003, 08:41 AM #3
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>
<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>
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.
04-25-2003, 09:59 AM #4