Adding a fixed sticky nav bar which doesn't cover the imagereplace nav bar with back ground colorResponsive website zoomed out to full width on mobilecall bootstrap “Collapse navbar” function manuallyBootstrap 4 responsive navbar that collapses at xs width?Changing the Default settings on a BootStrap nav-barNavbar toggle not working with Angular 4 / ng-bootstrapBootstrap 4 navbar with two rows, bottom row collapsibleFixed nav menu and mobile responsiveUnable to expand navigation barBootstrap 4 sticky-top for nav stopped working
Using credit/debit card details vs swiping a card in a payment (credit card) terminal
Count rotary dial pulses in a phone number (including letters)
How should I introduce map drawing to my players?
How do I split a line feature in segments of a set interval distance in Qgis?
Popcorn is the only acceptable snack to consume while watching a movie
USPS Back Room - Trespassing?
Caught student / friend cheating on the final exam that I proctored
What is a Centaur Thief's climbing speed?
Is the Indo-European language family made up?
Construct a word ladder
Where's this lookout in Nova Scotia?
Pirate democracy at its finest
Is there an online tool which supports shared writing?
The art of clickbait captions
My employer faked my resume to acquire projects
Why didn't Project Mercury advance to an orbital flight on their second mission?
Are these reasonable traits for someone with autism?
Understanding Implicit Delimiters/Terminators
How to know if a folder is a symbolic link?
Realizing cohomology classes by submanifolds
Is "cool" appropriate or offensive to use in IMs?
A steel cutting sword?
Sitecore 9.0 works with solr 7.2.1?
What are the real benefits of using Salesforce DX?
Adding a fixed sticky nav bar which doesn't cover the image
replace nav bar with back ground colorResponsive website zoomed out to full width on mobilecall bootstrap “Collapse navbar” function manuallyBootstrap 4 responsive navbar that collapses at xs width?Changing the Default settings on a BootStrap nav-barNavbar toggle not working with Angular 4 / ng-bootstrapBootstrap 4 navbar with two rows, bottom row collapsibleFixed nav menu and mobile responsiveUnable to expand navigation barBootstrap 4 sticky-top for nav stopped working
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I am trying to create a responsive bootstrap sticky nav to go above the carousel. However the navbar covers the top proportion of the image. How can i change so that it sticks above for desktop/mobile, but doesn't overflow onto the image itself.
<nav class="navbar navbar-expand-lg bg-primary fixed-top navbar " color-on-scroll="400">
<div class="container">
<div class="navbar-translate">
<button class="navbar-toggler navbar-toggler" type="button" data-toggle="collapse" data-target="#navigation" aria-controls="navigation-index" aria-expanded="false" aria-label="Toggle navigation">
<span><i class="fas fa-bars" style="
color: #ffffff;
"></i></span>
</button>
<img src="https://www.w3schools.com/bootstrap/chicago.jpg" class="img-fluid" alt="Responsive image">
</div>
<div class="collapse navbar-collapse justify-content-end" id="navigation" >
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="javascript:void(0)" onclick="scrollToDownload()">
<p>Location</p>
css responsive-design bootstrap-4 navbar sticky
add a comment |
I am trying to create a responsive bootstrap sticky nav to go above the carousel. However the navbar covers the top proportion of the image. How can i change so that it sticks above for desktop/mobile, but doesn't overflow onto the image itself.
<nav class="navbar navbar-expand-lg bg-primary fixed-top navbar " color-on-scroll="400">
<div class="container">
<div class="navbar-translate">
<button class="navbar-toggler navbar-toggler" type="button" data-toggle="collapse" data-target="#navigation" aria-controls="navigation-index" aria-expanded="false" aria-label="Toggle navigation">
<span><i class="fas fa-bars" style="
color: #ffffff;
"></i></span>
</button>
<img src="https://www.w3schools.com/bootstrap/chicago.jpg" class="img-fluid" alt="Responsive image">
</div>
<div class="collapse navbar-collapse justify-content-end" id="navigation" >
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="javascript:void(0)" onclick="scrollToDownload()">
<p>Location</p>
css responsive-design bootstrap-4 navbar sticky
Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. See: How to create a minimal reproducible example.
– LGSon
Mar 24 at 14:55
add a comment |
I am trying to create a responsive bootstrap sticky nav to go above the carousel. However the navbar covers the top proportion of the image. How can i change so that it sticks above for desktop/mobile, but doesn't overflow onto the image itself.
<nav class="navbar navbar-expand-lg bg-primary fixed-top navbar " color-on-scroll="400">
<div class="container">
<div class="navbar-translate">
<button class="navbar-toggler navbar-toggler" type="button" data-toggle="collapse" data-target="#navigation" aria-controls="navigation-index" aria-expanded="false" aria-label="Toggle navigation">
<span><i class="fas fa-bars" style="
color: #ffffff;
"></i></span>
</button>
<img src="https://www.w3schools.com/bootstrap/chicago.jpg" class="img-fluid" alt="Responsive image">
</div>
<div class="collapse navbar-collapse justify-content-end" id="navigation" >
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="javascript:void(0)" onclick="scrollToDownload()">
<p>Location</p>
css responsive-design bootstrap-4 navbar sticky
I am trying to create a responsive bootstrap sticky nav to go above the carousel. However the navbar covers the top proportion of the image. How can i change so that it sticks above for desktop/mobile, but doesn't overflow onto the image itself.
<nav class="navbar navbar-expand-lg bg-primary fixed-top navbar " color-on-scroll="400">
<div class="container">
<div class="navbar-translate">
<button class="navbar-toggler navbar-toggler" type="button" data-toggle="collapse" data-target="#navigation" aria-controls="navigation-index" aria-expanded="false" aria-label="Toggle navigation">
<span><i class="fas fa-bars" style="
color: #ffffff;
"></i></span>
</button>
<img src="https://www.w3schools.com/bootstrap/chicago.jpg" class="img-fluid" alt="Responsive image">
</div>
<div class="collapse navbar-collapse justify-content-end" id="navigation" >
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="javascript:void(0)" onclick="scrollToDownload()">
<p>Location</p>
css responsive-design bootstrap-4 navbar sticky
css responsive-design bootstrap-4 navbar sticky
asked Mar 24 at 3:37
P.SavP.Sav
605
605
Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. See: How to create a minimal reproducible example.
– LGSon
Mar 24 at 14:55
add a comment |
Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. See: How to create a minimal reproducible example.
– LGSon
Mar 24 at 14:55
Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. See: How to create a minimal reproducible example.
– LGSon
Mar 24 at 14:55
Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. See: How to create a minimal reproducible example.
– LGSon
Mar 24 at 14:55
add a comment |
2 Answers
2
active
oldest
votes
Give margin-top:100px or what is the height of you navigation menu, applying that height to the slider parent div class and it works fine.
add a comment |
Solution:
I added body padding-top: 90px;
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55320524%2fadding-a-fixed-sticky-nav-bar-which-doesnt-cover-the-image%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Give margin-top:100px or what is the height of you navigation menu, applying that height to the slider parent div class and it works fine.
add a comment |
Give margin-top:100px or what is the height of you navigation menu, applying that height to the slider parent div class and it works fine.
add a comment |
Give margin-top:100px or what is the height of you navigation menu, applying that height to the slider parent div class and it works fine.
Give margin-top:100px or what is the height of you navigation menu, applying that height to the slider parent div class and it works fine.
answered Mar 24 at 4:41
deepak panwardeepak panwar
1381213
1381213
add a comment |
add a comment |
Solution:
I added body padding-top: 90px;
add a comment |
Solution:
I added body padding-top: 90px;
add a comment |
Solution:
I added body padding-top: 90px;
Solution:
I added body padding-top: 90px;
answered Mar 24 at 4:03
P.SavP.Sav
605
605
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55320524%2fadding-a-fixed-sticky-nav-bar-which-doesnt-cover-the-image%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. See: How to create a minimal reproducible example.
– LGSon
Mar 24 at 14:55