Malik Villarreal
asked on
Need help with this menu drop down under manufactures
I need to align the menu at the bottom under manufactures in a way where it has a grid like pattern or at displays the names even. As you can see the some of the names of the companies are longer than the others and it's making the grid uneven.
Thank you anyone who can help?!
Thank you anyone who can help?!
did you forget to add any attachment?
ASKER
yes sorry
it depends how you put them there and what the container is now...
it maybe divs with float=left, ot it maybe table with 2-3 columns (left align - center - right align)
need to see what it is first... can you copy and paste the html for whole menu...
or give us a link to see it in action...
it maybe divs with float=left, ot it maybe table with 2-3 columns (left align - center - right align)
need to see what it is first... can you copy and paste the html for whole menu...
or give us a link to see it in action...
ASKER
Hey this is my companies dev site. Not sure how my boss would feel with me giving it out, because it is password protected. I can give it to you but let me just explain that what you are seeing in the screen shot is basicly it. When you highlight over the tab it shows that drop down and it.
Do you want to see the code? And what is this table align center? That makes sense..
here is the code i have now
<div onmouseover="this.style.ba ckgroundCo lor='#f6f6 f6'" onmouseout="this.style.bac kgroundCol or='#fffff f'" style="background-color: rgb(255, 255, 255);">
<hr style="height:1px; border:none; color:#f7f7f7; background-color:#f7f7f7;" >
<div onmouseover="this.getEleme ntsByClass Name('manL ')[0].styl e.color = '#33aedf'" ;="" onmouseout="this.getElemen tsByClassN ame('manL' )[0].style .color = '#333333'">
<p style="padding: 0.2em 0em 0.2em 0em; margin: 0em 0em; line-height: 0; visibility:visible; color: #333333 !important; font-size: 1.29em; margin-left: 0.7em;text-decoration:none !important;">
<a class="manL" style="color: #333333;text-decoration:no ne !important;font-size:0.84e m; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.3px;" href="/store/manufacturers .html">
MANUFACTURERS</a>
</p>
</div>
<div style="padding-right:1.3em ;color: #333333 !important; position: initial;z-index: -1000000;box-shadow:0px 6px 0px #f7f7f7;display: table-row-group;">
<div class="container-fluid" style="background-color:#f 6f6f6!impo rtant;colo r: #333333 !important;box-shadow:0px 6px 0px #f7f7f7;display: table-row-group;">
<div style="margin-left: -6px;margin-right: -6px;box-sizing: border-box;display: table-header-group;backgro und-color: #f6f6f6 !important;margin-right: 0px;z-index:-100000;color: #333333 !important;box-shadow:0px 6px 0px #f7f7f7;">
<ul style="background-color: #f6f6f6 !important;color:black;mar gin-right: 0px;">
<li style="float: left !important; display: inline-flex !important;white-space:now rap;"><a href="/store/manufacturers /betaindus tries.html ">Beta Industries</a></li>
<li style="float: left !important; display: inline-flex !important;white-space:now rap;"><a href="/store/manufacturers /bodoni.ht ml">Bodoni </a></li>
<li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers /chromix.h tml">Chrom ix</a></li >
</ul>
<ul style="background-color: #f6f6f6 !important;">
<li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers /colorlogi c.html">Co lorLogic </a></li>
<li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers /efi.html" >EFI</a></ li>
</ul>
<ul style="background-color: #f6f6f6 !important;">
<li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers /enfocus.h tml">Enfoc us</a></li >
<li style="float: left !important; display: inline-flex !important;white-space:now rap;"><a href="/store/manufacturers /gatf.html ">GATF</a> </li>
</ul>
<ul style="background-color: #f6f6f6 !important;">
<li style="float: left !important; display: inline-flex !important;padding-left:2p x;"><a href="/store/manufacturers /gti.html" >GTI</a></ li>
<li style="float: left !important; display: inline-flex !important;white-space:now rap;"><a href="/store/manufacturers /just-norm licht.html ">Just Normlicht</a></li>
<li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers /onyx-grap hics.html" >ONYX</a>< /li>
<li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers /pantone.h tml">PANTO NE</a></li >
</ul>
<ul style="background-color: #f6f6f6 !important;">
<li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers /spoton.ht ml">SpotOn !</a></li>
<li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers /techkon.h tml">Techk on</a></li >
<li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers /ugra.html ">UGRA</a> </li>
<li style="float: left !important; display: inline-flex !important;white-space:now rap;"><a href="/store/manufacturers /x-rite.ht ml">X-Rite </a></li>
</ul>
</div>
</div>
</div>
</div>
Do you want to see the code? And what is this table align center? That makes sense..
here is the code i have now
<div onmouseover="this.style.ba
<hr style="height:1px; border:none; color:#f7f7f7; background-color:#f7f7f7;"
<div onmouseover="this.getEleme
<p style="padding: 0.2em 0em 0.2em 0em; margin: 0em 0em; line-height: 0; visibility:visible; color: #333333 !important; font-size: 1.29em; margin-left: 0.7em;text-decoration:none
<a class="manL" style="color: #333333;text-decoration:no
MANUFACTURERS</a>
</p>
</div>
<div style="padding-right:1.3em
<div class="container-fluid" style="background-color:#f
<div style="margin-left: -6px;margin-right: -6px;box-sizing: border-box;display: table-header-group;backgro
<ul style="background-color: #f6f6f6 !important;color:black;mar
<li style="float: left !important; display: inline-flex !important;white-space:now
<li style="float: left !important; display: inline-flex !important;white-space:now
<li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers
</ul>
<ul style="background-color: #f6f6f6 !important;">
<li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers
<li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers
</ul>
<ul style="background-color: #f6f6f6 !important;">
<li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers
<li style="float: left !important; display: inline-flex !important;white-space:now
</ul>
<ul style="background-color: #f6f6f6 !important;">
<li style="float: left !important; display: inline-flex !important;padding-left:2p
<li style="float: left !important; display: inline-flex !important;white-space:now
<li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers
<li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers
</ul>
<ul style="background-color: #f6f6f6 !important;">
<li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers
<li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers
<li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers
<li style="float: left !important; display: inline-flex !important;white-space:now
</ul>
</div>
</div>
</div>
</div>
ASKER
Does this help?
a bit, yes... need css file as well...
the one that has definitions for "container-fluid"
made a demo
https://jsfiddle.net/umq7g5cg/
put all items into one <ul>..</ul>
need some css to make it better...
the one that has definitions for "container-fluid"
made a demo
https://jsfiddle.net/umq7g5cg/
put all items into one <ul>..</ul>
need some css to make it better...
ASKER
so quick? :)
good... now with:
you can add paddings, align text (left/right) to make it look better...
2 column looks good...
good... now with:
ul li:nth-child(odd){...}
ul li:nth-child(even){...}
you can add paddings, align text (left/right) to make it look better...
2 column looks good...
ASKER
Thank you! Here is what i did
<div style="background-color:#f 6f6f6 !important;padding-right:1 .3em;color : #333333 !important; position: initial;z-index: -1000000;box-shadow:0px 6px 0px #f7f7f7;display: table-row-group;">
<div class="container" style="padding: .7em;background-color:#f6f 6f6!import ant;color: #333333 !important;box-shadow:0px 6px 0px #f7f7f7;display: block;padding: .7em;">
<div style="margin-left: -6px;margin-right: -6px;box-sizing: border-box;display: table-header-group;backgro und-color: #f6f6f6 !important;margin-right: 0px;z-index:-100000;color: #333333 !important;box-shadow:0px 6px 0px #f7f7f7;">
<!-- display: inline-block; display: table-row;-->
<ul class="container" style="background-color: #f6f6f6 !important;color:black;mar gin-right: 0px;">
<table class="container-fluid" style="width:100%">
<tbody>
<tr>
<td><li style="float: left !important; display: inline-flex !important;white-space:now rap;"><a href="/store/manufacturers /betaindus tries.html ">Beta Industries</a></li> </td>
<td><li style="float: left !important; display: inline-flex !important;white-space:now rap;"><a href="/store/manufacturers /bodoni.ht ml">Bodoni </a></li>< /td>
</tr>
<tr>
<td><li style="float: left !important; display: inline-flex !important;">
<a href="/store/manufacturers /chromix.h tml">Chrom ix</a></li ></td>
<td><li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers /colorlogi c.html">Co lorLogic </a></li></td>
</tr>
<tr>
<td><li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers /efi.html" >EFI</a></ li></td>
<td> <li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers /enfocus.h tml">Enfoc us</a></li ></td>
</tr>
<tr>
<td><li style="float: left !important; display: inline-flex !important;white-space:now rap;"><a href="/store/manufacturers /gatf.html ">GATF</a> </li>
</td>
<td><li style="float: left !important; display: inline-flex !important;padding-left:2p x;"><a href="/store/manufacturers /gti.html" >GTI</a></ li></td>
</tr>
<tr> <td><li style="float: left !important; display: inline-flex !important;white-space:now rap;"><a href="/store/manufacturers /just-norm licht.html ">Just Normlicht</a></li></td>
<td><li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers /onyx-grap hics.html" >ONYX</a>< /li></td>
</tr>
<tr>
<td><li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers /pantone.h tml">PANTO NE</a></li ></td>
<td><li style="float: left !important; display: inline-flex !important;">
<a href="/store/manufacturers /spoton.ht ml">SpotOn !</a></li> </td>
</tr>
<tr>
<td><li style="float: left !important; display: inline-flex !important;">
<a href="/store/manufacturers /spoton.ht ml">SpotOn !</a></li> </td>
<td><li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers /techkon.h tml">Techk on</a></li ></td>
</tr>
<tr><td><li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers /ugra.html ">UGRA</a> </li></td>
<td><li style="float: left !important; display: inline-flex !important;white-space:now rap;"><a href="/store/manufacturers /x-rite.ht ml">X-Rite </a></li>< /td>
</tr>
</tbody></table>
</ul>
</div>
</div>
</div>
I had to use padding: .7em to fill in the white space because there was a white border around the columns belonging to the div containter above it.
Can I use
ul li:nth-child(odd){...}
ul li:nth-child(even){...}
in side of the ul element, as in inline styling. The css resides with the back end developers and they control everything. Its sort of troublesome to get them to do things, but it can be done. So that is why my boss was insisting that I do everything with inline css...
Thats a great tip by the way!
<div style="background-color:#f
<div class="container" style="padding: .7em;background-color:#f6f
<div style="margin-left: -6px;margin-right: -6px;box-sizing: border-box;display: table-header-group;backgro
<!-- display: inline-block; display: table-row;-->
<ul class="container" style="background-color: #f6f6f6 !important;color:black;mar
<table class="container-fluid" style="width:100%">
<tbody>
<tr>
<td><li style="float: left !important; display: inline-flex !important;white-space:now
<td><li style="float: left !important; display: inline-flex !important;white-space:now
</tr>
<tr>
<td><li style="float: left !important; display: inline-flex !important;">
<a href="/store/manufacturers
<td><li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers
</tr>
<tr>
<td><li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers
<td> <li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers
</tr>
<tr>
<td><li style="float: left !important; display: inline-flex !important;white-space:now
</td>
<td><li style="float: left !important; display: inline-flex !important;padding-left:2p
</tr>
<tr> <td><li style="float: left !important; display: inline-flex !important;white-space:now
<td><li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers
</tr>
<tr>
<td><li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers
<td><li style="float: left !important; display: inline-flex !important;">
<a href="/store/manufacturers
</tr>
<tr>
<td><li style="float: left !important; display: inline-flex !important;">
<a href="/store/manufacturers
<td><li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers
</tr>
<tr><td><li style="float: left !important; display: inline-flex !important;"><a href="/store/manufacturers
<td><li style="float: left !important; display: inline-flex !important;white-space:now
</tr>
</tbody></table>
</ul>
</div>
</div>
</div>
I had to use padding: .7em to fill in the white space because there was a white border around the columns belonging to the div containter above it.
Can I use
ul li:nth-child(odd){...}
ul li:nth-child(even){...}
in side of the ul element, as in inline styling. The css resides with the back end developers and they control everything. Its sort of troublesome to get them to do things, but it can be done. So that is why my boss was insisting that I do everything with inline css...
Thats a great tip by the way!
ASKER
I basically put the rows into two sections
<td>
<td>
</tr>
<td>
<td>
</tr>
And thank you again, maybe he will be happy with this. I super appreciate your help. Anyway talk tomo!
<td>
<td>
</tr>
<td>
<td>
</tr>
And thank you again, maybe he will be happy with this. I super appreciate your help. Anyway talk tomo!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
HEY ! I got it figured out now :) I wasn't able to use your code though I will use it when i can get a hold of the style sheet itself.
I think what you sent me is amazing and I will develop like that in the future! It's les code and more logic and I like it.
Here is what I have done now thank you again !
Is there a way to add you as a friend? Do you have linkden as well ?
I think what you sent me is amazing and I will develop like that in the future! It's les code and more logic and I like it.
Here is what I have done now thank you again !
Is there a way to add you as a friend? Do you have linkden as well ?
ASKER
Expert advice! Never would have thought of that solution and I now know of this great way to implement CSS! Thanks a million!