• Dunno if this is the right part of the forum but didn’t know where i had to put it else..

    I inserted this little code for a tagboard in my sidebar:

    <div id=”menu”><h2>Shoutbox</h2><br>
    <iframe src=”shoutbox/index.php” width=”99%” height=”300″ frameborder=”0″ scrolling=”auto” name=”tagboard” style=”overflow-y: scroll; overflow-x: auto”></iframe>
    </div>

    But then I get a little white border at the right like this:

    http://www.lenntheman.com/look.jpg

    Anyone got a solution?

    Thanx in advance…

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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.

    Thread Starter lenntheman

    (@lenntheman)

    You’re simply brilliant! Thanx alot mate!!

    Thread Starter lenntheman

    (@lenntheman)

    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&#8221; 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.

    Thread Starter lenntheman

    (@lenntheman)

    =)! 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!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Delete white border’ is closed to new replies.