473,805 Members | 2,268 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Frames, Framesets and CSS

x


Greetings everyone:

I am trying to get CSS to work with a framed web page, but I cannot.

Does anyone know the syntax required in a CSS specification
to specify attributes of the frames?

Ideally, I want to be able to change the border thickness, colour, etc.

Additionally, does anyone know of some comprehensive examples/tutorial
out there about how to use CSS?

Thanks in advance for your assistance.

-*- a puzzled and somewhat frustrated newcomer to CSS -*-
This is what I have for the html (named sample.html):

vvvvvvvvvvvvvvv vvvvvvvvvvvvvvv vvvvvvvvvvvvvvv vvvvvvvvvvvvvvv vvvvvvvvvv
<!doctype html public
"-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/frameset.dtd"
<html>
<head>
<link href = "sample.css "
rel = "stylesheet "
type = "text/css"

</head>
<frameset rows = "50%,*" cols = "50%,*">
<frame name = "ul">
<frame name = "ur">
<frame name = "ll">
<frame name = "lr">
</frameset>
</html>

^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^

and here is the style sheet (named sample.css):

vvvvvvvvvvvvvvv vvvvvvvvvvvvvvv vvvvvvvvvvvvvvv vvvvvvvvvvvvvvv vvvvvvvvvv

FRAME
{
bordercolor : #ff0000
frameborder : yes
border : 50
}
FRAMESET
{
bordercolor : #00ff00
frameborder : yes
border : 25
}

^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^
Jul 20 '05
14 33816
On Fri, 02 Apr 2004 15:14:36 +0100, Steve Pugh <st***@pugh.net > wrote:

Really? So you looked at the home page of the CSS 2 spec?
http://www.w3.org/TR/CSS2/
And you looked at the table of contents part way down the page (linked
to from every page of the spec)?
http://www.w3.org/TR/CSS2/cover.html#minitoc
And you didn't see the item in the ToC that says
"Appendix A. A sample style sheet for HTML 4.0"
Believe it or not. My eyes must be going, there it is. Damn.

(In my defense, that's a hell of a long list and with such tight spacing
it all kind of runs together after a while...)
The changes between this version and the CSS 2.1 version I posted
earlier can be educational.


Indeed.

Thanks again.
Jul 20 '05 #11
On Fri, 02 Apr 2004 09:18:17 -0500, Neal <ne*****@spamrc n.com> wrote:
On Fri, 02 Apr 2004 15:14:36 +0100, Steve Pugh <st***@pugh.net > wrote:

Really? So you looked at the home page of the CSS 2 spec?
http://www.w3.org/TR/CSS2/
And you looked at the table of contents part way down the page (linked
to from every page of the spec)?
http://www.w3.org/TR/CSS2/cover.html#minitoc
And you didn't see the item in the ToC that says
"Appendix A. A sample style sheet for HTML 4.0"


Believe it or not. My eyes must be going, there it is. Damn.

(In my defense, that's a hell of a long list and with such tight spacing
it all kind of runs together after a while...)


Ctrl-F has its uses. (In Opera and IE anyway - doubtless all other
browsers have their equivalent.)

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #12
Steve Pugh <st***@pugh.net > wrote:
If you have Mozilla installed find html.css and have a look. That's
the default stylesheet used to render pages in that browser. Then look
at quirks.css and weep.


Just to elaborate, quirks.css is *not* the stylesheet for QuirksMode
(that would be too obvious). QuirksMode is hard coded - quirks.css is
the stylesheet for "almost standards" mode. The next (7.5) version of
Opera will also feature 3 modes instead of two, and its equivalent
file is "browser.cs s".

--
Karl Smith.
Jul 20 '05 #13
go************@ kjsmith.com (Karl Smith) wrote:
Steve Pugh <st***@pugh.net > wrote:
If you have Mozilla installed find html.css and have a look. That's
the default stylesheet used to render pages in that browser. Then look
at quirks.css and weep.
Just to elaborate, quirks.css is *not* the stylesheet for QuirksMode
(that would be too obvious). QuirksMode is hard coded - quirks.css is
the stylesheet for "almost standards" mode.


Are you sure? quirks.css contains some stuff (e.g. non-inheritence of
font sizes into tables) that's only done in Quirks mode not Almost
Standards mode.
The next (7.5) version of
Opera will also feature 3 modes instead of two, and its equivalent
file is "browser.cs s".


