Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
frames [2023/02/15 02:45] melonframes [2023/02/15 02:48] (current) melon
Line 11: Line 11:
   * To use frameset on a page, you need to use the <frameset> tag instead of the <body> tag. The <frameset> tag tells the browser how to split up the window into frames, using the rows and cols attributes. The rows attribute says how many and how big the horizontal frames are, and the cols attribute says how many and how big the vertical frames are. You can use pixels, percentages, or asterisks to say the size of each frame.   * To use frameset on a page, you need to use the <frameset> tag instead of the <body> tag. The <frameset> tag tells the browser how to split up the window into frames, using the rows and cols attributes. The rows attribute says how many and how big the horizontal frames are, and the cols attribute says how many and how big the vertical frames are. You can use pixels, percentages, or asterisks to say the size of each frame.
  
-  * For example, <frameset rows="100,*" cols="150px,75%"> means that the window will be split into three horizontal frames, with the first one being 100 pixels tall and the second one taking up the rest of the space. The window will also be split into two vertical frames, with the first one being 25% wide, and the second one being 75% wide.+  * For example, <frameset rows="10%,*" cols="150,*"> means that the window will be split into three horizontal frames, with the first one being 10% pixels tall and the second one taking up the rest of the space. The window will also be split into two vertical frames, with the first one being 150px wide, and the second one being the rest of the space.
  
   * Each frame is marked by the <frame> tag, which says which HTML page will show up in the frame. The <frame> tag has a src attribute, which says the URL of the page to show. The <frame> tag can also have a name attribute, which can be used to make links open in a specific frame.   * Each frame is marked by the <frame> tag, which says which HTML page will show up in the frame. The <frame> tag has a src attribute, which says the URL of the page to show. The <frame> tag can also have a name attribute, which can be used to make links open in a specific frame.
Line 23: Line 23:
     <title>My Homepage</title>     <title>My Homepage</title>
   </head>   </head>
-  <frameset rows="100,*" cols="150px,75%">+  <frameset rows="10%,*" cols="150px,*">
     <frame src="logo.html" name="header">     <frame src="logo.html" name="header">
     <frame src="header.html" name="header">     <frame src="header.html" name="header">