ice78991
Programmer
- Nov 20, 2006
- 216
Will the following div fill the width of the screen ( ie width 100% ) in all browsers
<div style="background:#99FF00"></div>
<div style="background:#99FF00"></div>
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<div>[green]has width: 100%[/green]</div>
<div style="display: inline;">[green]has width: auto[/green]</div>
<div style="position: absolute;">[green]has width: auto[/green]</div>
<span>[green]has width: auto[/green]</span>
<span style="display: block;">[green]has width: 100%[/green]</span>
<span style="position: absolute;">[green]has width: auto[/green]</span>
I understood that [!]floated[/!] elements were by definition elements that did not permit other elements on either side.