Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / October 2004



Tip: Looking for answers? Try searching our database.

XML, Frames and CSS

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nick - 28 Oct 2004 16:01 GMT
I would like to move a frame based website to a non-framed based site
using CSS.

The problem relates to having an equivalent of frames and targets and
moving them to CSS.

The site has two frames. One on the left for navigation, the other on
the right for information. Users it to navigate on the lhs and pick
out a report, the report then gets displayed on the rhs. All fairly
normal.

Currently the lhs contents are all xml files, as is the rhs. Style
sheets are attached to the xml files to render them into html. I want
to move to the next step and render using CSS. Setting up the CSS
style sheet isn't a problem.

The problem is with the navigation.

Currently it is like this.

In the sidebar (lhs) frame there is html like this.
<h3>Folders</h3>
   <ul>
    <li>
    <a href="TESTADS/Index.xml" target="sidebar">TESTADS</a>
    </li>
   </ul>

The next index file drills into to the reports, and works in the same
way.

Finally, the reports are selected as follows:

   <ul>
       <il>
           <a href="NickTest_20041028.xml" target="main">20041028</a>
       </il>
   </ul>

Here, the target is the rhs or main window.

With Frames this is fine, but it doesn't look good.

I would like to do it with CSS.

Can't find anything by searching, but how do I target files to the CSS
equivalent of frames.

Nick
Brian - 28 Oct 2004 20:15 GMT
> I would like to move a frame based website to a non-framed based site
> using CSS.
>
> The problem relates to having an equivalent of frames and targets and
> moving them to CSS.

You're using the wrong tools. CSS is only for styling content, with the
exception of content-before and content-after properties. And CSS is
optional per the spec, so you cannot rely on it for anything.

> The site has two frames. One on the left for navigation, the other on
> the right for information. Users it to navigate on the lhs and pick
> out a report, the report then gets displayed on the rhs. All fairly
> normal.

And easily done with standard HTML 4.01/strict markup.

> Currently the lhs contents are all xml files, as is the rhs. Style
> sheets are attached to the xml files to render them into html.

This is done on the server end, right?

> I want to move to the next step and render using CSS. Setting up the
> CSS style sheet isn't a problem.
[quoted text clipped - 10 lines]
>     </li>
>     </ul>

The markup looks more or less solid, though I don't have a url to see
the context. (hint hint)  You need only put that markup in the same file
as the content, and lose the target attribute. If you want to keep the
benefit of writing the navigation once for a whole site, then look into
how to include one file in another.

http://www.allmyfaqs.com/faq.pl?Include_one_file_in_another

Signature

Brian  (remove "invalid" to email me)

Pierre Goiffon - 29 Oct 2004 14:11 GMT
>> I would like to move a frame based website to a non-framed based site
>> using CSS.
>>
>> The problem relates to having an equivalent of frames and targets and
>> moving them to CSS.

> You're using the wrong tools. CSS is only for styling content

No : to have an equivalent of a frame without the frame tags, you need an
inclusion technique, _AND_ fixed positionning. That least is done via CSS.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.