Reputation: 1822
I'm having the hardest time trying to redefine the font-size of BootStrap's .dropdown-menu class.
The Firefox inspector says it's from .dropdown-menu (inherited from ul), so I tried ul.dropdown-menu, .dropdown-menu but with no luck.
<nav class="navbar navbar-inverse" role="navigation">
<div class="container-fluid">
<div class="navbar-header"></div>
<div id="myMenu" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li>First list item</li>
<li id="my-messages" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Messages</a>
<ul class="dropdown-menu pull-right" aria-labelledby="dLabel" role="menu">
<li>Dropdown list item</li>
...
Any advise? Thanks.
Upvotes: 6
Views: 12422
Reputation: 4435
Put your bootstrap above and then your regular css file in header. And then write your css in style.css file.
<link rel="stylesheet" type="text/css" href="css/bootstrap.css" media="all" />
<link rel="stylesheet" type="text/css" href="css/style.css" media="all" />
Upvotes: 0