html - bootstrap horizontal navbar not working. appears as vertical -


Hi I used Bootstrap Vertical Navbar in my home page and now I want to create a horizontal navbar in my gallery page. But the new navbar is also looking vertical. I want to create bootstrap default navbar for this page. To create a vertiacl navbar in the home page, I have used this code as segmant. Make / * Sidebar Navigate Vertical * / @ Media (Minimum Width: 768px). Sidebar-nav.navbar .navbar-fall (padding: 0; max-height: none;} sidebar-nav.nbbar ul {float: none;}. Sidebar-nav navbar ul: no {display: block; } Sidebar-NAV Nawabar Li {Float: None; Display Area;} Sidebar - NAV Navaar Li A {Padding-Top: 12px; Padding-Down: 12px;} < P>

You know this What you are using these properties should be ..

Display: Block; :

In a block formatting reference, The second, vertical, one block is laid out from the beginning at the top of the block, the vertical distance between the two brother boxes is determined by the 'margin' properties. Vertical formatting reference vertical margin between adjacent block boxes in collapse.

In a block formatting reference, by clicking on each box Or touches the left edge of the block with the outer edge (from right to left formatting, touch for right edges). It is also true in the presence of floats (although the content area of ​​the box may be reduced due to floats).

Float: none; :

Float property has four values ​​which we can implement: left, right, heir, and none of each value is very self explanatory. For example, if If you assign float: left for an element, then it will reach the left-most extent of its original element. The same idea applies if you want to employ Float: Correct; For an element that element will be sent to the highest extent on the right side of its original element. The value of heritage tells an element to achieve the float value of its basic element. Price is not a default value and does not tell to float an element.

Floating means, most generally, to push the block-level element to the left or right side, manipulate the flow in relation to other block elements.

The meaning of the block is to define the type of element and it is the place visible on the page. Most HTML elements are going to be either block or inline elements by default. Display properties are used to manipulate these default properties. Elements that block the block elements or tampering with display properties will take all the horizontal positions of their parents, or, generally, often start from the beginning of a line and ends at the end of the line. Float: Any to float: left; and display: block; to Change the display


: Inline-block;

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -