![]() |
![]() OCAU News - Wiki - QuickLinks - Pix - Sponsors |
|
|||||||
| Notices |
|
Sign up for a free OCAU account and this ad will go away! Search our forums with Google: |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Member
Join Date: Sep 2002
Location: Campbelltown, NSW
Posts: 2,108
|
For the following line i want to have the cellspacing and cellpadding set as 0 but through css, how can i do that?
<table class='maintable' cellspacing='0' cellpadding='0'> TO THIS <table class='maintable'> Cheers
__________________
Kekeke |
|
|
|
| Join OCAU to remove this ad! |
|
|
#2 |
|
Member
Join Date: Feb 2003
Posts: 165
|
You should be able to do it with:
Code:
.maintable {
border-collapse: collapse;
....
}
|
|
|
|
|
|
#3 |
|
Member
Join Date: Mar 2003
Location: Sydney
Posts: 1,744
|
Cheeky, out of curiousity, how familiar are you with css and the dom? I'm guessing self-learnt. How many tutorials have you done? I mean you seem to come up with these problems too frequently. This is one of those bordering on "go google it" responses: 'cos typing "cellspacing cellpadding css" in yahoo returned a first result of:
http://forums.devshed.com/t43178/s7d...8dca1bdef.html which is exactly what you asked I would think. What gets me by in almost EVERYTHING I ever do with css and html and javascript is: css property reference (all the styles stuff) dom properties reference (all the html stuff) There was some website posted here a while ago with a link to a place where you could print it all out and stick it on your wall. I 'think' this is the one, seems to have evolved a bit. http://www.visibone.com/ Every time you need to look up something, it's basically ALL there. Believe me, it will save you a lot of time asking other people. Not trying to hack you down, just trying to point out you can save yourself a lot of time by having the references and just going through the list when you need something. You might not know what you're looking for but when you go through the properties list you find it very easily. Or you could have a reference list like: http://www.blooberry.com/indexdot/css/propindex/all.htm . |
|
|
|
|
|
#4 |
|
Member
Join Date: May 2002
Location: Adelaide, SA
Posts: 761
|
I found some Windows Help files years ago, that I use for HTML & CSS references... can be found on www.htmlhelp.com
__________________
"I think there is a world market for maybe five computers." - Thomas Watson, Chairman of IBM, 1943 "There is no reason anyone would want a computer in their home." - Ken Olson, founder of Digital Equipment Corp., 1977 "640K ought to be enough for anybody." - Bill Gates, 1981 Last edited by Adeptus; 12th October 2004 at 4:45 PM. Reason: wrong url |
|
|
|
|
|
#5 | |
|
Member
Join Date: Sep 2002
Location: Campbelltown, NSW
Posts: 2,108
|
I know enough css to get me through the day and learn a little more every day, i dont know what dom is.
I could just use <table cellspacing='0' cellpadding='0'> but thought that it might be better doing it in css, don't have time to go learn css so i posted here ![]() Quote:
__________________
Kekeke Last edited by ChEEkY ChiNo; 12th October 2004 at 5:11 PM. |
|
|
|
|
|
|
#6 | |
|
Member
Join Date: Mar 2003
Location: Sydney
Posts: 1,744
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
|
Sign up for a free OCAU account and this ad will go away! |
| Thread Tools | |
|
|