Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Development_of_Web_Applications
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Silas Meister
Development_of_Web_Applications
Commits
52307ee2
Commit
52307ee2
authored
1 year ago
by
Silas Meister
Browse files
Options
Downloads
Patches
Plain Diff
Add centered nav
parent
b781ec99
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
img/nasa.png
+0
-0
0 additions, 0 deletions
img/nasa.png
index.html
+1
-1
1 addition, 1 deletion
index.html
styles.css
+19
-4
19 additions, 4 deletions
styles.css
with
20 additions
and
5 deletions
img/nasa.
sv
g
→
img/nasa.
pn
g
+
0
−
0
View file @
52307ee2
File moved
This diff is collapsed.
Click to expand it.
index.html
+
1
−
1
View file @
52307ee2
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
</head>
</head>
<body>
<body>
<header>
<header>
<img
class=
"nasa-img"
src=
"img/nasa.
sv
g"
/>
<img
class=
"nasa-img"
src=
"img/nasa.
pn
g"
/>
<nav>
<nav>
<ul
class=
"top-nav"
>
<ul
class=
"top-nav"
>
...
...
This diff is collapsed.
Click to expand it.
styles.css
+
19
−
4
View file @
52307ee2
...
@@ -72,13 +72,13 @@ nav ul li a {
...
@@ -72,13 +72,13 @@ nav ul li a {
position
:
absolute
;
position
:
absolute
;
left
:
0
;
left
:
0
;
top
:
0
;
top
:
0
;
width
:
5em
;
margin-top
:
1em
;
width
:
6em
;
z-index
:
-1
;
z-index
:
-1
;
}
}
.top-nav
{
.top-nav
{
display
:
flex
;
display
:
flex
;
overflow
:
hidden
;
flex-wrap
:
nowrap
;
flex-wrap
:
nowrap
;
flex-direction
:
row
;
flex-direction
:
row
;
justify-content
:
flex-end
;
justify-content
:
flex-end
;
...
@@ -97,6 +97,7 @@ nav ul li a {
...
@@ -97,6 +97,7 @@ nav ul li a {
.top-nav
li
a
{
.top-nav
li
a
{
border-right
:
0.05em
solid
#eeeeee
;
border-right
:
0.05em
solid
#eeeeee
;
white-space
:
nowrap
;
}
}
.top-nav
li
:nth-child
(
n
+
7
)
a
{
.top-nav
li
:nth-child
(
n
+
7
)
a
{
...
@@ -116,6 +117,7 @@ nav ul li a {
...
@@ -116,6 +117,7 @@ nav ul li a {
padding
:
0
0.5em
;
padding
:
0
0.5em
;
height
:
100%
;
height
:
100%
;
background-color
:
#55555580
;
background-color
:
#55555580
;
white-space
:
nowrap
;
}
}
.search-form
input
[
type
=
"search"
]
{
.search-form
input
[
type
=
"search"
]
{
...
@@ -141,11 +143,24 @@ nav ul li a {
...
@@ -141,11 +143,24 @@ nav ul li a {
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
background-color
:
blue
;
margin-top
:
1em
;
}
}
.center-nav
{
.center-nav
li
{
padding
:
0.5em
0
;
background-color
:
#555555
;
}
.center-nav
li
a
{
display
:
block
;
padding
:
0.5em
1em
;
font-size
:
0.7em
;
font-weight
:
500
;
white-space
:
nowrap
;
}
.center-nav
li
:not
(
li
:last-child
)
a
{
border-right
:
0.1em
solid
#eeeeee
;
}
}
/* Extra small devices (phones, 600px and down) */
/* Extra small devices (phones, 600px and down) */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment