html - how to format and position text properly in bootstrap 2 nav bar -


I need some help with Bootstrap 2

How do I get the status "text" And be well formatted in the navbar?

  & lt; div id = "navbarExample" class = "navbar navbar-static" & gt; & Lt; Div class = "navbar-inner" & gt; & Lt; Div class = "container" style = "width: auto;" & Gt; & Lt; One class = "brand" href = "#" & gt; W3resource & lt; / A & gt; ... & lt; Ul class = "nav navbar-nav pull-right" & gt; & Lt; Li & gt; Name & lt; / li & gt; & Lt; ---- This text looks a little strange and is not properly implemented & lt; / Ul & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt;   

By the way, it should be just text and should not be linked if I do this, it will work, but I do not want this to be a link.

  & lt; li class = "" & gt; & Lt; A href = "" & gt; Name & lt; / a & gt; & Lt; / li & gt;    

It does not really behave weird PHP and The DB elements are centered because they contain related styles in the selectors.

.navbar .nav gt; Li & gt; A {float: none; Padding: 10px 15px 10px; Color: # 777777; Text-decoration: none; Lesson: 0 1 px 0 #ffff; }

and in the .navbar .nav selector

In your ul element, those styles are not affected, that is why it is completely connected in a way (not vertically centered). If you want your name element to be vertically centered, you can try applying margins to ul .

Here is a worrisome situation with a possible solution.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -