Announcement

Collapse
No announcement yet.

Padding around table cell

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stejoh
    Member
    • Sep 2006
    • 79
    • 3.8.x

    [Forum] Padding around table cell

    Hi!
    I am working on an About page, based on this article at vbulletin.org

    (BTW, works great!)

    I have searched for which padding variable in StyleVars to change, to get some space between the table cells. Anyone who could help me? Can't find it.

    This is the code I have used for my page:
    PHP Code:
    {vb:stylevar htmldoctype}
    <
    html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
      <
    head>
        <
    title>{vb:raw vboptions.bbtitle}</title>
        {
    vb:raw headinclude}
      </
    head>
      <
    body>
        
        {
    vb:raw header}
        
        {
    vb:raw navbar}
        
        <
    div id="pagetitle">
          <
    h1>{vb:raw pagetitle}</h1>
        </
    div>
        
        <
    h2 class="blockhead">About 99nicu</h2>
        <
    div class="blockbody">
          <
    div class="blockrow">

    <
    table border="0" width="100%" cellpadding="25">
    <
    tr>

    <
    td width="33%" valign="top">
    Lorem ipsum dolor sit ametconsectetur adipisicing elitsed do eiusmod tempor incididunt ut labore et dolore magna aliquaUt enim ad minim veniamquis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequatDuis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariaturExcepteur sint occaecat cupidatat non proidentsunt in culpa qui officia deserunt mollit anim id est laborum.
    </
    td>

    <
    td width="33%" valign="top">
    Lorem ipsum dolor sit ametconsectetur adipisicing elitsed do eiusmod tempor incididunt ut labore et dolore magna aliquaUt enim ad minim veniamquis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequatDuis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariaturExcepteur sint occaecat cupidatat non proidentsunt in culpa qui officia deserunt mollit anim id est laborum.
    </
    td>


    <
    td width="33%" valign="top">
    Lorem ipsum dolor sit ametconsectetur adipisicing elitsed do eiusmod tempor incididunt ut labore et dolore magna aliquaUt enim ad minim veniamquis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequatDuis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariaturExcepteur sint occaecat cupidatat non proidentsunt in culpa qui officia deserunt mollit anim id est laborum.
    </
    td>

    </
    tr>
    </
    table>



          </
    div>
        </
    div>

         {
    vb:raw footer}
     
     </
    body>
    </
    html
    I attach the resulting page as an image.
    Attached Files
  • JoergZ
    New Member
    • Aug 2002
    • 23
    • 3.8.x

    #2
    Hi stejoh !

    Have you solved your problem ? I have currently exact the same problem. Unfortunately nobody answered to your question.


    Best regards
    Joerg

    Comment

    • Lynne
      Former vBulletin Support
      • Oct 2004
      • 26255

      #3
      Try adding style="padding:10px;" to the <td> tags.

      Please don't PM or VM me for support - I only help out in the threads.
      vBulletin Manual & vBulletin 4.0 Code Documentation (API)
      Want help modifying your vbulletin forum? Head on over to vbulletin.org
      If I post CSS and you don't know where it goes, throw it into the additional.css template.

      W3Schools &lt;- awesome site for html/css help

      Comment

      • JoergZ
        New Member
        • Aug 2002
        • 23
        • 3.8.x

        #4
        Thanks Lynne,

        that's working. Although it's a little bit annoying to put it to every <td> tag.

        There is no way to define it on the <table> level ?


        Br

        Joerg

        Comment

        • Lynne
          Former vBulletin Support
          • Oct 2004
          • 26255

          #5
          Sure there is. If you apply a class to the table, then you can just add CSS to do it. But, he has no class in his table tag, so I didn't do it that way.

          Please don't PM or VM me for support - I only help out in the threads.
          vBulletin Manual & vBulletin 4.0 Code Documentation (API)
          Want help modifying your vbulletin forum? Head on over to vbulletin.org
          If I post CSS and you don't know where it goes, throw it into the additional.css template.

          W3Schools &lt;- awesome site for html/css help

          Comment

          • JoergZ
            New Member
            • Aug 2002
            • 23
            • 3.8.x

            #6
            Ah, o.k.

            Thanks for the hint.


            Br
            Joerg

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...
            😀
            🥰
            🤢
            😎
            😡
            👍
            👎