Overclockers Australia Forums
OCAU News - Wiki - QuickLinks - Pix - Sponsors  

Go Back   Overclockers Australia Forums > Software Topics > Programming & Software Development

Notices


Sign up for a free OCAU account and this ad will go away!
Search our forums with Google:
Reply
 
Thread Tools
Old 12th October 2004, 12:06 PM   #1
ChEEkY ChiNo Thread Starter
Member
 
ChEEkY ChiNo's Avatar
 
Join Date: Sep 2002
Location: Campbelltown, NSW
Posts: 2,108
Default How to do this in css...

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
ChEEkY ChiNo is offline   Reply With Quote

Join OCAU to remove this ad!
Old 12th October 2004, 1:21 PM   #2
AndyCosmonaut
Member
 
AndyCosmonaut's Avatar
 
Join Date: Feb 2003
Posts: 165
Default

You should be able to do it with:
Code:
.maintable {
    border-collapse: collapse;
    ....
}
AndyCosmonaut is offline   Reply With Quote
Old 12th October 2004, 2:11 PM   #3
bluedreamer
Member
 
Join Date: Mar 2003
Location: Sydney
Posts: 1,744
Default

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 .
bluedreamer is offline   Reply With Quote
Old 12th October 2004, 4:39 PM   #4
Adeptus
Member
 
Adeptus's Avatar
 
Join Date: May 2002
Location: Adelaide, SA
Posts: 761
Default

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
Adeptus is offline   Reply With Quote
Old 12th October 2004, 5:10 PM   #5
ChEEkY ChiNo Thread Starter
Member
 
ChEEkY ChiNo's Avatar
 
Join Date: Sep 2002
Location: Campbelltown, NSW
Posts: 2,108
Default

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:
I mean you seem to come up with these problems too frequently
And you mean what by that?
__________________
Kekeke

Last edited by ChEEkY ChiNo; 12th October 2004 at 5:11 PM.
ChEEkY ChiNo is offline   Reply With Quote
Old 12th October 2004, 8:17 PM   #6
bluedreamer
Member
 
Join Date: Mar 2003
Location: Sydney
Posts: 1,744
Default

Quote:
Originally Posted by ChEEkY ChiNo
And you mean what by that?
That you would be a much better developer if you had the reference material in front of you. You don't need to know much css to find out those properties, you just get a list of the properties and look it up, lo and behold it's all there, no hidden anythings that everyone else knows that you don't. It's the same for every programming task. dom = document object model which is basically the hierarchical structure of everything in webpages. You can use javascript to manipulate the dom easily, all you need is the list of properties for the document object model and related functions, and a list of css properties that can be manipulated. All to do with reference. Then the rest is google-able - e.g. this problem.
bluedreamer is offline   Reply With Quote
Reply

Bookmarks

Sign up for a free OCAU account and this ad will go away!

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

Forum Jump


All times are GMT +10. The time now is 1:26 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. -
OCAU is not responsible for the content of individual messages posted by others.
Other content copyright Overclockers Australia.
OCAU is hosted by Internode!