Solved

Keep getting this issue

Posted on 2015-02-06
1
40 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

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
Css issue on scroll 1 38
Button Css BootStrap 2 37
Text in block not displaying properly 2 33
CSS Logo Problem. 2 11
Unordered lists (HTML ul tags) are very handy to create menus of all types, shapes and sizes.  All it takes is a little knowledge of CSS and the possibilities are endless. First off, you should know the general format for menus created using the …
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 add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

863 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

24 Experts available now in Live!

Get 1:1 Help Now