Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Remove Border From Table In Html Block With Smarty Support Rate Topic   - - - - -

 
  • simenkl
  • Member
  • Members
  • Join Date: 27-Feb 14
  • 36 posts

Posted 14 August 2014 - 07:18 PM #1

Hi!

I have made a table using HTML in a HTML block with Smarty support and I want to use this block on the frontpage.

However i Want the borders of the table to be invisible as it is only there for layout purposes. I understand I need to add a piece of code to the style.css file somewhere but could anyone help me with the code I would need to make this happen?

Thanks in advance! :grin:

Simon

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12028 posts

Posted 14 August 2014 - 08:47 PM #2

Just use the border="0" attribute in the table tag. It should override the css definition.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • SwimShady
  • Advanced Member
  • Members
  • Join Date: 05-Aug 14
  • 91 posts

Posted 22 August 2014 - 03:59 AM #3

I know I'm a little late, but adding border=0 didn't work for me. I had to add a style property tag to all the <td> tags, like so:

<td style="border: 0 !important;">

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12028 posts

Posted 22 August 2014 - 06:25 PM #4

Well, I believe you would have been better off to use css versus and embedded style. But that will work. The border="0" attribute should also have worked in the table tag.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • SwimShady
  • Advanced Member
  • Members
  • Join Date: 05-Aug 14
  • 91 posts

Posted 23 August 2014 - 03:47 PM #5

Well, I believe you would have been better off to use css versus and embedded style. But that will work. The border="0" attribute should also have worked in the table tag.


Ya, it definitely isn't the best way to do it, just thought I'd put my solution in the thread.

I didn't want to mess with the css sheets or my_changes, cause every time I upgrade to a new version something seems to mess up and not work (yes, even my changes). Then I have to find the issue and it becomes a real hassle.

I'll have to try just the border="0" attribute in the 4.2.1 to see if only that works.

 
  • DawnG
  • Senior Member
  • Members
  • Join Date: 02-Jun 09
  • 330 posts

Posted 29 August 2014 - 04:44 PM #6

I have one question beyond the border issue.... I used the coding suggested above for the <td> tags and it now works, but I want to be able to eliminate the cellspacing as well. I am trying to put 3 images, 1 tall on the left with 2 1/2 size images on the right, so they all look like one (attached)....but I get that cell spacing between them.

I am not that savvy with the tech stuff....so be gentle.....if ya can :)

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12028 posts

Posted 30 August 2014 - 02:23 AM #7

Just adjust the css for the tables (or cells) you need. Generally, cs-cart default is no cellspacing and no cellpadding. Have your developer look at your tables using firebug or similar tool to find out where the spacking is coming from.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • DawnG
  • Senior Member
  • Members
  • Join Date: 02-Jun 09
  • 330 posts

Posted 31 August 2014 - 12:45 PM #8

Thanks so very much tbirnseth....will give that a try :)

 
  • walshmagger
  • Newbie
  • Trial users
  • Join Date: 25-Mar 15
  • 1 posts

Posted 25 March 2015 - 07:10 AM #9

You can find here more about...HTML Borders

Walsh