+ 3

In html instead of frame what can we use? because I see others using tables

I need to subdivide my web page like this : <html> <FRAMESET ROWS="15%,75%,10%"> <FRAME SRC="header.html" name="header" scrolling="no"> <FRAMESET COLS="25%,75%"> <FRAME SRC="aside.html" name="aside"> <FRAME SRC="index.html" name="centrale"> </FRAMESET> <frame src="footer.html" name="footer"> </FRAMESET> </html>

15th Feb 2022, 7:53 PM
Mik
Mik - avatar
9 Antworten
+ 5
Framesets and tables are very outdated, you shouldn't be using them anymore. (Tables are ok, but not for subdividing your website.) You will want to look into CSS. Specifically, CSS flexbox and CSS grids.
15th Feb 2022, 11:20 PM
Schindlabua
Schindlabua - avatar
+ 4
Morpheus Viktor Tsybenko jake Schindlabua I need to subdivide my web page like this : <html> <FRAMESET ROWS="15%,75%,10%"> <FRAME SRC="header.html" name="header" scrolling="no"> <FRAMESET COLS="25%,75%"> <FRAME SRC="aside.html" name="aside"> <FRAME SRC="index.html" name="centrale"> </FRAMESET> <frame src="footer.html" name="footer"> </FRAMESET> </html> https://code.sololearn.com/WzzRd6n4FkBz/?ref=app
17th Feb 2022, 9:47 AM
Mik
Mik - avatar
+ 3
Schindlabua humm very nice idea i will look into css
16th Feb 2022, 8:57 PM
Mik
Mik - avatar
+ 3
Morpheus thanks
17th Feb 2022, 6:29 AM
Mik
Mik - avatar
17th Feb 2022, 10:21 AM
Viktor Tsybenko
+ 2
If it's just breaking the page into different responsive components then.. Yep, CSS Grids is what you want. Moreover it ll be responsive i.e. it ll not break in different device screens. Regarding <iframe>, It would be very costly to create iframes just to break the page components. Never recommended unless these page components are coming from some different website all together. Tables are not responsive, they ll hold their structure very well but in smaller screens, it ll be either zoomed out or users will have to scroll ( both being bad UX)
16th Feb 2022, 1:39 AM
Morpheus
Morpheus - avatar
+ 2
Morpheus thanks but what tag work the same as framset ??
16th Feb 2022, 8:59 PM
Mik
Mik - avatar
+ 2
<Table> is the only tag closest to the older frameset but now we have to use CSS. https://code.sololearn.com/WSqJitOFaXyn/?ref=app
17th Feb 2022, 12:22 AM
Morpheus
Morpheus - avatar
+ 2
Back in the days, frames were the only way to update part of the webpage without reloading whole the page. Now JavaScript (AJAX, AHAX etc) can do it. And frames are considered a big headache from a security perspective. If you are creating a webpage, then CSS grid and flexbox are your choice. But if you are creating email template, table is your main tool for positioning of elements.
17th Feb 2022, 9:04 AM
Viktor Tsybenko