Or even better, create a new class instead (and avoid potential specificity issues down the road). Just make sure it's called in the CSS after whatever other class you plan to use it with so it overrides the first one).
Then in your html call it as class="spanX new-class-with-background" On 2012-03-11 4:05 PM, "Joseph Johnston" <[email protected]> wrote: > Create an id and apply that instead of changing the span3 css so you can > reuse it. > > On Sun, Mar 11, 2012 at 2:12 PM, Dmitry Mankoff <[email protected] > > wrote: > >> >> >> пятница, 9 марта 2012 г. 23:58:51 UTC+4 пользователь srw написал: >> >>> I would like to add a background that extends over the full width in a >>> container. What is the best way to achieve it with Twitter Bootstrap? >>> I don't want to extend all the container, just have an horizontal >>> background in a specific container. >>> >>> Thanks, >>> srw >>> >> >> for example span3: >> >> *.span1 {* >> * width: 60px;* >> *}* >> *.span2 {* >> * width: 140px;* >> *}* >> .span3 { >> width: 220px; >> *background-image: url(YOURBACKGROUND.png); * >> } >> .span4 { >> width: 300px; >> } >> >> >> > > > -- > Joe Johnston > General Manager > The Silverspoon > [email protected] > (610)688-7646 > >
