Results 1 to 3 of 3

Thread: Page appears some what off in Object

  1. #1
    Join Date
    Oct 2012
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Page appears some what off in Object

    As most who know who have been helping me. I have a list that need to be embedded in forum post. Now I know how to do this, but the page (logo section) is off alignment. How can I fix this so it aligns on the site and inside the OBJECT element on the other site.

    Site: http://zanime.net
    Object Section: http://forums.kevenpirritano.com/ind...e__p__4#entry4

    HTML
    HTML Code:
    <div id="logo-container">
    <img src="images/logo.png" alt="" />
    <input type="reset" value="Intructions" id="instructions">
      <input type="reset" value="Reset" id="reset">
    </div>
    <div id="dropdown-container">
      <div id="dropdown-header">
        <span>Software Filter</span>
      </div>
      <p id="dropdown-description">
      <select name="filterBox1" id="filterBox1">
      <option value="">OS</option>
      <option value="Windows" id="windows">Windows</option>
      <option value="Linux" id="linux">Linux</option>
      <option value="Mac" id="mac">Mac</option>
      </select>
      <br />
      <select name="filterBox2" id="filterBox2">
      <option value="">Type</option>
      <option value="2D">2D</option>
      <option value="3D">3D</option>
      <option value="2D3D">2D & 3D</option>
      </select>
      <br />
      <select name="filterBox3" id="filterBox3">
      <option value="">Price Type</option>
      <option value="Free">Free</option>
      <option value="Commercial">Commercial</option>
      </select>
      </p>
     <div id="dropdown-footer">
      </div>
    </div>
    CSS
    HTML Code:
    #logo-container{
    	 width:295px;
    	 height:50px;
    	 position:relative;
    	 top:90px;
    	 left:450px;
     }
     #dropdown-container{
    	width:120px;
        margin:auto;                    /*this may be removed */
        border:1px solid #000;
        border-radius:5px 5px 0 0;
    	background-image:url(../images/table-bg.jpg);
        overflow:hidden;
        box-shadow:6px 6px 6px #666;    /*this may be removed */
    	text-align: left;
    	position:relative;
    	left:190px;
     }
    #dropdown-header{
    	padding:4px;
    	background-image:url(../images/bg-title.png);
        background-repeat:repeat-x;
        background-position:0 -2px;
        font-size: 15px;
        font-weight:bold;
        text-shadow: 1px 1px 1px #143607;
        filter: dropshadow(color=#143607, offx=1, offy=1);
        color:#fff;
    }
    #dropdown-description{
    	float:left;
        width:160px;
    	height:65px;
        padding:3px 10px;
        margin:0;
        font-weight:bold;
    }
    #dropdown-footer{
    	clear:both;
        padding:4px;
        background-color:#466505;
        font-size:17px;
        text-shadow:1px 1px 1px #143607;
        filter: dropshadow(color=#143607, offx=1, offy=1);
        color:#eee;
        overflow:hidden;
    }

  2. #2
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    in Javascript, you could check if the website is in a frame, as it is embedded in the post with something like:
    Code:
    if (window.top != window.self){
    }
    And then adjust your css accordingly. So you could, for example change the positioning of objects if the website is in an iframe. So, something like:
    Code:
    if (window.top != window.self){
        document.getElementById('dropdown-container').style.css = /*etc...*/ ;
    }
    Or alternatively, seeing how it appears to be your site, you could adjust how embedded websites appear on the site. If you don't want to edit the source code yourself, go take a look at the forum makers website (http://www.invisionpower.com/apps/board/) and see if there is an option for that.
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    There is no iframe. I'd just make the object a little wider, say 540, and use these styles for the logo:

    Code:
    #logo-container { 
    margin: 0px auto;
    height: 50px;
    left: -7px;
    position: relative;
    top: 90px;
    width: 492px;
    }
    You will also need to add a br to the logo-container:

    Code:
    <div id="logo-container">
      <img src="images/logo.png" alt="">
      <br>
      <input type="reset" value="About Us" id="about">
      <input type="reset" value="Intructions" id="instructions">
      <input type="reset" value="Reset" id="reset">
    </div>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. Lightbox image appears low on page
    By seabird in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 11-25-2009, 11:57 AM
  2. MSN Type Popup that appears at the bottom of the page at the right with a delay
    By hellothere in forum Looking for such a script or service
    Replies: 1
    Last Post: 07-23-2008, 06:43 PM
  3. Looking for a Magic Wizard Guy who appears on loaded page
    By AlphaOne in forum Looking for such a script or service
    Replies: 1
    Last Post: 02-03-2008, 04:45 AM
  4. Replies: 3
    Last Post: 09-24-2007, 02:45 PM
  5. WANTED: Tooltip that appears on page loading
    By maffpunton in forum JavaScript
    Replies: 0
    Last Post: 09-11-2005, 07:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •