You put it in the right place but the iframe settings look muckey to me…
<iframe id=”shoutbox” src=”shoutbox/index.php” width=300 height=300 marginwidth=0 marginheight=1 hspace=1 vspace=1 frameborder=0 scrolling=auto>
The height and width are in pixles so change it to whatever you want.
if you dont want the horizontal scroll bar in the iframe you have to edit the css in the html (or php) page… in your case its the index.php for the shoutbox. Add this to the css in the shoutbox php file:
<head>
<style type=”text/css”>
body
{
overflow-x:hidden;
}
</style>
</head>
That should work dandy 🙂 Just edit the margins etc to what you want.
You’re simply brilliant! Thanx alot mate!!
I’ve got one more problem :$…
When I put this code in my sidebar:
<li id=”menu”><h2>Shoutbox</h2><br>
<iframe id=”shoutbox” src=”http://log.lenntheman.com/shoutbox/index.php” width=180 height=300 marginwidth=0 marginheight=1 hspace=1 vspace=1 frameborder=0 scrolling=auto style=”border: 1px dashed #92E12D”>
I don’t see anything from the code on the screen under the code above.. So my footer is gone and my Admin submenu…
Anyone?
you have to close the li tag and the iframe tag. Computers are stupid and only do what you tell them to do. I’ve noticed especially while using word press (php) that the smallest code problems that are normally OK in simple HTML will completely mess up your layout in PHP/CSS. Hard concept for little miss graphic design to get used to as I’m usually to busy annoying myself over 1pixle grapic differences and never take the time to worry about the code… I just let dreamweaver do all that for me 🙂 Anyway here is exacly how you should put it it:
<li id="menu"><h2>Shoutbox</h2><br>
<iframe id="shoutbox" src="http://log.lenntheman.com/shoutbox/index.php" width=180 height=300 marginwidth=0 marginheight=1 hspace=1 vspace=1 frameborder=0 scrolling=auto style="border: 1px dashed #92E12D"> </iframe></li>
Let me know if you have any other design prolems… I don’t know jack about code but anything related to this stuff I can do with my eyes closed 🙂
oh and make sure that your shoutbox iframe is smaller than the size you’ve allocated for the sidebar. That’s another thing that can spark the computer’s circuits.
=)! It worked again, thought i closed the tags already… Not a great star in coding either.. Designing is better :)! But thanks alot again!
welcome 🙂 i totally agree!