-
AuthorPosts
-
February 5, 2013 at 8:53 pm #184719
I was wondering if and how the menu on http://www.voetreflexborn.nl can be centered, ’cause now “home”(and all items next to it) is situated
too much to the left. I’m using T3V3 (version 1.0.1) on Joomla 3
Thanks,TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
February 5, 2013 at 11:49 pm #482604What you can try is adding a padding-left property to the CSS for the main navigation styling, for example . . .
<blockquote>.ja-mainnav {
background-color: #F5F5F5
background-image: linear-gradient(to bottom, #FFFFFF, #E6E6E6)
background-repeat: repeat-x;
border-bottom: 1px solid #CCCCCC
border-top: 1px solid #E6E6E6
height: 40px;
padding-left: 150px;
}</blockquote>
1 user says Thank You to TomC for this useful post
February 6, 2013 at 8:54 am #482656yeah, thanks for your help but in the navigation.less I only see this
// ——————————————————-
// JA MAIN MENU
// ——————————————————-.ja-mainnav {
#gradient > .vertical @navbarBackgroundHighlight, @navbarBackground);
border-top: 1px solid @navbarBackground;
border-bottom: 1px solid darken @navbarBackground, 10%);
height: @navbarHeight;
}.ja-mainnav .navbar {
color: @navbarText;
margin-bottom: 0;
margin-top: 0;
}.ja-mainnav .navbar-inner {
min-height: @navbarHeight;
padding: 0;
background: transparent;
filter: progid: DXImageTransform.Microsoft.gradient(enabled = false); //remove filter in IE
border: 0;
border-left: 1px solid darken @navbarBackground, 5%);
.border-radius(0);
.box-shadow(none);
}no mentioning of a margin or padding, then I wouldn’t have to ask. thanks already
inception Friendinception
- Join date:
- January 2013
- Posts:
- 12
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 5 times in 2 posts
February 6, 2013 at 9:18 am #482662You can just add the following to /templates/ja_t3v3_blank/css/custom.css:
.ja-mainnav {
padding-left: 150px;
}1 user says Thank You to inception for this useful post
February 6, 2013 at 9:28 am #482664I just did but nothing happened
inception Friendinception
- Join date:
- January 2013
- Posts:
- 12
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 5 times in 2 posts
February 6, 2013 at 9:36 am #482666You’re right, I was just trying to indicate that custom styling could be added to custom.css. Adding the following to custom.css should actually work for you:
.navbar-inner {
margin-left: 150px;
}February 6, 2013 at 9:48 am #482669inception Friendinception
- Join date:
- January 2013
- Posts:
- 12
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 5 times in 2 posts
February 6, 2013 at 10:21 am #482674When I check your website, I can’t see the added css in custom.css. Are you sure you edited the right.css file?
1 user says Thank You to inception for this useful post
February 6, 2013 at 12:00 pm #482681that’s weird as you can see in the attachment I am editing it. Now I was editing /voetreflexborn.nl/wwwroot/plugins/system/jat3v3/t3v3base/bootstrap/less/navbar.less and weirdest thing is when I change left (at float) into center in this
.navbar .nav {
position: relative;
left: 0;
display: block;
float: left;
margin: 0 10px 0 0;
}
nothing happens, but if I change left into right, it places the menu to the rightinception Friendinception
- Join date:
- January 2013
- Posts:
- 12
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 5 times in 2 posts
February 6, 2013 at 3:16 pm #482697It’s not the .nav element you want to change as this won’t move the first left border of the navigation menu. It’s .navbar-inner you want. Just try to modify the margin-left of that element on the fly from the developer tools of your browser (F12).
I just checked your custom.css again. You made a little error by forgetting the leading dot (navbar-inner instead of .navbar-inner).
2 users say Thank You to inception for this useful post
February 6, 2013 at 5:03 pm #482705finally, thanks!
such a little thing, that dotAuthorPostsViewing 11 posts - 1 through 11 (of 11 total)This topic contains 11 replies, has 3 voices, and was last updated by schlagerparade 11 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
centering the menu
Viewing 11 posts - 1 through 11 (of 11 total)