?
Solved

Need help with CSS

Posted on 2011-09-15
6
Medium Priority
?
263 Views
Last Modified: 2012-05-12
I have been modifying a template and broke something somewhere.

I want to remove the space between the main horizontal menus and the drop down menus.  I've played with the padding on every element and can't get it to change.

You can view the problem here:
http://tinyurl.com/3e5emcl

and I have attached a screen shot.

thanks,
Liz
 Shows problem on webpage
0
Comment
Question by:lizzzz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 30

Expert Comment

by:LZ1
ID: 36546736
It seems whatever script your using for your drop down is giving it a value of top:43px;. We have to try to find out why it's giving it this value or just set it to top:0px !important; on the .ddsmoothmenu ul li ul in your CSS
0
 
LVL 15

Accepted Solution

by:
Jagadishwor Dulal earned 500 total points
ID: 36547013
LZ1 is right but when you change top:0px that will overlap the main menu so the top value of .ddsmoothmenu ul li ul is set from Smooth Navigational Menu which you are using from dynamic drive. That's the problem from your ddsmoothmenu.js file where you can find the shadow set in background :                   
this.$shadow=$('<div class="ddshadow'+(this.istopheader? ' toplevelshadow' : '')+'"></div>').prependTo($parentshadow).css({left:this._shadowoffset.x+'px', top:this._shadowoffset.y+'px'}) 

Open in new window



So for the solution you can modify the css (screen_blue.css) Line no 283 to:

.ddsmoothmenu ul li ul{
      position: absolute;
      left: 0;
      display: none; /*collapse all sub menus to begin with*/
      visibility: hidden;
      /*margin-left: 6px;*/
      /*text-shadow: 1px 1px 0px #fff;*/
      top:30px !important;/*added new */
}
0
 
LVL 16

Assisted Solution

by:HagayMandel
HagayMandel earned 500 total points
ID: 36547449
Remove the margin-top:40px from the .banner class.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 9

Assisted Solution

by:user_n
user_n earned 500 total points
ID: 36547526
you have in top 43px; which gives this gap
<ul style="display: none; top: 43px; visibility: visible;">  
                                    <li><a href="page_company_info.html">Company Info</a></li>
                                    <li><a href="page_news.html">News</a></li>
                                    <li><a href="page_services.html">Services</a></li>
                                    <li><a href="page_team.html">The Team</a></li>
                                    <li><a href="page_partners.html">Our Partners</a></li>

                                    <li><a href="page_testimonials.html">Testimonials</a></li>
                                    <li><a href="page_jobs.html">Jobs</a></li>


<ul style="display: none; top: 43px; visibility: visible;">  
top43px gives dis
0
 
LVL 25

Assisted Solution

by:Kyle Hamilton
Kyle Hamilton earned 500 total points
ID: 36548174
looks to me like it's coming from the padding on:

.ddsmoothmenu ul ul {
padding-top: 10px;
padding-bottom: 10px;
}

Did you make changes since the last post? Use padding:0; if you want it flush.
0
 

Author Closing Comment

by:lizzzz
ID: 36563148
Hi Everyone,
Thanks for helping me with this.  I made it more complicated by changing things after I submitted the question.  But I appreciate the answers.

thanks,
Liz
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question