Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Safari Frame size problem

Status
Not open for further replies.

storm197

MIS
Oct 9, 2002
55
CA
Hi,

I'm developping an application and some of my users are on Safari for MAC.

I'm using a page with two horizontal frames. height of the first is 270 Height of the second is 530.

On IE it looks fine, but on Safari for MAC, it looks more like a 400 of height for both. Any code I can put to ajust it for safari ?

Here is my frameset code.

<frameset rows="270,530"" frameborder="NO" border="0" framespacing="0">
<frame src="login.php" name="topFrame" scrolling="no" noresize>
<frame src="blank_main.php" name="mainFrame" noresize>
</frameset>
<noframes>
 
I don't currently have access to a mac but one problem is:

<frameset rows="270,530"" frameborder="NO" border="0"...
You have 2 quotes after 530. Also you probably should say:

<frameset rows="270px,*" framespacing="0">
or
<frameset rows="50%,*" framespacing="0">

frameborder should be used with the frame tag.
border should be used within each frame.

Hope that helps!

Clive
 
I can only echo what Clive has said about the quotes. However, I don't believe you should specify "px" for frameset values - AFAIK, values should be purely integer(250), a percentage (75%), or relative (* or 1*, 2*, etc).


Hope this helps,
Dan


The answers you get are only as good as the information you give!
 
Well, my friends, the problem was the double double quotes. Also, by putting 200,* in the rows, everything came identical on every browser.

Thanks for your help.

Nick
 
rows and cols are used inconsistently in HTML

I guess you could call it inconsistent... but it IS a documented thing for both.

For framesets, the HTML 4 DTD specifies that rows and cols are of type "MultiLength", and for textareas, they are of type "Number"... so its not really something that should be a surprise to anyone.

I'm surprised that including "px" in a frameset rows or cols attribute will validate, purely because the DTD / specs simply do not say anything about having it there. I guess they give more leeway than they let on sometimes ;o)

Dan


The answers you get are only as good as the information you give!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top