Web-design help
- Started
- Last post
- 30 Responses
- defunktion
Hey, I'm new to Newstoday (been following it for about two weeks and finally decided to register!).
Anyway, I'm currently building my site and got a friend to design a page to illustrate a question I asked him.
There seems to be small 1 pixel type borders inbetween each table (I think that is the correct terminology, sorry if not and DO correct me), I can't seem to work out how he has made them.
I have edited out everything from the page and uploaded it here http://www.defunktion.net/help.h… so you can see the exact thing I mean.
So...anyone have the answer!?!
Also what does " " mean?
I searched on google and it said non-breaking spaces...but what does that mean exactly, and what is the purpose.I apologise if these questions seem a bit on the simple side, but, I've got to learn somewhere and so far I've found this board to be a great source of help and information!
Thanks,
Olly Defunktion
- Biofreak0
set your cell spacing to "0"
- Biofreak0
oh, and hello. i am eric or Bio. whatever.
nice to have you round. =)
- Nirvous0
Yeah cell spacing is 1 px change to 0
- quincyglenn0
you should have cellpadding="0" cellspacing="0" and border="0" but it also sounds like you need some basic resources like:
http://hotwired.lycos.com/webmon…
or
good luck
- neeko0
yup... what they said.
you can get unwanted spaces in tables with too many returns sometimes too.
(just thought id try to add something.)
- ********0
i just agree
- defunktion0
Thankyou, and hello Bio and everyone else!
I'll follow those links up, I'm going to have a look at the code now.
I want those spaces but I didn't understand why they are there...so thankyou!
- defunktion0
Where does it actually refer to cell spacing and padding in the code?
Am I being blind?
- Biofreak0
oh and also,
http://www.w3schools.comand
are fantastic resources for startig out html, css, dhtml etc etc.
very easy to understand and simply written. =)
- neeko0
it doesnt... you need to set it inside the table tag like so
table cellspacing=0 cellpadding=0 border=0
or exchange the 0 to 1 for cellspacing to keep that space... i believe the default is 1, thats why the space is there now.
- schjetne0
Welcome to Newstoday!
What you're asking about is as simple as this:
Your friend made a gif that is 1x1 pixels, and put them into table cells to make sure the cells are 1 pixel wide or high.
As Vena surely would agree with me in, search for the thread about tables vs css, and you'll find some pointers on why you should use css to lay out your designs instead of tables.
- Xentic0
you get that space by default. You need to put something like cellspacing=0 in the table tag when you don't want them
- schjetne0
Oh, I guess I was wrong in my post...
- BlueTree0
It's because you don't have anything specified for the cellspacing... so it defaults to having some cellspacing.
If you want to remove or add to the spacing add cellspacing=0 or another number to the Table tag.
- kpl0
tables are evil evil evil eivl vevl viel vevl iev evi eve ev ev ev e ve veb eb eb eb.
- neeko0
the longer i stare at what little code is there, the more i am quite convinced there is no transparent gif there...
- Xentic0
hehe, schjetne
already said he was wrong
- BlueTree0
How many web designers does it take to screw in a ....
- defunktion0
Hahaha. I get the fear when I stare at my monitor for too long these days. Those screaming flash website things have really damaged me forever.
I read through the whole of that CSS vs Tables thread earlier on today. I do use CSS, but, only for setting link attributes like hover colour and font sizes etc. I was previously completely unaware a CSS could be used for layout.
In fact, I still don't quite understand or believe it!
- Xentic0
you should try to play a little with the DIV tag... It's real fun if it's working.
Do you have Dreamweaver? I'm not saying that's a good APP but you can play with the layers and place them wher ever you want... when you check the code you'll see DIV tags with CSS!