views:

802

answers:

2

I need a quick solution to getting some decent layout working within the tabnav widget display area. I'm already using blueprint css for other aspects of the layout but I don't have enough CSS chops to figure out how to get blueprint containers to display within the tabnav's content area.

The tabnav's content area is <div class="main_tabnav_content" id="main_tabnav_content"> and this is the related css:

.main_tabnav {
    color: #000;
    border-bottom: 1px solid #ccc;
    margin: 13px 0px 0px 0px;
    padding: 0px;
    z-index: 1;
    padding-left: 10px }

.main_tabnav ul {
    margin: 0px;
    padding: 0px;
}

.main_tabnav li {
    display: inline;
    overflow: hidden;
    list-style-type: none; }

.main_tabnav li span.disabled {
        color: #888888;
        background: #FAFAFA;
        border: 2px solid #DDDDDD;
        border-bottom: none;
        padding: 2px 5px 0px 5px;
        margin: 0;
        text-decoration: none;}

.main_tabnav a, main_tabnav a.active {
    color: #000000;
    background: #EEEEEE;
    font-weight: bold;
    border: 1px solid #ccc;
    padding: 2px 5px 0px 5px;
    margin: 0;
    text-decoration: none; }

.main_tabnav a.active {
    background: #FFFFFF;
    border-bottom: 3px solid #FFFFFF; }

.main_tabnav a:hover {
    color: #FFFFFF;
    background: #CCCCCC; }

.main_tabnav a:visited {
    color: #000000; }

.main_tabnav a.active:hover {
    background: #FFFFFF;
    color: #000000; }

.main_tabnav_content {
    background: #FFFFFF;
    padding: 20px;
    border:1px solid #ccc;
    border-top: none;
    z-index: 2;
}

I'd like to be able to put some columns inside the main_tabnav_content area like this

    <div class="span-5 colborder">
       stuff
    </div>
    <div class="span-5 colborder">
        stuff
    </div>
    <div class="span-5 colborder">
       stuff
    </div>

At the moment the columns are displayed but the main_tabnav_content box doesn't expand around them. Any suggestions for how to get the blueprint layout nested inside the main_tabnav_content area?

From Blueprint: screen.css:

.column, div.span-1, div.span-2, div.span-3, div.span-4, div.span-5, div.span-6,  div.span-7, div.span-8, div.span-9, div.span-10, div.span-11, div.span-12, div.span-13, div.span-14, div.span-15, div.span-16, div.span-17, div.span-18, div.span-19, div.span-20, div.span-21, div.span-22, div.span-23, div.span-24 {float:left;margin-right:10px;}
.last, div.last {margin-right:0;}
.span-1 {width:30px;}
.span-2 {width:70px;}
.span-3 {width:110px;}
.span-4 {width:150px;}
.span-5 {width:190px;}

and also:

div.colborder {padding-right:24px;margin-right:25px;border-right:1px solid #eee;}
+1  A: 

Do you have the css for the span-5 & colborder classes? It sounds like it might be a float problem. Basically what's happening is when you add the columns to the main_tabnav_content div, the div doesn't expand, right?

Chesham
Correct. The div doesn't expand. The span-5 and colborder classes are straight from the Blueprint CSS framework.
srboisvert
+3  A: 

I think if you add this <div class="clearfix"></div> before the end of the main_tabnav_content div it should fix the float problem.

zac
That did the trick. Thanks
srboisvert