+ 2

How can I make responsive and full width screen for my web HTML? Please write code

16th Feb 2017, 1:17 AM
Kirollos Ayman
3 ответов
+ 4
@Christophe Nadeau: Default behavior of <div> and all html 'block' elements, is to take the maximum width space available: in other words, default value of 'width' property is already set to '100%' when creating/loading a new page ^^ @Kirollos Ayman: The trick is, that write a generic responsive page is an enormous work... even if we know exactly what you're expected! The mostly near answer to you, is to look at and use Bootstrap-like frameworks, which facilitate the build of such pages, but don't guess that will be easy: it's just more easy, as we can say less hard, than building one from scratch :P
17th Feb 2017, 3:43 PM
visph
visph - avatar
+ 2
html : <body> <div id = "demo"></div> </body> CSS : #demo { width: 100%; } this way the div demo will take all the screen
16th Feb 2017, 2:37 AM
Christophe Nadeau
Christophe Nadeau - avatar
+ 2
How can I make responsive for my HTML web?
16th Feb 2017, 9:52 AM
Kirollos Ayman