Solved

Newbie CSS questions

Posted on 2016-10-18
4
33 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 6

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Blog posts not showing up on Blog page 7 50
Remove greater than sign 3 42
Footer at the bottom of the page not centered 5 28
Form Submit falis 6 25
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.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

932 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

14 Experts available now in Live!

Get 1:1 Help Now