473,569 Members | 2,617 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CSS acting like frames?

Is there a way to allow css to act like a simple 2 frame setup.

I want a fixed navigation header on all pages, website itself has 100+
pages, each is multi paged with sub pages.

So what I could do in frame is have 2 frames and clicking in the header
frame would load a seperate html page in the main frame, therefore not
having to repeat the header code 100+ times, can this be done using css?

I know css can use a float or fixed header position, even using margins to
trick ie into making a header section fixed. But this still seems like I
would have to repeat the header css on each page, it would just be more
fluid if the header always stayed loaded as it does using frames.
Or is this scenario not going to work in css YET?

BTW each page is header on top, fixed height and width, and main body is
scrollable up/down.

TIA (Thank-you In Advance)
--
ka*******@hotma il.comcomcom
-=< FreeWare ForEver >=-
Mar 11 '06 #1
13 2168
No css doesn't really work like this. If your web site is on a unix
machine then you probably want to use a server side include (SSI). You
use some simple programing in your page to call another document to be
inserted. The page is assembled by the server from multiple files
before the user gets it.

Do a search on SSI or check this random site:
http://www.htmlgoodies.com/beyond/we...le.php/3473341

Mar 12 '06 #2
Or say you should give PHP include() a try.

Mar 16 '06 #3
In article <11************ *********@i40g2 000cwc.googlegr oups.com>,
"aa******@gmail .com" <aa******@gmail .com> writes
Or say you should give PHP include() a try.


The truth is that any modern web platform will give you a way to include
files on the server side. CGI, ASP, ASP.NET, Cold Fusion, PHP, you name
it, there's loads of them.

There's really very little justification for frames when web servers are
so powerful nowadays.

--
Alan Silver
(anything added below this line is nothing to do with me)
Mar 16 '06 #4
This is exactly what I am trying to find out as I jump into CSS for the
first time. (First impression: about 30% of all CSS coding is devoted to
getting round the non standard quirks of IE...)

I want a block of links which will act as a navbar, which load ONE frame
without flickering etc as they themselves, and their images, are
reloaded. Without having to be retyped and maintained in every page of
the site. That's what frames are good at.

I'm looking at the iFrames element (or do I mean selector) at the
moment. It seems to be a CSS equivalent of frames, but somewhat more
complicated, and there are dire warnings about it not working the same
in all browsers / the usual linking and printing problems with frames. I
suspect the warnings about "not all browsers" were written a couple of
years ago though and would welcome peoples' thoughts on the current
worth of iFrames. Or some healthy mocking and heavy hints about "look at
X, kid."
There's really very little justification for frames when web servers
are so powerful nowadays.


I think you've got a purist, professional attitude there sir. I'm an
amateur who wants to spruce up an old home site. I don't have the time
to learn Unix, SSI stuff (heck, I don't have much time to learn CSS ) so
I want a quick easy fix. I don't think my ISP's servers do stuff like
that for free anyhow, and I'll be developing my CSS scripts (using
Notepad of course) on a laptop running Windows. No hope for me, is
there? ;)
--
Nemo
Apr 1 '06 #5
> I'm looking at the iFrames element (or do I mean selector) at the
moment. It seems to be a CSS equivalent of frames, but somewhat more
complicated, and there are dire warnings about it not working the same
in all browsers / the usual linking and printing problems with frames. I
suspect the warnings about "not all browsers" were written a couple of
years ago though and would welcome peoples' thoughts on the current
worth of iFrames. Or some healthy mocking and heavy hints about "look at
X, kid."


The iframe does not have anything to do with CSS. If you want to use
frames or iframes then go ahead. If you are doing it for convience sake
in building the webpage, I would suggest a good web editor that
maintains your site (and navbar). I think this works well and doesn't
add crappy frames to your site. I think you are discounting the
suggestions of the server side includes though. If you look at the link
I gave you can see that it is very simple to do some very powerful
things.

I'm no expert so feel free to correct me if I've made a mistake or have
an opionion that needs fixing. LOL

Apr 2 '06 #6
On Sat, 1 Apr 2006 20:17:07 +0100, Nemo <Ne**@splurge.o rg> wrote:

