Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to use background image in twitter boostrap navbar?

I have experienced to customize the twitter bootstrap navbar color successfully.. Now I want to use an image as the navbar background, so I could play more with the navbar..

But when I put the css "background: url(/img/navbar-bg.png) repeat-x;" in the navbar-inner.. it doesnt work, anyone know why?

like image 551
richardlin Avatar asked Dec 21 '22 19:12

richardlin


1 Answers

if you do it like this it should work.

.navbar-inner{
  background-image: url('navbar-bg.png');
  background-repeat: repeat-x;
}

Demo: here

like image 122
HaNdTriX Avatar answered Jan 09 '23 13:01

HaNdTriX