1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/lib/capybara/spec/views/with_fixed_header_footer.erb

17 lines
473 B
Text
Raw Normal View History

<html>
<head>
<style>
header { height: 45px; position: fixed; top: 0; background-color: red; width: 100%;}
footer { height: 45px; position: fixed; bottom: 0; background-color: red; width: 100%;}
#main { margin: 45px;}
#tall { display: block; height: 2000px;}
</style>
</head>
<body>
<header>My headers</header>
<div id="main">
<div id="tall">A tall block</div>
<a href="/">Go to root</a>
</div>
<footer>My footer</footer>
</body>