• Page 1 of 1
  • 1
Forum moderator: bigblog  
uCoz Community » For Webmasters » Design Customization » Bootstrap on forum module
Bootstrap on forum module
LeonHaker
Posts: 95
Reputation: 0

Message # 1 | 6:35 PM
I want to make my forum responsive too, the problem is i don't have access to add classes to tables. i could do it with jquery add class but i loose speed. is there any other way?
joexyz
JOE-vascript
Posts: 1770
Reputation: 78

Message # 2 | 8:32 PM
LeonHaker, forum tables already have classes. Check out using right click >> Inspect Element.
hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau

sometimes i lurk here
LeonHaker
Posts: 95
Reputation: 0

Message # 3 | 1:47 PM
Can you look at this part of bootstrap for responsive tables: http://getbootstrap.com/css/#tables-responsive

how can i achieve this(.table classes and to add .table-responsive around table)?
Eriko
Pokémon Master
Posts: 962
Reputation: 34

Message # 4 | 8:00 AM
LeonHaker, unfortunately, you can only add extra classes on the forum's tables using JavaScript/jQuery. Here's how...

HTML:
Code
<table class="sampleClass">Sample</table>


jQuery:
Code
$("sampleClass").addClass(".table-responsive");


the html at the end will be...
HTML:
Code
<table class="sampleClass table-responsive">Sample</div>


You can also try copying bootstrap's CSS and applying it at the forum's default CSS.
Post edited by Eriko - Friday, 2015-02-20, 8:00 AM
LeonHaker
Posts: 95
Reputation: 0

Message # 5 | 4:15 PM
the jquery will slow down the site.
Eriko
Pokémon Master
Posts: 962
Reputation: 34

Message # 6 | 0:16 AM
LeonHaker, then the last one that I said will do the trick.
uCoz Community » For Webmasters » Design Customization » Bootstrap on forum module
  • Page 1 of 1
  • 1
Search: