how to divide page in two percentially divided rows containing iframes

Discussion in 'HTML & Website Design' started by albpower, Jul 6, 2013.

  1. #1
    Hello, I'm beginner in CSS so I have problems with dividing my page like in this picture.
    [​IMG]
    The site I need it is Online Radio Station.
    This is the main domain: http://radio-pendimi.com
    I have Joomla CMS installed to this folder ../webi and live3.php file which streams online the radio. I need to use this because I want the radio player to plays automatically and to dont interrupt the stream while reading articles on the Joomla CMS.

    Now it is using <frameset>tag but because it is out of support already and it gives me problems when I browse the site in Chrome. The radio player loads fine but the site doesnt load completely.

    Thanks in advance

    PS: I need it urgently so if anyone can help me please Help me.
     
    albpower, Jul 6, 2013 IP
  2. jamjar919

    jamjar919 Well-Known Member

    Messages:
    332
    Likes Received:
    7
    Best Answers:
    5
    Trophy Points:
    180
    #2
    You really shouldn't use frames. It's no longer supported, so you will always have problems when people are visiting the site. Why not have a link you can click in the sidebar that will open a window with the player in it? That way, the browsing of the site is uninterrupted and you can have a valid website.
     
    jamjar919, Jul 7, 2013 IP
  3. ekim941

    ekim941 Member

    Messages:
    74
    Likes Received:
    7
    Best Answers:
    7
    Trophy Points:
    33
    #3
    You won't be able to style your iframe with CSS. Instead, place the iframe inside of a div with an ID that you can style:
    <div id="frame1">
    <iframe src="" width="" height="">
    </div>
    <div id="frame2">
    <iframe src="" width="" height="">
    </div>
    HTML:
    Set the width and height of the two divs the same as your iframes with CSS:
    #frame1{
    width:800px;
    height:400px;
    }
    #frame2{
    width:800px;
    height:400px;
    }
    Code (markup):
    A better approach would be to skip the iframes and use php includes. Later, if you need to refresh one div's content you could do that with a jQuery call:
    $('#frame1').load(frame1.php);
     
    Last edited: Jul 7, 2013
    ekim941, Jul 7, 2013 IP