Link to home
Start Free TrialLog in
Avatar of Bob Schneider
Bob SchneiderFlag for United States of America

asked on

Bootstrap v Inline/Internal Styles

Hi.  I have been converting to bootstrap to make my site more responsive.  It has also allowed me to get away from a very excessive use of inline styles.  However there are times when I want to modify the appearance of a bootstrap object, like a table, without losing it's responsiveness.  For instance, if I use <table class="table table-striped"></table> but I want the table to have cells that use the style "nowrap" or simply make the table small enough to fit on a page but I don't want to lose any responsiveness of the table, will changing things like font size or adding a page-level (or even inline) style circumvent this?

Put another way, is there an industry "best practice" for combining responsiveness with internal style sheets and inline styles?

Thanks!
SOLUTION
Avatar of Kim Walker
Kim Walker
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bob Schneider

ASKER

Can you give me an example of how I would modify this table to use a smaller font size (say 0.8em)...what it would look like in the table and what the css would look like in my external style sheet?

Thanks.

<table class = "table table-striped">
   <tr>
       <th>Col Head</th>
       <th>Col Value</th>
   </tr>
</table>
Oops the <th>Col Value</th> was supposed to be <td>Col Value</td>
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This is all very helpful.  There is no way that bootstrap can change table "size" like it can some other objects, correct?  In fact, if I understand it correctly, even table-responsive just creates a horizontal scroll bar.  Please let me know if I am not correct on this.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This has all been very helpful.  Tough to assign a "best solution" but the system requires that so...