Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-12-03, 02:57 AM   #1
juggernaut
Registered User
 
juggernaut's Avatar
 
Join Date: Apr 2005
Location: Central Jersey! If I was rich and powerful I would dress as my avatar does.
Posts: 1,448
Send a message via Yahoo to juggernaut
Is it possible to pad just one cell?

Title says the question. Code would be nice too lol. Getting the impression this is a no, on my searches. Thanks Jugg..
juggernaut is offline   Reply With Quote
Old 2005-12-03, 03:32 AM   #2
Wazza
I'm a jaded evil bastard, I wouldn't piss on myself if I was on fire...
 
Join Date: Apr 2003
Location: Melbourne, Australia
Posts: 808
Send a message via ICQ to Wazza
A rough and ready example using CSS

Wasn't working in FF...

Aaaaaaaaah fuck it!

See next...
__________________
I sale Internet

My sites have no traffic and no PR - let's trade - PM me

Last edited by Wazza; 2005-12-03 at 03:46 AM.. Reason: fudge it!
Wazza is offline   Reply With Quote
Old 2005-12-03, 03:37 AM   #3
Wazza
I'm a jaded evil bastard, I wouldn't piss on myself if I was on fire...
 
Join Date: Apr 2003
Location: Melbourne, Australia
Posts: 808
Send a message via ICQ to Wazza
Or if you want - just slap another table with its own cellpadding inside the cell you want this done to
__________________
I sale Internet

My sites have no traffic and no PR - let's trade - PM me
Wazza is offline   Reply With Quote
Old 2005-12-03, 04:51 AM   #4
oast
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
 
oast's Avatar
 
Join Date: May 2004
Location: UK
Posts: 316
Is this what you are after?
http://www.mysiteontheweb.com/
__________________
Playboy Webmasters - The name says it all! $35 per signup or 60% revshare.
oast is offline   Reply With Quote
Old 2005-12-03, 06:23 AM   #5
Wazza
I'm a jaded evil bastard, I wouldn't piss on myself if I was on fire...
 
Join Date: Apr 2003
Location: Melbourne, Australia
Posts: 808
Send a message via ICQ to Wazza
or

http://www.w3schools.com/css/tryit.a...trycss_padding

and

http://www.w3schools.com/css/css_padding.asp
__________________
I sale Internet

My sites have no traffic and no PR - let's trade - PM me
Wazza is offline   Reply With Quote
Old 2005-12-03, 07:49 AM   #6
oast
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
 
oast's Avatar
 
Join Date: May 2004
Location: UK
Posts: 316
That's basically what my test page shows (If you look at the source like the title tells you to)
__________________
Playboy Webmasters - The name says it all! $35 per signup or 60% revshare.
oast is offline   Reply With Quote
Old 2005-12-03, 08:01 AM   #7
ClickBuster
I'm normally not a praying man, but if you're up there, please save me Superman!
 
ClickBuster's Avatar
 
Join Date: Dec 2004
Location: Bulgaria
Posts: 476
Send a message via ICQ to ClickBuster
Is that what you're asking for?

<td style="padding: 10px">Cell content</td>
__________________
The tendency is to push it as far as you can
-- Fear and Loathing In Las Vegas
ClickBuster is offline   Reply With Quote
Old 2005-12-03, 08:11 AM   #8
eman
Solipsists of the world unite
 
eman's Avatar
 
Join Date: Oct 2003
Location: xxx axis
Posts: 639
http://www.yourwindow.to/information...paddedcell.htm
eman is offline   Reply With Quote
Old 2005-12-03, 08:17 AM   #9
oast
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
 
oast's Avatar
 
Join Date: May 2004
Location: UK
Posts: 316
__________________
Playboy Webmasters - The name says it all! $35 per signup or 60% revshare.
oast is offline   Reply With Quote
Old 2005-12-03, 08:20 AM   #10
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
I just nest a new table into the cell
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-12-03, 08:24 AM   #11
Surfn
If you don’t take a chance the Angels won’t dance
 
Surfn's Avatar
 
Join Date: Aug 2003
Location: Earth on occasion
Posts: 8,812
Send a message via ICQ to Surfn
Quote:
Originally Posted by Cleo
I just nest a new table into the cell
That's the easiest and quickest way. Although I think is slows down the load time even more.
__________________

Surfn's Links Are you a partner?

