Solved

Keep getting this issue

Posted on 2015-02-06
1
39 Views
Last Modified: 2015-02-06
I keep getting this issue where the div isnt expanding around the contents. What I think should happen is that .divTabs should automatically expand to hold the .tab surley?

I keep running into this issue, so obviously something Im missing.

Can someone cast an eye over it and tell me what Im missing?
out.html
0
Comment
Question by:tonelm54
1 Comment
 
LVL 38

Accepted Solution

by:
Tom Beck earned 500 total points
ID: 40594355
You mean that .divTabs should expand vertically to create a box around the tabs?

Try adding display:table.

.divTabs {
    border: 1px solid black;
    display: table;
    width: 100%;
}
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
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.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
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…

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

22 Experts available now in Live!

Get 1:1 Help Now