-2

I came accross this attribute for frames in HTML:noresize, which is meant to make the frame size fixed. However, despite using this attribute as under, the frame size changes on changing width of browser. What is this attribute used for. Does it work with frames only or also with iframes.

  <frameset cols="*,*,*">
    <frame
      src="bianca.html"
      longdesc="https://www.google.com"
      noresize="noresize" style="height: 800px; width:400px"
>
    <frame src="second.html" >
      <frame src="second.html">
  </frameset>
Manishpant
  • 37
  • 1
  • 5
  • 2
    https://developer.mozilla.org/en-US/docs/Web/HTML/Element/frame#attr-noresize – deceze Oct 13 '22 at 13:06
  • It means that the user can't resize the frame dragging it, but if the frame has a percentage dimension is normal that the width change resizing the browser dimension – Nick Oct 13 '22 at 13:06
  • https://www.geeksforgeeks.org/html-frame-noresize-attribute/ It can't be resized by the user. – Ineffable21 Oct 13 '22 at 13:07
  • 1
    Note that this element has been marked obsolete for at least 15 years. – Rob Oct 14 '22 at 09:45

1 Answers1

3

noresize tells the browser not to provide a user interface to resize frames. By default, you can point the mouse at a frame boundary, hold the button down and drag it.

style="height: 800px; width:400px" has no effect on a frame. The initial size of a frame is determined by the cols attribute. You said the size of the frame was * so it takes up a third of the available space.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335