ladiie__piink
08-13-2006, 12:29 AM
Hi. I have this code for scrollboxes:
<Table Width=100 Height=100>
<Tr>
<Td Width=100 Height=100>
<div style="overflow:auto;width:100;height:100;">
TEXT
</Div>
</Td>
</Tr>
</Table>
When I put it on my site, only the arrows appear but I want a border around the box so that it is more orgazined. This is what it looks like now:
Click! (http://www.xanga.com/DCsx3__bolding) (the first entry)
How can I get this code to put a border around the scrollbox? PLEASE HELP!
General MJ
08-13-2006, 01:31 AM
<table height="*" width="*"border="*">
where stars are numbers...experiment with how thick of a border you want..i suggest 1
and shouldnt you have % or px after height and width numbers? or do i just do that?
WebBaka
08-13-2006, 01:33 AM
Try putting border 1px solid black; in your div styling. You can change the "1px" to whatever thickness you want, "solid" to the style you want (dashed, dotted, etc.) and "black" to the color you want. It's more flexible in terms of style than a table border. :)
~WebBaka
ladiie__piink
08-13-2006, 02:22 AM
I understand what you mean but can you write out the whole code? Cuz when I try to put the border inside the code, nothing happens. Sorry I don't really know what I'm doing! Is the code I was using before wrong?
General MJ
08-13-2006, 02:51 AM
I am guessing when you say you put border in, you mean you also updated it with an ftp app. If not theres your prob, but I am guessing you did.
well do everything you have done, except with the <table>, write this:
<table width="100" height="100" border="1">
or do what the other person said and write:
<div style="overflow:auto;width:100;height:100;" border="1px">
WebBaka
08-13-2006, 03:02 AM
I was saying to use CSS:
<div style="overflow:auto;width:100;height:100;border: 1px solid black;">
Or:
<table width="100" height="100" style="border: 1px solid black;">
With CSS, you can adjust the thickness, style, and color of the border. An HTML table border will show up as a browser default, which usually doesn't fit well with most website styles. :)
ladiie__piink
08-13-2006, 03:44 AM
Thank you SO much for helping! It worked =)
General MJ
08-13-2006, 04:01 AM
your welcome..i think i can take all teh credit for this (lol)
WebBaka
08-13-2006, 05:14 PM
lol, you're welcome. Too bad I get no credit now XD
General MJ
08-13-2006, 06:05 PM
well maybe you should have helped more....i mean all you did is spam this topic..lol jk