scrimba
Applied Visual Design
Lock an Element to its Parent with Absolute Positioning
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Lock an Element to its Parent with Absolute Positioning
AboutCommentsNotes
Lock an Element to its Parent with Absolute Positioning
Expand for more info
index.html
run
preview
console
<style>
#searchbar {



}
section {
position: relative;
}
</style>
<body>
<h1>Welcome!</h1>
<section>
<form id="searchbar">
<label for="search">Search:</label>
<input type="search" id="search" name="search">
<input type="submit" name="submit" value="Go!">
</form>
</section>
</body>
Console
index.html
-1:41