Question:
Dreamweaver MX and tables with Borders?
onecoloredfish
2007-06-17 10:12:16 UTC
I have created a website with tables. My client wants a white border around the WHOLE site which didnt seem that big a deal until i tried doing it. I selected "Modify>table>select table> and then used the properties box to put the border HOWEVER, it makes borders around the CELLS as well and I dont want that. SOOO, I selected the CELL and then told it "NO BORDER" but, it still shows the white border around the cell. The ONLY way I can kinda get rid of it is make the cell border "black" and that kinda blends in with some of the graphics BUT>>>> you can still kind of see it. SOOOO, my question is.... How do I put a white border around the entire table with NO borders around each individual cell? I cant figure out how to do it???
Three answers:
vrushali k
2007-06-18 04:29:51 UTC
Paste below code in youe head part of HTML







and apply class border to the outermost table.



like


Bingo... :)
Jason King
2007-06-18 15:24:21 UTC
Both the other two respondants are correct except that:



You shouldn't use a class, it should be an ID. Classes are for elements that may be repeated on the page; IDs are for one-off elements such as a border/menu/footer etc.



So the code should actually read:







and apply class border to the outermost table.



like
x.eternal_wind
2007-06-17 17:22:04 UTC
you should use Divs for that. then set a border style for the div.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...