Max-width border line for main menu

February 2014 Joomla Template
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Thu Aug 28, 2014 5:15 am
Reply with quote
Report this post
Hello,

I'm trying to make max-with border line for the main menu like techcrunch:
http://goo.gl/5XfJOf

I don't want to extend the width of the menu bar, just want to draw full width top and bottom borders. Is it possible?

Thanks,
Giang Anh
User avatar
Expert Boarder

GK User
Thu Aug 28, 2014 6:09 am
Reply with quote
Report this post
You might create a background image (png 1px wide) that would be added to body element and would repeat horizontally creating a horizontal line.
User avatar
Moderator

GK User
Thu Aug 28, 2014 6:41 am
Reply with quote
Report this post
Could you please guide me, I'm not developer ^_^
User avatar
Expert Boarder

GK User
Thu Aug 28, 2014 3:15 pm
Reply with quote
Report this post
Could you please post an url to your site?
User avatar
Moderator

GK User
Fri Aug 29, 2014 4:03 am
Reply with quote
Report this post
Hi,

http://lamgame.vn

Thanks,
Giang Anh
User avatar
Expert Boarder

GK User
Sat Aug 30, 2014 5:05 pm
Reply with quote
Report this post
Please edit: /templates/gk_news2/css/override.css and add at its end:
Code: Select all
body {
background: #fff url('../images/bgimage.png') 0 0 repeat-x;
}


Now create a new image with white background and 1px of line colour on the bottom (its height you need to find on try and error approach, I would start with something like 120px of white and 1px of dark, width should be 1px) and place it inside template folder - into images subfolder as bgimage.png.

Remember to enable "CSS override" in template settings - advanced section.
User avatar
Moderator

GK User
Mon Sep 08, 2014 10:01 am
Reply with quote
Report this post
Already added the code and image but it shows nothing in front end. Please help.

Thanks.
User avatar
Expert Boarder

GK User
Mon Sep 08, 2014 11:17 am
Reply with quote
Report this post
It showed but is very bad for mobile view: http://goo.gl/z4rwnW
User avatar
Expert Boarder

GK User
Wed Sep 10, 2014 1:19 pm
Reply with quote
Report this post
Just remove it under 1296px width:
Code: Select all
@media (max-width: 1296px) {
body {
background: none;
}
}
User avatar
Moderator

GK User
Fri Sep 12, 2014 7:43 am
Reply with quote
Report this post
Thank you. So I guess if I want to have top and bottom border lines, I must add a black dot in the top of the image also?
User avatar
Expert Boarder

GK User
Mon Sep 15, 2014 4:29 pm
Reply with quote
Report this post
Try to experiment with the image. As it is repeated horizontally you should find out what needs to be done :). Making change to image and uploading it to server takes much less time than asking on forum ;).
User avatar
Moderator


cron