I've got 7.23 and 7.5p3 and I can't find a browser.css anywhere on my
system. Confused.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>
Jul 20 '05 #14
Steve Pugh <st***@pugh.net > wrote:
go************@ kjsmith.com (Karl Smith) wrote:
Steve Pugh <st***@pugh.net > wrote:
If you have Mozilla installed find html.css and have a look. That's
the default stylesheet used to render pages in that browser. Then look
at quirks.css and weep.


Just to elaborate, quirks.css is *not* the stylesheet for QuirksMode
(that would be too obvious). QuirksMode is hard coded - quirks.css is
the stylesheet for "almost standards" mode.


Are you sure? quirks.css contains some stuff (e.g. non-inheritence of
font sizes into tables) that's only done in Quirks mode not Almost
Standards mode.


Whoops. It's the other way around, "almost standards" is hard-coded
and quirks.css contains additional quirks to get from there to full
"QuirksMode ".

I asked about this file years ago when I first discovered it, and
young Christopher Hoess told me it was part, but not all of
QuirksMode. I.e., I couldn't eliminate QuirksMode just by altering
quirks.css.

The next (7.5) version of
Opera will also feature 3 modes instead of two, and its equivalent
file is "browser.cs s".


I've got 7.23 and 7.5p3 and I can't find a browser.css anywhere on my
system. Confused.


Yes I was confused, sorry. Apparently all three modes are hard-coded
in Opera.

If created by the user, browser.css acts the same as a user stylesheet
except not the same (cascades after the user stylesheet and before the
hard-coded "stylesheet " - same place in the cascade as Mozilla's
quirks.css). I didn't know it had to be user created, and being easily
confused, I misunderstood its function. I've found this explanation:

http://groups.google.com/groups?q=+%...4ax.com&rnum=7

--
Karl Smith.
Jul 20 '05 #15

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

Similar topics

2
1489
by: Frances Del Rio | last post by:
where I work they support Netscape 4.7, we use frames a lot, but framesets that look fine in IE look awful in N 4.7, can someone shed some light on what the deal is w/frames in N 4.7? in N 4.7 frames are different sizes from what they're supposed to be, etc.. thank you very much.. Frances Del Rio NYC
95
5788
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 a way it would be good. As you all are among the sharpest pencils in the bag, let me ask: Do you...
7
4262
by: Peter | last post by:
I have 3 frames on a web page and using C# <frame name="left" src="SideMenu.aspx" scrolling="no" noresize style="BACKGROUND-COLOR: #ffffcc"> <frameset rows="16%,84%"> <frame name="rtop" src="TopMenu.aspx"> <frame name="rbottom" src="MainScreen.aspx"> </frameset> I am trying to display another page in the rbottom frame when I click on the link in the left frame. How do I do that? Does anyone has an example?
2
1328
by: K.C. Brown | last post by:
I'm trying to finish up an app that uses a left and right frame extensively. The left frame contains a dynamically built menu and the right is used as the target for links selected from the left. Everything runs pretty well except for a 3rd party dll that is called when certain restricted aspx pages are loaded to perform a 2 factor authentication that throws a runtime error on line 105 'x' is not defined every time it is enabled when...
5
1190
by: Michael | last post by:
I'm new to ASP.Net but been a programmer for decades. I'm doing a new App and am intending to use an Item Listing Frame alongside a Data Input Frame (I hate in-Grid editing). I figure when I hit Save on the Input Frame the List will update (and who cares how long it takes) while the Entry Frame presents you with a blank form ready to go almost immediately. I've looked around for information/tutorials on Frames in .Net and it's pretty...
4
1785
by: lashnjo | last post by:
hello, is it possible to click on one frameset, (ex. an image) and then for it to load a new frame in two different framesets and a new one in itself
2
1550
by: Ralph | last post by:
I'm upgrading and rewriting an old site to asp.net 2.0. Most definately want to replace frames and framesets with Masterpages. There was one and really only one feature of frames that I prefered. It seemed with frames I could much easier limit people to one point of entry to my site. That being index.html. Assuming users didn't have java script disabled I could make sure that even if a user bookmarked somepage in my site they always...
14
7067
by: Mark | last post by:
Hi Guys, I am very new to ASP.NET world. I need to create three frames. One at the top, one on the left and another on the right side. I don't know how to do it. So please help me with it. I'll appreciate any help/example you can provide. I am using visual studio 2005. Thanks, Mark
0
10617
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10364
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9186
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7649
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6876
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5545
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4328
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3849
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.