Solved

Need help with CSS

Posted on 2011-09-15
6
219 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
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 125 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 125 total points
ID: 36547449
Remove the margin-top:40px from the .banner class.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 9

Assisted Solution

by:user_n
user_n earned 125 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 125 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now