Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 13th, 2006, 12:29 PM
Authorized User
 
Join Date: Oct 2004
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default Very Basic Question on Spacing with CSS

Hi,

I am using asp to generate a page that has a series of tables.
I am seperating them with <br>. I would prefer to have a gap of 2px between them instead. How do I do this?

thanks, Guy




 
Old December 13th, 2006, 12:35 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Use a margin.

--
http://yupapa.com
 
Old December 13th, 2006, 07:15 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

This class works for me:

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

Wind is your friend
Matt
 
Old December 14th, 2006, 07:24 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Well, that won't create a space, a margin, between tables. It will create space inside the table cells, pad them all around.

--
http://yupapa.com
 
Old December 14th, 2006, 04:33 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Well meow, I guess I didnt read the question properly did I...

guynorton - You can apply that style to a table, a cell or what ever you like. Now you know two ways to skin your cat.

Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
Parser Error w/ REALLY Basic CSS martini_shark CSS Cascading Style Sheets 3 November 25th, 2006 02:39 AM
Please HELP Very Basic Question jkoe578 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 November 18th, 2006 10:06 AM
basic xslt Question abhishek verma XSLT 4 January 24th, 2006 05:35 AM
basic question but..... Adam H-W Javascript How-To 2 February 10th, 2004 01:24 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.