There's really very little justification for frames when web servers
are so powerful nowadays.
I think you've got a purist, professional attitude there sir. I'm an
amateur who wants to spruce up an old home site. I don't have the time
to learn Unix, SSI stuff (heck, I don't have much time to learn CSS ) so
I want a quick easy fix. I don't think my ISP's servers do stuff like
that for free anyhow,


Your best bet for handling the common markup in each page would be
preprocessing. I use a small, old, simple (and free) command-line
preprocessor called Orb, but there are probably better (free) ones
around.
and I'll be developing my CSS scripts (using
Notepad of course) on a laptop running Windows. No hope for me, is
there? ;)


Well, Notepad *is* a rather masochistic approach. ;-) At least try
upgrading to NoteTab (or one of the other text editors that get
recommended here from time to time.)

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Apr 2 '06 #7
I checked your SSI link, decided it DID look easy and a sensible
approach, but alas it seems my ISP doesn't support it unless I pay more
$$$ for a business style osting service. Ah well. I have learnt
something. Thank you, chaps

Nemo
Apr 2 '06 #8
Nemo wrote:
I checked your SSI link, decided it DID look easy and a sensible
approach, but alas it seems my ISP doesn't support it unless I pay more
$$$ for a business style osting service. Ah well. I have learnt
something. Thank you, chaps

Nemo


I had some problems which would be solved using SSI, but I use a free
website provided by my ISP.

What do they provide?
No SSI, no SS scripting, no databases - zero zilch, nil.

So I came across a great script by David Dorward which does the
includes for you on your PC.

It is written in Perl, so you need to download the Perl interpreter,
but once you have done that, it works like a charm.

David named it The Dolt - don't know why but a catchy name
Here is his site:
http://dorward.me.uk/software/dolt/

I have had some correspondence with him by emila and I have revised the
script a bit, so my version is also attached (if I figure out how to
attach in Google). The functionality is exactly the same, it just gives
a bit more info on the log.

Apr 3 '06 #9
I couldn't figure to how to attach a file so here is where you can
download my revised Dolt script
http://tandcl.homemail.com.au/dolt-3_0_1.zip

P.S. Can you attach a file in this forum and if so, how?

Apr 3 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1870
by: les | last post by:
Hello, I just wonder what are the implications to use frames to build portal. I've seen some sites that are quite fast with frames but I just wonder if there are hidden "costs". I've tried to use in the past and I run into a lot of problems when I worked with environment where there were frame and no frames pages. Please let me know if...
40
2891
by: JohnnyCJohnny | last post by:
Is it pretty safe to say that almost all web surfers now use browsers that are Frames compatible? What are most people using these days? IE? Thanks
7
2306
by: David Hayes | last post by:
I tried finding an answer on http://www.quirksmode.org/ without success. I am attempting a complicated Frames structure. I have made it work in IE, but not Netscape. I begin with three frames, where the two lower ones are within a Frameset within the master Frameset: 1111111111111111111
95
5660
by: Neal | last post by:
Of course, every frame site I've ever seen has reduced usability and all. We've been through this before. But as frameset is still a part of HTML, there must be some legitimate use for it, hmm? For most markup I know when it's useful and when it's not, but regarding table markup I sure know when it isn't good, but can't really come up with...
25
43294
by: Steal | last post by:
Hi at all I try to validate this page using the link: http://validator.w3.org/ but it return that this is not a valid HTML 4.01 page please where is it error? Steil <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <html> <head>
5
16569
by: Dfenestr8 | last post by:
Hi. I'm designing a site, and I'm trying find a way of browsing it without using frames, so I can test the <noframes> </noframes> tags. I use a linux mandrake 10 system, with KDE 3.2. Is there a browser for linux that doesn't use frames? Or is it possible to configure either firefox or konqueror to not use frames?
7
2977
by: dj Bass | last post by:
simple, they don't like things that restrict the server-side controls... and when it comes to frames, you need client side stuff and that stuff's up the asp.net strategy. right or wrong?
3
2415
by: Nish | last post by:
Is HTML frame is an old technology? Will the modern web application are developed using the HTML frames? Does all the browsers support them? Thank you for your suggestion, Nish
56
3790
by: Deepan HTML | last post by:
Hi All, Currently i am working in a framed environment where i have divided the window as 20% and 80% and the 20% is used for navigation purpose and right frame for displaying the orignal content. Now i want to Disable ad Enable the menu items which are placed in the left frame for navigation purpose. Can any of you input me with any idea...
0
7701
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7615
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7677
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1223
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.