Kostas Harvatis
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.
<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.
your "exact dimensions" are going to look different on every browser....
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?
E.g. to keep a homepage link on the top with a logo, fixed, without having to load it everytime?
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?
E.g. to keep a homepage link on the top with a logo, fixed, without having to load it everytime?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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;l eft:1;top: 1;">
and WEBWOMAN is right on the cache thing. images will get stored in the browsers memory once downloded.
lexxwern
LHN Interactive
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;l
and WEBWOMAN is right on the cache thing. images will get stored in the browsers memory once downloded.
lexxwern
LHN Interactive
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
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
ASKER
It just worked. I probably should have read all the tag parameters :) Thanks everybody.