Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
  1. #1
    Senior Member duck444's Avatar
    Join Date
    Feb 2003
    Location
    east coast
    Posts
    402
    Member #
    751
    Liked
    2 times
    Hi,

    I would like to put two elements on a web page - an embedded flash element (site) and a php rss feed - side by side and centered...How do I code this? I cant figure out the right css inline coding to pull this off ...either one element over laps the other or the other element is on the wrong line...Below are the codes for the embedded flash site and the php rss feed...If anyone know a reliable way to do this it would be most helpful if you shared...Thank you very much.

    Code:
    <object width="700" height="700">
    <param name="movie" value="flashmo_166_night_club.swf">
    <embed src="flashmo_166_night_club.swf" width="700" height="700">
    </embed>
    </object>
    HTML Code:
    <?php readfile('http://output38.rssinclude.com/output?type=php&id=12882&hash=1c47788fee5dd09f4c610508c6e1fcdd')?>

  2.  

  3. #2
    Junior Member MCS-Services's Avatar
    Join Date
    Jun 2009
    Location
    Las Vegas Nevada
    Posts
    6
    Member #
    19215
    Couldn't you just wrap them in a div, then put each one in a div and float left?

  4. #3
    Senior Member duck444's Avatar
    Join Date
    Feb 2003
    Location
    east coast
    Posts
    402
    Member #
    751
    Liked
    2 times
    Well, I did that but I can control them...I can't seem to set the parameters so they are perfectly side by side...one either overlaps the other or the other goes to a lower line....

  5. #4
    Junior Member MCS-Services's Avatar
    Join Date
    Jun 2009
    Location
    Las Vegas Nevada
    Posts
    6
    Member #
    19215
    Can you post your code?

  6. #5
    Senior Member duck444's Avatar
    Join Date
    Feb 2003
    Location
    east coast
    Posts
    402
    Member #
    751
    Liked
    2 times
    Quote Originally Posted by MCS-Services
    Can you post your code?

    Sure...

    HTML Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html lang='en'>
    <head>
    <meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-1'>
    <title>Untitled</title>
    <style type="text/css">
    body {
       margin: 0;
       padding: 0;
       background-color: #000;
    }
    #container {
       margin: 1%;
       padding: 0;
       width: 100%;
       background-color: #000
    }
    #left, #right {
       float: left;
       width: 46.5%;
       margin: 1% 0 1% 1%;
       padding: 1%;
       background-color: #000;
       color: #000;
    }
    #right {
       float: right;
       margin: 1% 1% 1% 0;
    }
    .clear {
       height: 0;
       font-size: 1px;
       margin: 0;
       padding: 0;
       line-height: 0;
       clear: both;
    }
    </style>
    </head>
    <body>
     <div id="container">
      <div id="left">
       <p><object width="700" height="700">
    <param name="movie" value="flashmo_166_night_club.swf">
    <embed src="flashmo_166_night_club.swf" width="700" height="700">
    </embed>
    </object></p>
      </div><!-- left -->
      <div id="right">
       <p>
    <?php readfile('http://output38.rssinclude.com/output?type=php&id=12882&hash=1c47788fee5dd09f4c610508c6e1fcdd')?></p>
      </div><!-- right -->
      <div class="clear"></div>
     </div><!-- container -->
    </body>
    </html>

  7. #6
    Junior Member MCS-Services's Avatar
    Join Date
    Jun 2009
    Location
    Las Vegas Nevada
    Posts
    6
    Member #
    19215
    whoa...you got a lot going on.

    You just want to put the flash and the rss feed in a top container/header...correct?

  8. #7
    Junior Member MCS-Services's Avatar
    Join Date
    Jun 2009
    Location
    Las Vegas Nevada
    Posts
    6
    Member #
    19215
    Is this what you need?

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html lang='en'>
    <head>
    <meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-1'>
    <title>Untitled</title>
    <style type="text/css">
    body {
       margin: 0;
       padding: 0;
       background-color: #000;
    }
    
    #container {
       text-align:center;
       width:100%;
       
      }
    
    #left {
       width:100%;
       margin: 0;
            
    }
    
    #right {
       width:100%;
       margin: 0;
    }
    
    .clear {
       height: 0;
       font-size: 1px;
       margin: 0;
       padding: 0;
       line-height: 0;
       clear: both;
    }
    </style>
    </head>
    <body>
     <div id="container"><!-- left -->
              <span id="left"><object width="700" height="700">
            <param name="movie" value="flashmo_166_night_club.swf">
            <embed src="flashmo_166_night_club.swf" width="700" height="700">
            </embed>
            </object>
              </span><!-- left -->
    
                        <span id="right"><!-- right -->
                        <?php readfile('http://output38.rssinclude.com/output?type=php&id=12882&hash=1c47788fee5dd09f4c610508c6e1fcdd')?>
                          </span><!-- right -->
    
      <div class="clear"></div>
     </div><!-- container -->
    </body>
    </html>

  9. #8
    Senior Member duck444's Avatar
    Join Date
    Feb 2003
    Location
    east coast
    Posts
    402
    Member #
    751
    Liked
    2 times
    well, i tried that very quickly because i have to go to work ...so i just copied and pasted it and the flash element is in the middle...but the php rss feed is a line down and to the left...i could try to tweek it when i get home but if you know what's wrong in the meantime let me know. please, okay?

  10. #9
    Junior Member MCS-Services's Avatar
    Join Date
    Jun 2009
    Location
    Las Vegas Nevada
    Posts
    6
    Member #
    19215
    Are you putting them insde <p></p> ?

  11. #10
    Senior Member duck444's Avatar
    Join Date
    Feb 2003
    Location
    east coast
    Posts
    402
    Member #
    751
    Liked
    2 times
    Quote Originally Posted by MCS-Services
    Are you putting them insde <p></p> ?
    no. should I?


Page 1 of 2 1 2 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 06:26 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com