The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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?
|
#2
|
||||
|
||||
It should work. What is the whole coding and how/where are you trying to add it?
|
#3
|
||||
|
||||
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> HTML Code:
<style> td { padding: 10px; } </style> |
#4
|
|||
|
|||
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. |
#5
|
||||
|
||||
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
|
#6
|
|||
|
|||
Oops! Should have looked a bit closer.... Oh well
|
#7
|
|||
|
|||
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. |
#8
|
||||
|
||||
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.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|