-
AuthorPosts
-
Saguaros Moderator
Saguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 18, 2017 at 7:55 am #1081866Hi Luke,
There are various blocks on header so you need to style for each element, you can try with this custom CSS:
.t3-header.affix .t3-mainnav, .t3-header.affix .logo, .t3-header.affix .right-navigation { margin-top: -15px; }
or change to the value as you wish.
Regards
December 27, 2017 at 8:03 am #1083361This reply has been marked as private.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 27, 2017 at 8:59 am #1083370Hi Luke,
By default, this declaration set the height for the main navigation: .navbar-default { height: 96px; }
You can change to your desired value.
In case it doesn’t work, let me know the value you want to change, I will check for you.
December 27, 2017 at 9:19 am #1083380This reply has been marked as private.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 27, 2017 at 9:28 am #1083384I thought you tent to increase the height, if you reduce the height, you will need to care about the min-height value set for the navbar also:
.navbar { min-height: 96px; }
and change to your desired value.
December 27, 2017 at 9:50 am #1083390This reply has been marked as private.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 27, 2017 at 10:12 am #1083394It seems that you removed the height set for .navbar-default class, you need to both of them.
December 27, 2017 at 10:26 am #1083395This reply has been marked as private.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 28, 2017 at 6:53 am #1083606Hi Luke,
That’s border of head search section, you can reduce its height to meet with the height of navbar you changed above:
.head-search { height: 70px; }
In case that you want to remove that line, you can use this:
.head-search { border-left: none; }
For the search icon on mobile, it due to the margin-top you set for the .right-navigation class:
.t3-header .t3-mainnav, .t3-header .logo, .t3-header .right-navigation { margin-top: -15px; }
to override this, you can use media queries to add style for specific screen resolution. For example, if you NOT want to apply above style on mobile view, you can use this instead:
@media (min-width: 480px) { .t3-header .t3-mainnav, .t3-header .logo, .t3-header .right-navigation { margin-top: -15px; } }
It will apply to screen larger than 480px only.
Regards
December 28, 2017 at 8:09 am #1083613This reply has been marked as private.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 29, 2017 at 7:24 am #1083784As I can see it looks fine now, did you get it solved?
December 29, 2017 at 7:44 am #1083790This reply has been marked as private.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 29, 2017 at 8:50 am #1083809Did you add the margin-top for the search & toggle icons? pls try to change the media queries to max-width: 767px instead of max-width: 480px
1 user says Thank You to Saguaros for this useful post
December 29, 2017 at 9:30 am #1083821Hi Saguaros,
Yes I have defined as below:
@media (min-width: 480px) { .t3-header .t3-mainnav, .t3-header .logo{ margin-top: -15px; } .t3-header.affix .t3-mainnav, .t3-header.affix .logo, .t3-header.affix .fa-search{ margin-top: -15px; height: 70px; } }
Now I have revised it to 767px and it is working now.
Sorry for interrupting you so much, thanks for your help.
About this topic, I believe all is done.Thanks again
Luke
-
AuthorPosts
This topic contains 15 replies, has 2 voices, and was last updated by Saguaros 6 years, 11 months ago.
The topic ‘About the align of all elements in the mainmenu’ is closed to new replies.