Click to See Complete Forum and Search --> : CSS with Frames...


stmasi
06-16-2003, 11:01 AM
Can I use CSS to format frames?

In my html, I design the frames section with rows and columns, but I would like to use CSS to set height, width, borders, etc.

Is this possible?

Thanx.

Khalid Ali
06-16-2003, 01:50 PM
yes...don't see why its not..:-)

stmasi
06-16-2003, 02:11 PM
Well, when I attempt this, I do the following:

HTML
<frameset rows="50,*,50">
<frame name="top1" noresize scrolling="no" src="a.htm">
<frame name="mid1" noresize scrolling="no" src="b.htm">
<frame name="bot1" noresize scrolling="no" src="c.htm">
<noframes>
<body>
<p>This page uses frames.</p>
</body>
</noframes>
</frameset>

CSS
#top1 {
border-color: #000000;
border-style: solid;
border-width: 1px;
width: 100px;
}

#mid1 {
border-color: #000000;
border-style: solid;
border-width: 1px;
width: 100px;
}

#bot1 {
border-color: #000000;
border-style: solid;
border-width: 1px;
width: 100px;
}

When loading into browsers, I receive a different result with every single browser. None of which appear the way they should.

Any ideas?

Thanx.

Jona
06-16-2003, 02:22 PM
Add an ID attribute to your FRAME tags. The # in your CSS seems to work for IDs, not NAMEs.

Jona

stmasi
06-16-2003, 02:47 PM
Well, that puts me half-way there.

8^)>

It looks like that delivered me the borders in IE and partially in O, but nothing in NS or M.

Any ideas on how to make all browsers display it properly?

Thanx again.

Jona
06-16-2003, 02:51 PM
Do you have a link of some kind that we can view it in online to see what you've got and test it in all browsers?

Jona

stmasi
06-16-2003, 03:11 PM
Here ya go...

http://www.geocities.com/csstester/

Jona
06-16-2003, 03:13 PM
This is what I see in IE6...

Jona

Jona
06-16-2003, 03:16 PM
This is what I see in NS6.2...

Jona

Jona
06-16-2003, 03:24 PM
Originally posted by Jona
This is what I see in NS6.2...

That's also what I see in Mozilla (same thing as NS6.2). Try setting up your heights for the frames better and it should be fine.

Jona

stmasi
06-16-2003, 03:26 PM
Pics are blank?

Can't see anything in them.

Jona
06-16-2003, 03:36 PM
How strange... Let me make them into JPEGs.

Jona

stmasi
06-16-2003, 03:44 PM
Check out my screenshots and tell me what you think...

http://www.geocities.com/csstester/screenshots.zip

Jona
06-16-2003, 03:46 PM
I'm attaching the NS/Moz one.

Jona

Jona
06-16-2003, 03:47 PM
Originally posted by stmasi
Check out my screenshots and tell me what you think...

http://www.geocities.com/csstester/screenshots.zip

Attach the files to this forum. Your link is broken (I got error 404 from Yahoo!).

I have attached what I see in IE6.

Jona

stmasi
06-16-2003, 03:50 PM
I can't...they're too big.

Just type that address directly in your browser address bar.

Thanx.

Jona
06-16-2003, 03:58 PM
OK, so we see the same thing. ;)

Try setting the width/height of your frames.

Jona

stmasi
06-16-2003, 03:59 PM
I did in the css files.

Shoule I be doing this somewhere else?

Jona
06-16-2003, 04:02 PM
No, the CSS should make it work right... I'm doing some work on it for ya... We'll see what I come up with. Tell me if you have any suggestions/questions as I work on it. ;)

Jona