-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
236 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"liveServer.settings.port": 5501 | ||
"liveServer.settings.port": 5502 | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!DOCTYPE html> | ||
<html lang="sv"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>CSS Grid Exempel</title> | ||
<style> | ||
.container { | ||
display: grid; | ||
grid-template-columns: 200px auto; /* Två kolumner: sidebar och innehåll */ | ||
grid-template-rows: auto 1fr auto; /* Tre rader: header, innehåll, footer */ | ||
height: 30vh; /* Hela fönstrets höjd */ | ||
} | ||
.header { | ||
grid-column: 1 / -1; /* Börjar från kolumn 1 och sträcker sig över alla kolumner */ | ||
background-color: #333; | ||
color: #fff; | ||
padding: 10px; | ||
} | ||
.sidebar { | ||
background-color: #ddd; | ||
padding: 10px; | ||
} | ||
.content { | ||
background-color: #eee; | ||
padding: 10px; | ||
} | ||
.footer { | ||
grid-column: 1 / -1; /* Börjar från kolumn 1 och sträcker sig över alla kolumner */ | ||
background-color: #333; | ||
color: #fff; | ||
padding: 10px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="header">Header</div> | ||
<div class="sidebar">Sidebar</div> | ||
<div class="content">Innehåll</div> | ||
<div class="footer">Footer</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters