logo
down
shadow

Navbar with css with different background colours


Navbar with css with different background colours

By : user2948938
Date : November 15 2020, 06:54 AM


Share : facebook icon twitter icon
Different background colours using four colours in a pattern

Different background colours using four colours in a pattern


By : fraudoudou
Date : March 29 2020, 07:55 AM
I wish this helpful for you I have a set of four colours and I'm wondering if it's possible to change the colour of a div in pattern using these four colours as a loop. So, for example: , You can do it with just CSS:
code :
div:nth-child(4n+1) { background-color : red; }
div:nth-child(4n+2) { background-color : blue; }
div:nth-child(4n+3) { background-color : green; }
div:nth-child(4n+4) { background-color : yellow; }
$(document).ready(function() {
    $("div:nth-child(4n+1)").css("background-color","red");
    $("div:nth-child(4n+2)").css("background-color","blue");
    $("div:nth-child(4n+3)").css("background-color","green");
    $("div:nth-child(4n+4)").css("background-color","yellow");
});
iOS 7 navbar colours not showing properly on iPhone 4

iOS 7 navbar colours not showing properly on iPhone 4


By : Ashish Jain
Date : March 29 2020, 07:55 AM
may help you . Get rid of [self.navigationController.navigationBar setTranslucent:YES]; and it should work fine.
If you want, you can check the device model (see here: Determine device (iPhone, iPod Touch) with iPhone SDK)
Background attachment local - How to have child elements with background colours and still see scroll effect?

Background attachment local - How to have child elements with background colours and still see scroll effect?


By : Oriol Prat
Date : March 29 2020, 07:55 AM
Any of those help Why don't you modify the gradients of the parent element itself? As the author is simulating the shadow effect using the radial gradient, there is no physical element present so that you can play with the z-index, read ahead if you want a jQuery solution for the same.
Demo
code :
.flow {      
    background:
    linear-gradient(#f00 30%, rgba(255,0,0,0)),
    linear-gradient(rgba(255,0,0,0), #f00 70%) 0 100%,
    radial-gradient(50% 0, farthest-side, rgba(0,0,0,.2), rgba(0,0,0,0)),
    radial-gradient(50% 100%,farthest-side, rgba(0,0,0,.2), rgba(0,0,0,0)) 0 100%;

    background:
    linear-gradient(#f00 30%, rgba(255,0,0,0)),
    linear-gradient(rgba(255,0,0,0), #f00 70%) 0 100%,
    radial-gradient(farthest-side at 50% 0, rgba(0,0,0,.2), rgba(0,0,0,0)),
    radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,.2), rgba(0,0,0,0)) 0 100%;

    background-repeat: no-repeat;
    background-color: #f00;
    background-size: 100% 60px, 100% 60px, 100% 10px, 100% 10px;
    background-attachment: local, local, scroll, scroll;
    margin: 40px auto;
    max-height: 200px;
    overflow: auto;
    width: 200px;
}
$(document).ready(function(){
    $('.data-holder').scroll(function(){
        $("#shadow, #whitish").css({'top': $('.data-holder').scrollTop() + 'px'});
        var y = $('.data-holder').scrollTop();
        if( y > 0 ){
            $("#shadow").show();
        } else {
            $("#shadow").hide();
        }
    });
});
.data-holder {
    width: 200px;
    height: 300px;
    border: 1px solid #ddd;
    overflow: auto;
    position: relative;
}

#shadow {
    position: absolute;
    left: 0;
    height: 30px;
    width: 180px;
    z-index: 9999;
    display: none;
    background: radial-gradient(farthest-side at 50% 0, rgba(0,0,0,.2), rgba(0,0,0,0)) 0 100%;
}

#shadow + div {
    padding-top: 10px;
}

#whitish {
    background: #fff;
    position: absolute;
    top: 0;
    width: 100%;
    height: 10px;
    z-index: 999999;
}

.block {
    background: #f00;
}
$("#shadow, #whitish").css({'top': $('.data-holder').scrollTop() + 'px'});
var y = $('.data-holder').scrollTop();
if( y > 0 ){
    $("#shadow").show();
} else {
    $("#shadow").hide();
}
<div class="parent">
    <div class="child"></div>
</div>

.parent {
    height: 300px;
    width: 300px;
    border: 1px solid #f00;
}

.child {
    border: 1px solid #000;
    height: 40px;
    width: 40px;
    z-index: -1;
    position: relative;
}
Bootstrap full width Navbar two different backround colours on side

