html - Foundation 5: Change Container color behind Tabs & Tab Content Panels -


i working on building web app using foundation 5 framework. have page contains comments , updates section, navigated tabs , contained within panels.

i added box shadow tab content panels contain updates , comments, there margins on either side white space don't blend styling of rest of page.

i used inspect element @ at element margins fall into, , part of content panels themselves. how go changing background margins blend rest of page, , tabs & content white box shadow?

the html tab , accompanying panels follows:

<div id ="tabs"> <ul class="tabs" data-tab role="tablist"> <li class="tab-title active" role="presentational" ><a href="#panel2-1"       role="tab" tabindex="0" aria-selected="true" controls="panel2-1">updates</a></li> <li class="tab-title" role="presentational" ><a href="#panel2-2" role="tab" tabindex="0"aria-selected="false" controls="panel2-2">comments</a></li> </ul> </div>  <div class="tabs-content"> <section role="tabpanel" aria-hidden="false" class="content active"  id="panel2-1">      

i use following css make box-shadow around panels , tabs:

section#panel2-1.content.active { box-shadow: 1px 1px 5px 0px; -webkit-box-shadow: 1px 1px 5px 0px; margin-left: 50px; width: 1050px;  }  section#panel2-2.content.active { box-shadow: 1px 1px 5px 0px; -webkit-box-shadow: 1px 1px 5px 0px; margin-left: 50px; width: 1050px;  } 

i tried adding div around tabs , content panel change background color, didn't have effect.

does know how go doing this?

thanks,

matti

have tried using these sass variables override default styles?

$include-html-tabs-classes: $include-html-classes;  $tabs-navigation-padding: rem-calc(16); $tabs-navigation-bg-color: $silver; $tabs-navigation-active-bg-color: $white; $tabs-navigation-hover-bg-color: scale-color($tabs-navigation-bg-color, $lightness: -6%); $tabs-navigation-font-color: $jet; $tabs-navigation-active-font-color: $tabs-navigation-font-color; $tabs-navigation-font-size: rem-calc(16); $tabs-navigation-font-family: $body-font-family;  $tabs-content-margin-bottom: rem-calc(24); $tabs-content-padding: $column-gutter/2;  $tabs-vertical-navigation-margin-bottom: 1.25rem; 

Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -