Remove Border From Table In Html Block With Smarty Support

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

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

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 tags, like so:


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.

[quote name='tbirnseth' timestamp='1408731909' post='190363']

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.

[/quote]



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.

I have one question beyond the border issue… I used the coding suggested above for the 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 :)

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.

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

You can find here more about…HTML Borders



Walsh