Table attributes: Top and Bottom cell padding?

  • 1
  • Question
  • Updated 9 years ago
  • Answered
I have an object within a table. The object itself has some transparent edges, the top and bottom being greater than the sides.The object height is dynamic.I can adjust the side edge spacing with a two column widget.

I can't find any HTML attributes for the top and bottom padding values. Wondering if someone come across this before and may have a solution?
Photo of Peter

Peter

  • 2569 Posts
  • 113 Reply Likes
  • hopeful

Posted 9 years ago

  • 1
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hi Peter

I'm sure that you can add a padding to all sides. did you try adding padding-top: 10px; padding-bottom: 10px? Could margins suffice instead? I have this for my images in a div box and it seems to work well.
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
If you change the margin in the img style code, then this is applied to both top and bottom.

<!--<div style="border: 1px solid black; padding: 10px; background-color: rgb(93, 196, 211); text-align: center;"><font size="3"><b>ABOUT ME<br></b></font></div>
<div style="border-style: none solid solid; border-color: -moz-use-text-color black black; border-width: 0px 1px 1px; padding: 10px;"><div style="text-align: center;">
<font style="color: rgb(0, 0, 51);" size="3"><a class="linkopacity" href="about-me.php"><img style="border: 0px none ; margin: 4px; padding: 0px; width: 60px; height: 60px;" src="dejavuapparel.synthasite.com/resources/user_128.png?timestamp=1241202847381" onmouseover="ddrivetip('Find out more about me')" ;="" onmouseout="hideddrivetip()"></a><br></font></div></div>-->

Just copy the code and try it out for yourself and you'll see what I mean.
Photo of Peter

Peter

  • 2569 Posts
  • 113 Reply Likes
Thanks littleus,

I didn't find the attribute names for the top and bottom padding.

Your fix worked immediately. Thanks heaps.
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
I'm glad that it worked out Peter. Sorry for all the extraneous codes(tooltip, opacity thing)! I shoulda taken 'em out. =P
Photo of Peter

Peter

  • 2569 Posts
  • 113 Reply Likes
Oops,

iwas outa synch with the postings and responses lttleus. Iwas referring to my inability to find a reference to top and bottom cell paddings by Googling and looking through a couple of HTML teaching sights.. Nothing to do with your submitted code.

The fix I was referrring to was back in your first response. I had used that as my fix. I didn't even see your subsequent submissions until I was well and truly fixed.

So no criticism of your elegant solution at all. i simply didn't need it. As far as taking out extraneous, I really wouldn't worry about that. This is the ral world and this will occur 99% of the time if people find a site, view the source and try and extract the solution. I think that it's valid method. You can always highlight the relevant sections but the background is really, really good training.
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
No problem Peter! Which fix worked? Padding-top/bottom or the margin? Just glad that it all worked out!
Photo of Peter

Peter

  • 2569 Posts
  • 113 Reply Likes
Padding-top {-bottom} is what I used. Little fix, big thanks!

btw: Kershnee sent me an email yesterday saying that the index is fixed and will be rolled out with the next batches. That really makes me happy. I was getting very little locating an embeddable blog from another source.

All I have to do now is check the feed for successful image transfers and I will be sitting pretty. Just a little bit of problem on feed validation from an external source. have no idea what it means and have asked for some advice. It could be totally irrelevant (hoping). The blidget now can be configured to selectable backgrounds and font colours..... PRO vers. Not worth it for me, but great to see that it's available. Gee they're a nice crowd to communicate with, I'm impressed. If it over-powers me I think that it would be quite feasible to construct a DIY porting RSS reader.

So ................ if you can bare to see it as it stands its in the lower part of the home page in all bronzed glory. I am using a 1440 pixel width monitor so it may be lopsided and although created with chrome it passes in FF.

My final job on this page is somehow tidying the widgets and consolidating them. If I could find the feeds to them I would construct a very low light composite. Such accessibility tends to be "paid subscribed to" features for such glory.

Thanks for your help & interest littleone.
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
I wanna see this! Which site is it on?
Photo of Peter

Peter

  • 2569 Posts
  • 113 Reply Likes
krooclub.com (index page)
ported from .../more-blog
Photo of Peter

Peter

  • 2569 Posts
  • 113 Reply Likes
And while you're here LU do you know how to test a PayPal transaction without haveing to debit your account? (I don't :( )
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Sorry friend... that I do not know how to do. Here's a thread I found (unrelated to Yola) but it may give you an idea or two.

http://forums.oscommerce.com/lofivers...