Solved

Newbie CSS questions

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

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Browser Chrome downloads colored link 5 40
Change div area and length 1 26
Changing Two Areas of a Page 5 13
Html test in IIS 4 20
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…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

813 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

17 Experts available now in Live!

Get 1:1 Help Now