Check out the code I wrote at this link Reza
https://codepen.io/vsandeep2516/pen/XWbzPVa. The problem is that when you click on the navigation link, a white patch appears.
@sanriot, please take a look at the screenshot below:
Check out the code I wrote at this link Reza
https://codepen.io/vsandeep2516/pen/XWbzPVa. The problem is that when you click on the navigation link, a white patch appears.
@sanriot, please take a look at the screenshot below:
Include the following CSS:
.nav > li > a:focus, .nav > li > a:hover{
background: transparent !important;
}
var Deb = [];
$.noConflict();
jQuery(document).ready(function($) {
Deb.push(document.location);
});
/*add*/
.nav>li>a:focus,
.nav>li>a:hover {
background: transparent!important;
}
body {
margin: 0;
padding: 0;
font: 400 14px/24px 'Open Sans', sans-serif;
}
#header {
float: left;
width: 100%;
position: relative;
}
.head-top {
float: left;
width: 100%;
position: fixed;
background: red;
z-index: 999;
}
#nav {
padding: 0;
margin: 16px 0 0 0;
list-style: none;
}
#nav li {
display: inline-block;
float: none;
position: relative;
padding: 0 0 20px 0;
}
#nav .active {
background: transparent;
}
#nav li a {
font: 400 14px/14px 'Lato', sans-serif;
color: #000;
text-transform: uppercase;
text-decoration: none;
padding: 0 20px;
display: block;
position: relative;
z-index: 20;
}
#nav li:hover>a {
background: none;
}
#nav li ul li a:hover,
#nav li ul li:hover>a {
text-decoration: none;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap-theme.min.css" rel="stylesheet" />
<header id="header">
<section class="head-top">
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="left-side">
<h1>sandeep</h1>
</div>
</div>
<div class="col-md-6">
<div class="right-side">
<nav class="navbar ">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span
class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav" id="nav">
<li class="active"><a href="#" data-tab='main'>Home</a></li>
<li><a href="#aboutus" data-tab="aboutus">About</a></li>
<li><a href="#gallery" data-tab="gallery">Gallery </a></li>
<li><a href="#career" data-tab="career">career</a></li>
</ul>
</div>
</nav>
</div>
</div>
</div>
</div>
</section>
</header>
Include this at the conclusion
/* unvisited link */
a:link {
background-color: red !important;
}
/* visited link */
a:visited {
background-color: red !important;
}
/* mouse over link */
a:hover {
background-color: red !important;
}
/* selected link */
a:active {
background-color: red !important;
}
Recently exploring React, and I'm looking to set a height limit for MUI Grid. I've structured my project into 3 sections using MUI grid components. My goal is to restrict the page height in order to eliminate the browser scrollbar. If the conten ...
As an illustration, consider a scenario where I input values into a table and move to the next page. Upon returning to the page, I expect the entered values to still be present. I attempted to achieve this using this._location.back(), but instead of disp ...
I am facing an issue with displaying the data in a DataTable instead of JSON format. Could someone help me identify why it is returning that format and how to fix it? Below is a screenshot of the current result: https://i.sstatic.net/7MjN2.png //GET:Data ...
I am currently working with bootstrap cards on two different web pages. The challenge I am facing is that on one page, the header text has a fixed height so I can easily match their card-header height using min-height. However, on the second page, the card ...
My Bootstrap Collapse feature is causing an issue where the old collapse remains open when a new one is opened. Is there any way to automatically close the old collapse when a new one is opened? <div class="my-2"> <a class="btn ...
I am attempting to apply a rotation effect on a shape when clicked using jQuery and CSS. My goal is to select the element with the id of x and toggle the class rotate on and off. The rotate class utilizes the CSS transform property to achieve the desired r ...
Hello everyone, I am a beginner in the world of programming and I am excited to learn. I have heard that the best way to learn is by working on a project. I have always been interested in creating a Skill Tracker for my clan. Can you offer any advice on wh ...
I've encountered an issue with the typography component I'm using for my headings. When I publish the website, the headings do not render properly and the styles are not applied correctly. Strangely, everything looks fine during npm run dev, but ...
Currently, I am working on a Javascript function that moves up a selected row. However, the issue I am facing is that when the row moves up, the old row is not being removed. For instance, if I move up the 'bbbb' row, it successfully moves up bu ...
I am having trouble figuring out how to properly position the previous and next buttons in a bootstrap5 carousel. The original code I used as a template was for a carousel that displayed 4 images at once, but I changed it to display 3 images at once. I a ...
I'm having an issue with displaying images in a div table. Each image has a border at the bottom, which is around 2-5 pixels wide. Unfortunately, as a new user, I am unable to send any images. My main goal is to remove this unwanted border from the ...
<div class="questionnaire-description col-xs-12" id="questionnaire_description_wrapper"> <text-truncate> <span ng-class="questionnaire_description.show_more ? 'full-description' : 'ph-ellips ...
Hello! I'm completely new to JavaScript, so please excuse any oversight... Below is the code that runs when a button on the page is clicked: function getNumbers() { var firstValue = document.getElementById("time_one").value; var ...
As I delved into someone's .asp code, I stumbled upon a concerning discovery - an unclosed HTML tag. To unravel this mystery, I turned to Chrome and its inspector tool only to find the missing tag right there in front of me! Puzzled, I returned to th ...
Currently, I am working with PHP and I am trying to figure out if it is possible to pass the value of a span class to another page. Specifically, I want to pass the values of the classes category_Hdng and inrHdng2 from the page pos-455.php to the page get_ ...
I'm currently working on a website design that features a flat aesthetic. I have a header at the top and two blocks of different colors placed side by side underneath it. Initially, I attempted to use float left and right for positioning but was recom ...
Trying to extract text from a webpage using Python has always been tricky, especially with the surprises lxml tends to throw. Here's what I attempted: >>> import lxml.html >>> import urllib >>> response = urllib.urlopen(&a ...
Understanding the x-path is crucial, such as < img id="" src="/A/A/B.png" style=""> My task involves identifying the color of the image, but unfortunately, the style attribute does not provide any information about color. It only includes details a ...
Apologies for the lengthy explanation. I am working with osCommerce and have a page that displays all our product specials in a 3 column table layout. My challenge is to align the price of each product so that they are aligned perfectly across the screen. ...
As I work on creating a dashboard page that will display a sidebar after the user logs in, I am facing an issue where the sidebar is taking up the full width of the page, causing my Dashboard component to drop to the bottom. You can view the image link of ...