unable to set padding

This is a discussion on "unable to set padding" within the Web Page Design section. This forum, and the thread "unable to set padding are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 1st, 2007, 03:27
Reputable Member
Join Date: Jan 2004
Location: California
Age: 19
Posts: 232
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via AIM to tox0tes
unable to set padding

I just redesigned this site using divs, but now there's something in the stylesheet that is making it impossible to specify cellpadding for my tables. It gives left and right cellpadding but not top and bottom.

http://www.solsurfer.com/products.php
Reply With Quote

  #2 (permalink)  
Old Jul 1st, 2007, 10:09
Reputable Member
Join Date: Jun 2007
Location: Bellevue, SK, Canada
Age: 28
Posts: 222
Thanks: 0
Thanked 0 Times in 0 Posts
Re: unable to set padding

did you try this?
Code: Select all
    padding-top: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
Reply With Quote
  #3 (permalink)  
Old Jul 1st, 2007, 11:33
New Member
Join Date: Jun 2007
Location: LoveLand
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Re: unable to set padding

seems you have already resolved the problem?
if not, let me know at what specific area you require top & bottom padding in the specified url?
Reply With Quote
  #4 (permalink)  
Old Jul 1st, 2007, 11:40
SuperMember

SuperMember
Join Date: Apr 2007
Location: Ireland
Age: 15
Posts: 332
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Pádraig
Re: unable to set padding

Quote:
Originally Posted by delusion View Post
did you try this?
Code: Select all
    padding-top: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    padding-left: 10px;

If you want to use shorthand...
Code: Select all
padding: 10px 10px 10px 10px;
Reply With Quote
  #5 (permalink)  
Old Jul 1st, 2007, 12:01
New Member
Join Date: Jun 2007
Location: LoveLand
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Re: unable to set padding

There are various ways to give padding:

The sides of the box are ordered in clockwise fashion, starting from top

Top, Right, Bottom, Left

Padding: 1px 2px 3px 4px;
OR
padding-top: 1px;
padding-right: 2px;
padding-bottom: 3px;
padding-left:4px;
OR
What if All sides are not defined
If all 4 are defined
Padding: T R B L;
If 3 are defined
Padding: T R/L B;
If 2 are defined
Padding: T/B R/L;
If only 1 is defined
Padding: T/R/B/L;
Reply With Quote
  #6 (permalink)  
Old Jul 1st, 2007, 16:45
SuperMember

SuperMember
Join Date: May 2006
Location: North West, UK
Age: 21
Posts: 1,173
Thanks: 0
Thanked 0 Times in 0 Posts
Re: unable to set padding

Yeah, just padding:10px; would work fine.

Pete.
Reply With Quote
Reply

Tags
css

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to navigate flash glworks Flash & Multimedia Forum 0 Mar 28th, 2008 14:35
Unable to multiply without pressing button codeexplorer JavaScript Forum 2 Oct 1st, 2007 11:25
unable to insert flash content in DW dimitri Scripts and Online Services 0 Aug 31st, 2007 13:34
why am i unable to view my flash? drew68 Flash & Multimedia Forum 5 Feb 8th, 2007 05:33
Unable to get correct leading Audioz Web Page Design 4 Nov 14th, 2004 19:32


All times are GMT. The time now is 21:21.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43