Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » HTML - CellPadding - one side?
Closed Thread
Old 10-06-2004, 06:35 PM   #1 (permalink)
 
Junior Techie

Join Date: Sep 2004

Posts: 85

ayenem

Default HTML - CellPadding - one side?

I cant find answers any where in cyber space. Maybe somebody here knows whether its possible to "pad" just one side (top, bottom, left OR right) of a cell?

Thanks.
ayenem is offline  
Old 10-06-2004, 06:44 PM   #2 (permalink)
TheMajor's Avatar
 
PowerQuest / Opera

Join Date: Jun 2004

Location: Netherlands

Posts: 10,101

TheMajor is on a distinguished road

Default

no, i don't think its possible
__________________
TheMajorMMX - Intel P200 MMX @ 225Mhz - V-Tech (PcPartner) Baby-AT mb w/ Intel Triton TX chipset - Nvidia Riva TNT2 M64 w/ 16MB - Still running.....
TheMajor is offline  
Old 10-06-2004, 06:58 PM   #3 (permalink)
 
Monster Techie

Join Date: Jul 2003

Posts: 1,179

Emily is on a distinguished road

Send a message via AIM to Emily
Default

What you can do is embed another table inside that cell with the width that you want (for example, 95% would appear to be 5% cellpadding) and then align it or valign it accordingly.
__________________
<a href=\"http://www.upstark.com\">www.upstark.com</a>
Emily is offline  
Old 10-06-2004, 07:56 PM   #4 (permalink)
 
Junior Techie

Join Date: Sep 2004

Posts: 85

ayenem

Default

i got another answer on a diff forum. He suggested something along the lines of:

padding-left: "5px"

placed in a CSS and then call it using <DIV> when needed.

What do you think?
ayenem is offline  
Old 10-06-2004, 08:01 PM   #5 (permalink)
 
Junior Techie

Join Date: Sep 2004

Posts: 85

ayenem

Default

OOHH I GOT IT *grins*

check it out-

.leftbar {
padding-left: 2px;
padding-right: 0px;
padding-top: 0px;
padding-bottom: 0px;
}

...

<div class="leftbar"></DIV>

man thats so cool when you finally figure something out on your own that you have been trying to do for a long time. hehe im all smiles right now. man im a dork lol
ayenem is offline  
Old 10-06-2004, 08:08 PM   #6 (permalink)
ADZ
 
Master Techie

Join Date: May 2003

Posts: 2,233

ADZ is on a distinguished road

Send a message via Yahoo to ADZ
Default

nicely done!! cheers mate i can use that too
ADZ is offline  
Old 10-06-2004, 08:58 PM   #7 (permalink)
 
Junior Techie

Join Date: Sep 2004

Posts: 85

ayenem

Default

Yeah that was hard to find, so if mods wanna snatch that up and store it some where for TF people to use go for it.
ayenem is offline  
Old 10-06-2004, 11:38 PM   #8 (permalink)
 
Monster Techie

Join Date: Jul 2004

Location: Manchester, UK

Posts: 1,909

Blind_Arrow

Default

i'll use it too though I think u can find this in dreamweaver's CSS reference
__________________
Intel Core2Quad 2.66Ghz 12MB L2-Cache
4096MB DDR Kingston Hyper-X
GigaByte GA-P35-DS3R
XFX 9600GT AlphaDog
Seagate 2 X 320GB SATA2
LG L246WH Flatron 24"
Sony DVD-RW
Blind_Arrow is offline  
Old 10-14-2004, 05:04 AM   #9 (permalink)
 
Monster Techie

Join Date: Oct 2003

Posts: 1,849

Demalii is on a distinguished road

Send a message via ICQ to Demalii Send a message via AIM to Demalii Send a message via Yahoo to Demalii
Default

you can also use this code inside tables if you need to

<td style="border-top: 1px solid #000000"
<td style="border-bottom: 1px solid #000000"

etc...
__________________

3DMark06: 16,326 (avg of 3 runs)
3Dvantage: 12,810 (avg of 3 runs)
-> I did it, so can you, and now my cellphone bills are paid woot
Demalii is offline  
 
Closed Thread

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On