What is the best way to create external web pages under a banner?

Google Images is the best example. Once you complete the image, the frame remains at the top of the page, always reminding you to return to Google. Does this technique use a special name and what is the most effective way to do this?

I still have this:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>Framed content</title>
    <style type="text/css">
        #bar {
            width:100%;
            height:10%;
        }
        iframe {
            width:100%;
            height:90%;
        }
    </style>
</head>
<body>
    <div id="bar"><!-- PUT THE CONTENTS OF THE BAR HERE --></div>
    <iframe src="{LOCATION OF THE HTML PAGE}"></iframe>
</body>
</html>

How can I fit above so that #bar can read a maximum of 100 pixels rather than 10%? How does this affect the code? This is the essence of my question.

Many thanks. Patrick

+3
source share
4 answers

, Google, doctype. , 100px, iFrame - 100% - .

+1

, framing ', , , 90- 2000- . , , Facebook Stumbleupon.

+3

, "topbar"...

, , , . , . .

+1

After a little investigation, I came across this that does not use iframes at all. I know that some people will not touch frame sets using bargepole, but I would be interested to know that, according to people, there may be potential problems besides the obvious “frames that are not supported”.

<html>  
<frameset rows="100,*" frameborder="no" framespacing="0"> 
  <frame name="h" src="top_source" scrolling="no" noresize >      
  <frame name="t" src="main_source" scrolling="auto" noresize > 
</frameset> 
</html>

This allows you to use the wildcard character "*", which does not have div height attributes.

0
source

Source: https://habr.com/ru/post/1715829/


All Articles