inherit
148557
0
Jul 17, 2019 15:00:57 GMT -8
Lien Braska
Join me...
32
October 2009
lienbraska
|
Post by Lien Braska on Dec 6, 2014 11:23:44 GMT -8
So I... put a sidebar statistic in with a boarder and it worked great! Except... the boarder went all over my board. =/ I am not great with coding, still learning, but if you could please help me figure out how to get the boarder off the rest of the board I would super appreciate it. This is my board: lotuslien.proboards.com/ Here is the code I put into the side bar: <html>
<head>
<style>
table, th, td {
border: 1px solid black;
}
</style>
</head>
<body>
<table style="width:100%">
<td><p style="font-size:120%">Male Students</p></td>
<td><p style="font-size:120%"><center>6</center></p></td>
</tr>
<tr>
<td><p style="font-size:120%">Female Students</p></td>
<td><p style="font-size:120%"><center>6</center></p></td>
</tr>
<tr>
<td><p style="font-size:120%">Male Adults</p></td>
<td><p style="font-size:120%"><center>4</center></p></td>
</tr>
<tr>
<td><p style="font-size:120%">Female Adults</p></td>
<td><p style="font-size:120%"><center>0</center></p></td>
</tr>
</table>
</body>
</html>
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Dec 8, 2014 11:22:58 GMT -8
Hi Lien Braska,
I'm not sure if you got this fixed or not but the code you posted should have all this removed in red:
<html> <head> <style> table, th, td { border: 1px solid black; } </style>
</head> <body> <table style="width:100%"> <td><p style="font-size:120%">Male Students</p></td> <td><p style="font-size:120%"><center>6</center></p></td> </tr> <tr> <td><p style="font-size:120%">Female Students</p></td> <td><p style="font-size:120%"><center>6</center></p></td> </tr> <tr> <td><p style="font-size:120%">Male Adults</p></td> <td><p style="font-size:120%"><center>4</center></p></td> </tr> <tr> <td><p style="font-size:120%">Female Adults</p></td> <td><p style="font-size:120%"><center>0</center></p></td> </tr> </table>
</body> </html>
If you want a border around your td tags you could do something like this:
Add an id to your table tag:
<table id="my_boxes" style="width:100%">
And then your css would be something like this:
<style> #my_boxes td{border: 1px solid black; } </style>
What you had in your css was affecting all td tags on your forum. But I have a feeling you have it fixed. (Sorry, my computer is not letting me load your site.)
|
|
inherit
148557
0
Jul 17, 2019 15:00:57 GMT -8
Lien Braska
Join me...
32
October 2009
lienbraska
|
Post by Lien Braska on Dec 8, 2014 17:14:49 GMT -8
I got it! at first I messed up a bit and then I played with it and finally got it to work. Thanks Tumbleweed!
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Dec 8, 2014 21:18:51 GMT -8
Good to hear that and you're welcome! Have fun with your site!
|
|