Surfn is offline   Reply With Quote
Old 2005-12-03, 08:40 AM   #12
oast
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
 
oast's Avatar
 
Join Date: May 2004
Location: UK
Posts: 316
Quote:
Originally Posted by Surfn
Although I think is slows down the load time even more.
Depending on the amount of content contained in the table, it will slow down the rendering of the page considerably, especially in the Mozilla based browsers.
I have started using divs, rather than tables, to achieve the same layout
Example - www.thatmanpoker.com
__________________
Playboy Webmasters - The name says it all! $35 per signup or 60% revshare.
oast is offline   Reply With Quote
Old 2005-12-03, 11:01 AM   #13
Wazza
I'm a jaded evil bastard, I wouldn't piss on myself if I was on fire...
 
Join Date: Apr 2003
Location: Melbourne, Australia
Posts: 808
Send a message via ICQ to Wazza
Quote:
Originally Posted by oast
That's basically what my test page shows (If you look at the source like the title tells you to)
Easy tiger - I wasn't trying to trump you - the example you posted did not merge the css into a single cmd whereas mine did... which is why I posted it
__________________
I sale Internet

My sites have no traffic and no PR - let's trade - PM me
Wazza is offline   Reply With Quote
Old 2005-12-03, 01:27 PM   #14
juggernaut
Registered User
 
juggernaut's Avatar
 
Join Date: Apr 2005
Location: Central Jersey! If I was rich and powerful I would dress as my avatar does.
Posts: 1,448
Send a message via Yahoo to juggernaut
All very good examples and yes they will help me get what I need today for sure. Basiclly if you go to my site you will see after you enter the index, my header has a banner for PECash and I put some text at the top of it. But the banner is right justified and that just makes the text look like it runs off the page. I just wanted to put some distance from the edge. When I try this it applys it to the whole table. I was going to nest a new table but that just seems to screw up the whole header. Thank you I will let you know how it goes...
juggernaut is offline   Reply With Quote
Old 2005-12-03, 02:18 PM   #15
oast
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
 
oast's Avatar
 
Join Date: May 2004
Location: UK
Posts: 316
As your banner cell is right aligned, the position of the banner will stay the same. If all banners are 468 pixels wide you can use a div to center the text above it:
Code:
<div style="width:468px;text-align:center;">
Your text centered under/over banner
</div>
So the code for the banner cell on your page(s) will be
Code:
<td width="59%" align="right" valign="top" bgcolor="#ffffff" class="topheader">
<div style="width:468px;text-align:center;color:#ff0000;font-size:10px">
BUY YOUR FAVORITE HOST A GIFT HERE!!
</div>
<script src="bannerdisplay/showbanner.php?catid="></script>
</td>
Hope that helps

Steve
__________________
Playboy Webmasters - The name says it all! $35 per signup or 60% revshare.
oast is offline   Reply With Quote
Old 2005-12-03, 02:41 PM   #16
juggernaut
Registered User
 
juggernaut's Avatar
 
Join Date: Apr 2005
Location: Central Jersey! If I was rich and powerful I would dress as my avatar does.
Posts: 1,448
Send a message via Yahoo to juggernaut
Quote:
Originally Posted by oast
As your banner cell is right aligned, the position of the banner will stay the same. If all banners are 468 pixels wide you can use a div to center the text above it:
Code:
<div style="width:468px;text-align:center;">
Your text centered under/over banner
</div>
So the code for the banner cell on your page(s) will be
Code:
<td width="59%" align="right" valign="top" bgcolor="#ffffff" class="topheader">
<div style="width:468px;text-align:center;color:#ff0000;font-size:10px">
BUY YOUR FAVORITE HOST A GIFT HERE!!
</div>
<script src="bannerdisplay/showbanner.php?catid="></script>
</td>
Hope that helps

Steve
First code worked just fine, thanks so much. I was dreading this today as I ended up getting side tracked and figured I would not get to this till later tonight. I can't say thanks enough..
juggernaut is offline   Reply With Quote
Old 2005-12-03, 02:49 PM   #17
oast
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
 
oast's Avatar
 
Join Date: May 2004
Location: UK
Posts: 316
NP... glad to help

One thing, tho; Take out the closing div after your banner call... it is no longer required.
__________________
Playboy Webmasters - The name says it all! $35 per signup or 60% revshare.
oast is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:38 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc