Skip to content

Commit

Permalink
Fixed the position of the Navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
SiddheshShinde-tech committed Oct 22, 2020
1 parent 6bb8d70 commit c9413f9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
height: 100%;
}

.forNavbar{
position: relative;
z-index: 110;
}

.App {
text-align: center;
}
Expand Down
3 changes: 1 addition & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Maincard from "../src/MainpageCards/Maincard"
function App() {
return (
<div>
<div className="App">
<div className="forNavbar">
<Navbar></Navbar>
<img className="image" src={background} alt="background-image" />
</div>
Expand All @@ -33,4 +33,3 @@ function App() {
);
}
export default App;

5 changes: 5 additions & 0 deletions src/Components/Navbar/Navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
cursor: pointer;
}

.navba-links
{
margin-top: 1rem;
}

.fa-react {
margin-left: 0.5rem;
font-size: 1.6rem;
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Navbar/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Navbar extends Component {
<ul className={this.state.clicked ? 'nav-menu active' : 'nav-menu'}>
{MenuItems.map((item, index) => {
return (
<li key={index}>
<li className="navba-links" key={index}>
<a className={item.cName} href={item.url}>
{item.title}
</a>
Expand Down

0 comments on commit c9413f9

Please sign in to comment.