Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

Cell spacing prob in CSS

This is a discussion on "Cell spacing prob in CSS" within the Web Page Design section. This forum, and the thread "Cell spacing prob in CSS are both part of the Design Your Website category.


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jun 30th, 2008, 10:20
Junior Member
Join Date: May 2008
Location: London
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Cell spacing prob in CSS

Having trouble spacing out my cells using CSS. I am using a table layout in HTML for a page, that page referencing an external CSS stylesheet.

I want my 3 columns (which contain my content) to have some space between each other, so you can see some of the background image between them as the user scrolls down.

I just don't get the border-spacing tag - it doesn't seem to work for me. I'm obviously doing something completely wrong here:

table.tablestyle {width:100%}

td.leftcol {background-color:#FFFFCC; padding: 0.5cm; border-spacing: 45px}

td.rightcol {background-color:#FFFFCC; padding: 0.5cm}

td.centercol {background-color:#CCFFCC; padding: 0.5cm}


I'm experimenting on the left column, but nothing's happening. The colours work ok, so the HTML is referencing the classes fine. I've put in borders and tried many things, but to no avail. Please help an idiot boy.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old Jun 30th, 2008, 10:32
Reputable Member
Join Date: Mar 2008
Location: Chester, UK
Age: 18
Posts: 465
Thanks: 2
Thanked 33 Times in 33 Posts
Re: Cell spacing prob in CSS

I'm dire with tables, always been dead complex... but... you know the 45px spacing will be added to ALL sides of that cell

Code: Select all
 border-spacing: 0 45px 0 0;
Would just add it to the right side. (the values go clock wise... or like a compass Top, Right, Bottom, Left)

Oh also what browser are you using? aaaaand have you got a link so we can see?

This flagged up Not supported by IE on a google search.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jun 30th, 2008, 11:57
Junior Member
Join Date: May 2008
Location: London
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Cell spacing prob in CSS

Hmm. Whatever I try doesn't work at all. I think I need to sit down with my fat HTML/CSS book and read up on tables in CSS - there's obviously a major gap in my knowledge. Maybe tables can't do what I want. I just want some space between the cells to you can see the fixed background as you scroll - but no. It's purely cosmetic, so not vital.

Perhaps you can't see through parts of a table, which is what I need to be able to do.


Oh well.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

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
[MX] actionscript prob nutbolt Flash & Multimedia Forum 0 May 21st, 2007 18:04
ie6 prob with header karloff Web Page Design 1 Apr 27th, 2007 22:05
hey.. image prob mohammedhajat Flash & Multimedia Forum 8 Oct 4th, 2006 14:11
nav bar prob OK IE6 wrong FF brunoc Web Page Design 1 May 8th, 2006 03:47
IE prob karloff Web Page Design 11 Apr 24th, 2006 12:41


All times are GMT. The time now is 18:57.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8