Jump to content

padding in order form table: how to?


salty

Recommended Posts

I finally *almost* finished my integration of WHMCS. One big thing remains, and that is the no cell padding on the order form.

 

I tried adding some room by both css and the old hard-code html method, but nothing is working.

 

my page:

support.inlethost.com/order.php

 

Can anyone offer any advice?

Thanks.

Link to comment
Share on other sites

I tried the class's that you recommended, and cleared my cache every time. Also, to make sure that I wasn't missing anything, I over-exaggerated the padding. Cellspacing works, cellpadding doesn't. Still nothing..... :(

 

My CSS:

.orderheadingrow {background-color: #6495ED; color: #ffffff; padding: 30px; }

 

.orderrow1 {background-color: #E8F0F9; color: #000000; padding: 30px; }

 

.orderrow2 {background-color: #D6E4F6; color: #000000; padding: 30px; }

Link to comment
Share on other sites

Alright, here's where I am. Padding works on Product Group, Product Select, & Submit, but not product. I tried adding individualized divs, but that only solved the radio cell blocks. I made different parts of the CSS-SS different amounts to try to isolate the issue. (I put them in one at a time, but for review sake, I added them all together.) The Product descriptions aren't budging..... :x

 

Thank you for all your help sks. :)

 

Step One:

<form method="post" action="{$smarty.server.PHP_SELF}?step=2">

 

<div align="center">

 

<table width="90%" cellspacing="1" cellpadding="10" class="tablepad-2x">

<tr class="orderheadingrow"><td colspan=2></td></tr>

{foreach key=num item=product from=$products}

<tr class="orderrow{if $num % 2}2{else}1{/if}">

<td width="20" align="center">

 

<div class="tablepad-5x"><input type="radio" name="pid" value="{$product.pid}"></div></td>

<td><div class="tablepad-5x">{$product.name} {if $product.qty!=""}({$product.qty} {$LANG.orderavailable}){/if} - {$product.description} </div></td></tr>

{/foreach}

<tr class="orderheadingrow"><td colspan=2></td></tr>

</table>

 

</div>

 

<p align="center"></p>

<p align="center"><input type="submit" value="{$LANG.ordercontinuebutton}" class="blueform"></p>

 

</form>

 

Custom Stylesheet CSS involved:

.blueform {font-family: Arial; font-size: 11px; color: #FFFFFF; font-weight: bold; border: 1px solid #E8E8E8; padding: 2px; background-color: #6495ED; }

 

.yellowform {font-family: Arial; font-size: 11px; color: #333; font-weight: bold; border: 2px solid #ccc; padding: 2px; background-color: #ffffbe; }

 

div#tablepad-5x {padding: 5px;}

.tablepad-2x {padding: 2px;}

 

WHMCS Stylesheet CSS:

/* Order Form Classic */

 

td#classicbox {width:550px; border: 1px solid #cccccc; background-color: #ffffff; color: #000000; text-align: center; }

 

td#classicorder {color: #000000; }

 

td#classiccustomfield {color: #cc0000; }

 

#classicaddonstable {width: 95%; background-color: #cccccc; border-collapse: seperate; padding: 30px;}

 

td#classicaddonstableheading {text-align:center; font-weight: bold; background-color: #efefef; color: #000000; padding: 30px; }

 

td#classicaddonstablerow {background-color: #ffffff; color: #000000; padding: 30px; }

 

/* Order Form Standard */

 

#standardaddonstable {width: 95%; background-color: #cccccc; border-collapse: seperate; }

 

td#standardaddonstableheading {text-align:center; font-weight: bold; background-color: #efefef; color: #000000; }

 

td#standardaddonstablerow {background-color: #ffffff; color: #000000; }

 

.orderheadingrow {background-color: #6495ED; color: #ffffff; padding: 30px; }

 

.orderrow1 {background-color: #E8F0F9; color: #000000; padding: 30px; }

 

.orderrow2 {background-color: #D6E4F6; color: #000000; padding: 30px; }

Link to comment
Share on other sites

hi

 

you have 3 css files attached to that order page. none of them have a class defined for tablepad-5x

 

add this into one of your css files and reload it. it will work after that...

 

.tablepad-5x {

padding: 5px;

 

}

 

Yeah, that should do it

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated