HTML Help Forum Index HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

how to add a solid 1px black all over my website
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum Index -> HTML Table
View previous topic :: View next topic  
Author Message
steve-sbt



Joined: 19 Nov 2008
Posts: 3

Posted: Wed Nov 19, 2008 10:58 am     how to add a solid 1px black all over my website  

i'm having a really big problem with this i can add it on the left, right, top & button but not all at once i dont know what i'm doing right is there another html code that you have to put with it,

can anybody out me out here please :)
sticks464



Joined: 31 Dec 2006
Posts: 1283

Posted: Wed Nov 19, 2008 12:00 pm      

Depends what your layout is. If it takes the whole scree then put a border around the body
Code: body{
background: #fff;
border: 1px solid #000;
}

If it's a table you want a border on then this
Code: table {
border: 1px solid #000;
{
th, tr, td, tbody {
border: none;
}
steve-sbt



Joined: 19 Nov 2008
Posts: 3

Posted: Thu Nov 20, 2008 12:50 am      

it's going on all the tabless, have a look my testing site

http://staffy-bull-terrier.niceboard.com/testing23-h82.htm

you will see the inside table has a black boarder to, is there a way to stop that happening?
sticks464



Joined: 31 Dec 2006
Posts: 1283

Posted: Thu Nov 20, 2008 4:44 am      

Give the content table an id
Code: <table id="content" width="605" height="584">

Then add it to this
Code: th, tr, td, tbody, table#content {
border:none;
}
If that doesn't do the trick drop the leading table
Code: th, tr, td, tbody, #content {
border:none;
}
 
 
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum Index -> HTML Table
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group