Link to home
Start Free TrialLog in
Avatar of Kostas Harvatis
Kostas HarvatisFlag for Greece

asked on

Making frames of exact dimensions

My HTML for this is simple, by the book:


<frameset cols="140,638" frameborder="0" framespacing="0" border="0">
     
     <frameset rows="90,*" frameborder="0" framespacing="0" border="0">
          <frame src="logo.html" noresize scrolling="no" name="logo">
          <frame src="menu.html" noresize scrolling="no" name="menu">
     </frameset>
     
     <frameset rows="140,*" frameborder="0" framespacing="0" border="0">
          <frame src="banner.html" noresize scrolling="no" name="banner">
          <frame src="main.html" noresize scrolling="yes" name="main">
     </frameset>

</frameset>


But the frames are larger (by10-30 pixels) than the dimensions I defined. For the two top frames I have two images of dimensions 648*90 and 140*90 and I just want them to be together, without empty space in between them. Thanks in advance.
Avatar of bruno
bruno
Flag of United States of America image

your "exact dimensions" are going to look different on every browser....
Avatar of Kostas Harvatis

ASKER

So, how can you get frames fuctionality without <FRAME>s?

E.g. to keep a homepage link on the top with a logo, fixed, without having to load it everytime?

So, how can you get frames fuctionality without <FRAME>s?

E.g. to keep a homepage link on the top with a logo, fixed, without having to load it everytime?

ASKER CERTIFIED SOLUTION
Avatar of webwoman
webwoman

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
And for getting the exact dimension. check out the css recomendations http://www.w3.org/.

ad the style attribute for your img tag, imean if you want your logo to be right at the top of the page,
<img src="logo" style="position:absolute;left:1;top:1;">
and WEBWOMAN is right on the cache thing. images will get stored in the browsers memory once downloded.

lexxwern
LHN Interactive
harvk,

for more info on SSI check here....

http://www.bignosebird.com/ssi.shtml



BRUNO
webwoman's code should be enough.

IE can get exact resolutions. Netscape cannot, unless you do some calculations. Netscape does something weird. You need to give some exact dimensions (multiplied by 6) for the browser to show the exact size as requested.

Otherwise it'll take the nearest possible size.

CJ
It just worked. I probably should have read all the tag parameters :) Thanks everybody.