Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Support
  • Code University
  • [ZB] IDK but need help.
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
[ZB] IDK but need help.
Tweet Topic Started: Apr 20 2009, 03:52 AM (217 Views)
Flavius Apr 20 2009, 03:52 AM Post #1
Member Avatar


Posts:
283
Group:
Member
Member
#360
Joined:
Jul 29, 2008
Coding language
HTML/CSS
What I am in need of is a script or CSS that would reduce the size of my #menu to the minimum required. In other words shrink the length till everything in it is in one row and increase the length when more is added. In this tag I currently have my TOPMENU so members will have a different sized TOPMENU to moderators and admins who can see the Report button.
Posted Image
Offline Profile Goto Top
 
Reid Apr 21 2009, 05:08 PM Post #2
Member Avatar
What? The land of the free? Whoever told you that was your enemy.

Posts:
1,790
Group:
Distinguished Coder
Member
#148
Joined:
Jul 20, 2008
I'm not entirely sure what you mean. Screenshot maybe? Is everything not in one row on your board? Lol
The Resource Board
Offline Profile Goto Top
 
ANDREW TOPGUNS Apr 22 2009, 02:31 AM Post #3
Member Avatar
10% of the way to 1000 club!

Posts:
113
Group:
Member
Member
#2,467
Joined:
Feb 28, 2009
Coding language
HTML/CSS
I think he means he would like the Menu bar to fit exactly the size of the links and as he gets more links for the menu he increases the length of the bar, just a customization to the length of the bar. My only worry with that is if it will show the background behind where the bar used to stretch (It should but dunno). Hope this helps!
Posted Image
Posted Image
Offline Profile Goto Top
 
Flavius Apr 22 2009, 02:58 AM Post #4
Member Avatar


Posts:
283
Group:
Member
Member
#360
Joined:
Jul 29, 2008
Coding language
HTML/CSS
Yeah that is what I mean. So when it doesn't show the link to admin cp and report cp the bar is shorter than when it does show those links.
Posted Image
Offline Profile Goto Top
 
Kevin Apr 22 2009, 02:56 PM Post #5
Member Avatar


Posts:
700
Group:
Former Staff
Member
#8
Joined:
Jul 2, 2008
Coding language
HTML/CSS
Can you post your CSS? And a link to your board or screenshot of what you want would be helpful as well.
Posted Image
Offline Profile Goto Top
 
ANDREW TOPGUNS Apr 23 2009, 09:36 AM Post #6
Member Avatar
10% of the way to 1000 club!

Posts:
113
Group:
Member
Member
#2,467
Joined:
Feb 28, 2009
Coding language
HTML/CSS
ANDREW TOPGUNS
Apr 22 2009, 02:31 AM
I think he means he would like the Menu bar to fit exactly the size of the links and as he gets more links for the menu he increases the length of the bar, just a customization to the length of the bar. My only worry with that is if it will show the background behind where the bar used to stretch (It should but dunno). Hope this helps!
With this, what I'll try to type a diagram:
Actual Menu
 

-------------------------------------------------------------------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////////////////////////////////Link 3 Link 2 Link 1 /
-------------------------------------------------------------------------------------------------------------------------------------

Desired Menu
 
-----------------------------------------
//////////////////Link 3 Link 2 Link 1 /
-----------------------------------------
Posted Image
Posted Image
Offline Profile Goto Top
 
Reid Apr 23 2009, 03:09 PM Post #7
Member Avatar
What? The land of the free? Whoever told you that was your enemy.

Posts:
1,790
Group:
Distinguished Coder
Member
#148
Joined:
Jul 20, 2008
It is possible.

You could in theory get the width of all the links and then add a given amount to the width.
The Resource Board
Offline Profile Goto Top
 
ANDREW TOPGUNS Apr 24 2009, 03:18 AM Post #8
Member Avatar
10% of the way to 1000 club!

Posts:
113
Group:
Member
Member
#2,467
Joined:
Feb 28, 2009
Coding language
HTML/CSS
No my diagram was meant to display the "Desired Menu" on the right like the other example but it cuts of close to the end of the left side of the links and then just has empty space on the left of it.
Posted Image
Posted Image
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Code University · Next Topic »
Locked Topic

Track Topic · E-mail Topic Time: 7:48 PM Jul 10
Hosted for free by ZetaBoards · Privacy Policy