PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Wed Sep 30, 2020 5:03 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sun Feb 01, 2015 9:55 am 
Offline
DevNet Master

Joined: Wed Oct 08, 2008 3:39 pm
Posts: 4434
Location: United Kingdom

This is a menu we use, but we need to know if the dropdown menu (on desktop view) can be altered, so that the left edge of each dropdown is against the left edge of the "category" clicked, and the right edge is either a set width, or the width of the text in the dropdown's contents.

The mobile view can remain unchanged.

_________________
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.


Top
 Profile  
 
PostPosted: Sun Feb 01, 2015 1:12 pm 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6425
Location: Montreal, Canada
It can but keep in mind the farther right you move along the nav, the less useful the nav potentially becomes.

_________________


Top
 Profile  
 
PostPosted: Sun Feb 01, 2015 2:34 pm 
Offline
DevNet Master

Joined: Wed Oct 08, 2008 3:39 pm
Posts: 4434
Location: United Kingdom
How about this.
I found it elsewhere and modified it.

Trouble is, I need to keep the "desktop" menu in a box that is 950px wide, but obviously when it's on a narrow screen..... it forces the space out.

Unless, in CSS when on a narrow screen I set the CSS for that wide box and remove the width:950px; section?

That would work I think.
So on wide, it's 950, but on narrow, it's not set.


Attachments:
File comment: ZipFile of web menu idea
ddmenu.zip [90.16 KiB]
Downloaded 235 times

_________________
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group