Solved

Newbie CSS questions

Posted on 2016-10-18
4
25 Views
Last Modified: 2016-10-18
Hello,

I'm very much new to CSS and learning as I go.

I have this page: https://dev.goebase.com/tools/action_learning_team_worksheets_resource.asp

1. I added a drop-down menu to the blue box and now the box is really tall.  How can I reduce the height of it?

2. At the same time, the main content can be seen a bit above the blue bar when you scroll. How can I stop that from happening?

Thanks in advance!
Steve
0
Comment
Question by:skbohler
  • 2
4 Comments
 
LVL 4

Expert Comment

by:jmac44
ID: 41849019
I don't see what your talking about on the second question but as for the first you can go here http://www.w3schools.com/tags/att_img_height.asp to get all your questions asked for style sheets and more. Hope this helps.
0
 
LVL 20

Accepted Solution

by:
Russ Suter earned 500 total points
ID: 41849034
I see what you're trying to do. There's a lot going on here and the layout method you're using isn't necessarily the best approach but you're learning and so far doing better than when I started.

For question #2, the issue is that the top attribute is set too large. The .box_shadow declaration in your style.css file shows top: 75px;. Changing that to top: 60px; will correct this issue.

For question #1, the div is growing to accommodate its contents. There are many ways around this issue but essentially what you need to do is reduce the height of the button and its enclosing div.
1
 

Author Comment

by:skbohler
ID: 41849043
Thanks Russ!

Yeah, just starting. We'll be hiring some person to help develop a proper CSS template once I'm done with mockups.

Your fix worked. Regarding the height of that box. adding the image on the right seems to have blown up the height far beyond the height of the menu image. Is there padding or something else coming in from somewhere?

Thanks again.
0
 
LVL 20

Assisted Solution

by:Russ Suter
Russ Suter earned 500 total points
ID: 41849053
Yes, there is. the .dropbtn declaration in your CSS has padding: 16px;. Changing it to 5px made it look more appropriate.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
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…

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

19 Experts available now in Live!

Get 1:1 Help Now