[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Need help with CSS

Posted on 2011-09-15
6
Medium Priority
?
270 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

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!

Question has a verified solution.

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

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Suggested Courses

656 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