+ 2
How can I make responsive and full width screen for my web HTML? Please write code
3 Respuestas
+ 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
+ 2
html :
<body>
<div id = "demo"></div>
</body>
CSS :
#demo { width: 100%; }
this way the div demo will take all the screen
+ 2
How can I make responsive for my HTML web?