vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Cellpadding doesn't work (https://vborg.vbsupport.ru/showthread.php?t=285078)

Scanu 06-30-2012 03:01 PM

Cellpadding doesn't work
 
Hi is cellpadding working on vbulletin? In the table if i put cellpadding="100" it doesn't work. It is very strange can someone help me?

borbole 06-30-2012 03:58 PM

It should work. What is the whole coding and how/where are you trying to add it?

Scanu 06-30-2012 04:11 PM

I tried this exactly code in the header template and it won't works :S
HTML Code:

<table border="1" cellpadding="10">
  <tr>
    <th>Month</th>
    <th>Savings</th>
  </tr>
  <tr>
    <td>January</td>
    <td>$100</td>
  </tr>
</table>

and it is very strange because if i put it in the style it works
HTML Code:

<style>
td {
padding: 10px;
}
</style>

I'm on Mac os X: Chrome

tbworld 06-30-2012 04:30 PM

Cellspacing can get a bit tricky, especially with my favorite browser IE. This is the formula I use for your problem. The correct replacement for cellspacing is border-spacing. Hope this points yo in the right direction.

table {
border-collapse: separate;
border-spacing: 10px;
*border-collapse: expressopm('separate', cellspacing ='10px');
}

*border-collapse: expression('separate', cellspacing ='10px'); <-- for ie6 and ie7
On vb you really do not need to support anymore...

Using the <td> and setting the padding will work in many cases.

Scanu 06-30-2012 04:50 PM

I was talking about cellpadding not cellspacing i think that they are differently thanks anyway :) if there is no other way i will use the css code mentioned before

tbworld 07-01-2012 05:27 AM

Oops! Should have looked a bit closer.... Oh well :)

Badshah93 07-02-2012 04:03 PM

in vB4, padding is set to 0px for td, th etc tags..
i would suggest you to use class and thats the correct way. If possible upgrade tables to divs.

Lynne 07-03-2012 12:43 AM

You need to use CSS for styling your table. Give it it's own id and then you can't style just it in the additional.css template.


All times are GMT. The time now is 06:31 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01555 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete