Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Oct 2010
    Posts
    66
    Thanks
    29
    Thanked 0 Times in 0 Posts

    web page within a web page

    I'm working on a webpage for a spa that uses an outside booking service with its own webpage for its online booking. I wanted to have a page on the spa site that contains the outside spa booking service page. I have tried using iframes but I can't get it to work. Any suggestions?

    Code:
    <iframe src="www. (url of booking website here) .com" width="100%" height="100%">
      			<p>Your browser does not support iframes.</p>
    </iframe>

  • #2
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Posts
    1,662
    Thanks
    41
    Thanked 189 Times in 188 Posts
    in all of my iframes i've used thus far, i've been doing through my code behind... now that's irrelevant to you, but what i am getting at is i have to set the src attribute to have http://www.mypage.com .... have you tried doing this? (ie putting in the full address?)

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE

  • Users who have thanked alykins for this post:

    aaron4osu (07-10-2011)

  • #3
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    820
    Thanks
    10
    Thanked 78 Times in 76 Posts
    How to position a page within an iframe using CSS: Page in a Page - Iframe SSI script II: http://www.dynamicdrive.com/dynamici...iframessi2.htm

    I like this better:

    Code:
    <div style="margin: 0 auto; width: 960px; height: 400px; overflow: auto;"><object style="width:100%; height:400px; margin:1%;" type="text/html" data="http://spa_site.com/"></object></div>
    Transfer inline CSS to external CSS file and adjust dimensions as needed.
    ☠ ☠RON☠ ☠

  • Users who have thanked Major Payne for this post:

    aaron4osu (07-10-2011)


  •  

    Posting Permissions

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