Bootstrap full width Navbar two different backround colours on side


By : Cecilia von Wachenfe
Date : March 29 2020, 07:55 AM
I wish did fix the issue. I'm using standard full width fluid bootstrap navbar from examples in centered inside of the container. What I'm trying to achieve is, I would like to have white background on the left side under logo as well and from logo to right with blue background color. Is it possible? hope this image will explain . , This one way of doing that its tricky but it works
HTML:
code :
<div class="navbar navbar-default">
  <div class="container">
  <div class="navbar-header">
    <a class="navbar-brand" href="#">Brand</a>
  </div>
   <ul class="nav navbar-nav">
      <li><a href="#">Home</a></li>
      <li><a href="#">Link</a></li>
      <li><a href="#">Link</a></li>
      <li class="divider-vertical"></li>
      <li><a href="#">More</a></li>
  <li><a href="#">Options</a></li>
  </ul>
  </div>
</div>
.navbar-header{
    background:#e7e7e7;;
  position:relative;
}

.navbar-header:before {
    position: absolute;
    height: 100%;
    display: inline-block;
    background: #e7e7e7;;
    top: 0;
    left: -9999px;
    right: 100%;
}
.navbar-default{
    background:blue;
}
I am having trouble adding HTML5 (background colours and colours) to my website within the WordPress editor

I am having trouble adding HTML5 (background colours and colours) to my website within the WordPress editor


By : Olaru Virgil
Date : March 29 2020, 07:55 AM
I hope this helps you . I suggest you use background-color: instead of color:. Color will just change the text color, or the color of the words inside that header. Using background-color will change the background color.
Related Posts Related Posts :
  • ngx datatable vertical scroll with rowheight set to auto
  • How to make input text border with CSS when it's OnFocus
  • Anyone know of a calendar web widget for my website I could use?
  • How does Bootstrap manage to use fixed positioning for navbar on iOS?
  • Centered text in fully clickable table cell
  • Compare HTML and HTML5
  • steps of creating webpage in bangla
  • css root element margin
  • What is the point of using absolute positioning in CSS?
  • Responsive solution for long URLs (that exceed the device width)
  • Divs don't collapse as they should - media queries
  • QTreeWidgetItem display html
  • Testing html/css image on local from jfiddle
  • long attribute value of HTML
  • Why my svg picture is truncated at the bottom when embedded in html
  • Display CSS: some divs fixed, some flexible (2)
  • How to append href strings with variables in html with PHP?
  • css - Why is there a big white space between text lines?
  • div image position fixed + scroll
  • Hide specific elements from html using css
  • how to align the arrow in menu item?
  • How do I create a trapezoidal button using CSS?
  • Background position seems to be inaccurate
  • CSS background color is overruled by the background image
  • Oblique or twisted border shape
  • Overflow in div tag doesn't work
  • How to show the vertical image into horizontal manner using HTML and CSS?
  • css3 animation issue move div to left and move it back
  • HTML <code> - get rid of newlines
  • Vertical Align Two Spans (Different font size)
  • Position fixed not working with video poster
  • Having issues placing html buttons side by side in a form
  • how to center text in the middle of the page
  • Sublime Autocompletion for HTML using Emmet inside .sublime-autocompletion file
  • Align bottom wrapped text at the left of an image
  • I'm trying to get :after:hover to work
  • Header and Picture won't Display Correctly
  • SVG stacking, anchor elements, and HTTP fetching
  • Positioning two elements on opposite ends of a 100% with header
  • How to overlay an image inside an image with HTML, CSS
  • Selected date isn't kept in select box
  • How to change background colour of entire div on hover?
  • Two gradients with two distinct sections with just one div element
  • Indent even rows of hexagons in CSS
  • Unwanted filled letters in webpage
  • Mask password character size too small
  • Show div #2 while hovering relative div #1 with translition effect in one container
  • Stacking Tables for a responsive HTML email
  • Hyperlink button created via text/css
  • Checkboxes aligned in a row
  • HTML <title> tag appearing on page
  • I need some assistance with Div Tags
  • CSS Navigation Bar is not horizontal and has wrong colours
  • Background-image width & height 100%
  • Set div height to window height
  • Image/Link alignment issue with bottom navbar
  • CSS hover bubble does not seem out
  • Centering media object on page using Bootstrap
  • Fading out/color overlay on background image
  • Load video after clicking a button or link inside div and stack the trigger, poster image, and video
  • shadow
    Privacy Policy - Terms - Contact Us © ourworld-yourmove.org