-
AuthorPosts
-
April 25, 2015 at 5:36 pm #205824
currently the width of the container for main navigation is only 50% of the screen wide.
the rule comes from bootstrap.less and its defined as following:
<nav id=”t3-mainnav” class=”navbar navbar-default t3-mainnav col-md-6 col-sm-1″>
with css rule in bootstrap.less
@media (min-width: 992px)
.col-md-6 {
width: 50%;defining the width of the usable space for menu container. how to change it to 70 or 80% without affecting the rest of the content that also uses col-md-6 class. since it seems javascript is rewriting the rule on client side i cant define it in custom.css
please help
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
April 27, 2015 at 4:25 am #568374Hi
Instead of changing the css for the col-md-6, you can change the grid of the mainnav to a greater value for example: col-md-8.
However, you will need to consider to change the grid of other elements used in header to make sure that the total grid is 12.
For instance, the header of your site contains logo and the main nav, if you set the mainnav with ‘col-md-8‘, you will also need to change the grid of logo to ‘col-md-4‘
In case that you want to override css, you can use this css rule:
.t3-mainnav.col-md-6 {
/* your custom css goes here*/
}
this css will help to add style for col-md-6 in t3-mainnav only and not affect other part on your site.
1 user says Thank You to Saguaros for this useful post
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
April 27, 2015 at 4:25 am #733470Hi
Instead of changing the css for the col-md-6, you can change the grid of the mainnav to a greater value for example: col-md-8.
However, you will need to consider to change the grid of other elements used in header to make sure that the total grid is 12.
For instance, the header of your site contains logo and the main nav, if you set the mainnav with ‘col-md-8‘, you will also need to change the grid of logo to ‘col-md-4‘
In case that you want to override css, you can use this css rule:
.t3-mainnav.col-md-6 {
/* your custom css goes here*/
}
this css will help to add style for col-md-6 in t3-mainnav only and not affect other part on your site.
1 user says Thank You to Saguaros for this useful post
June 26, 2015 at 12:42 pm #575630hi, where can i find .t3-mainnav.col-md-6
thank you
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
June 28, 2015 at 7:49 am #575707It belongs to the mainnav block and you can find the associated php file in this folder: root/templates/uber/tpls/blocks/
-
AuthorPosts
This topic contains 7 replies, has 3 voices, and was last updated by Saguaros 8 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum