fido — 2004-07-19T09:19:02-04:00 — #1
Can I make a border around a single cell in dreamweaver?? , I mean I want to make a border around one cell only and not the entire table.
Thanks for your help and God bless you
vikrantkorde — 2004-07-19T09:36:51-04:00 — #2
You can set a TD property say "border = 1"
This will solve ur problem
willigogs — 2004-07-19T10:25:28-04:00 — #3
I actually don't think you can apply borders to TDs?
Tables Yes - Cells No.
However, an easy way of achieving this is to use a simple bit of CSS. Here's how you do it:
Put this between your <head> Tags:
border: 1px solid #FF0000;
Then - go to your cell that you wish to apply a border to and add the following code:
Hey presto! that should do it! You can make the border thicker or thinner by changing it from 1px to whatever you like - and then the colour by changing the Hex code.
Hope this helps!
fido — 2004-07-19T14:50:33-04:00 — #4
Thanks, I will try it and see what happens
God bless you
fido — 2004-07-19T14:57:16-04:00 — #5
It messed up my code
It moved the cell to the right of the page and decreased its width?!!
gohankid77 — 2004-07-19T15:00:45-04:00 — #6
That is the problem with tables. Play with the width:
border: 1px solid #FF0000;
fido — 2004-07-19T15:30:54-04:00 — #7
ok I will try that, by the wya what do u think better designing with tables or what?? I find a lot of pain myself designing and adjusting tables
gohankid77 — 2004-07-19T16:45:43-04:00 — #8
I don't use tables much, but I would have to agree with you. It is a HUGE pain designing and adjusting tables. That is why I'm trying to hurry up and learn more CSS so I can create a "table-less layout".
vikrantkorde — 2004-07-20T06:53:30-04:00 — #9
I agree that there is no property as a border for the TD i was wrong.
About usage of table, i will support this as that is the one of the way by which you can have ur page look good
another way is u can go for DIV or SPAN tags.
jag5311 — 2004-07-20T11:28:30-04:00 — #10
you can apply borders to table cells, not like border="1" or anything, but through css you can apply a border to just about anything except TR from my experience.
fido — 2004-07-29T01:01:50-04:00 — #11
how can you apply border to table cells? I just tried the above css example and it messed up my code.
willigogs — 2004-07-29T04:21:51-04:00 — #12
Would you be able to provide a link / post the code of your example, as I can't understand how simply adding a border around a cell could throw out your code so badly.
Maybe it's something very simple that I've overlooked?
system — 2014-10-07T20:30:22-04:00 — #13
This topic is now closed. New replies are no longer allowed.