Solved

Keep getting this issue

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
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 Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
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…

770 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