Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML HTML Basics

iframe to large on Mobile Safari (iPad).

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

iframe to large on Mobile Safari (iPad).

Postby chris122380 » Fri Aug 17, 2012 11:14 am

I am working on a demo site. Can be found at http://chris122380.x10.mx/demo/. There is a iframe on the left side called ileft.
Code: Select all
#ileft {
   width: 450px;
   height: 600px;   
}

<iframe name="ileft" id="ileft" border="0" frameborder="0"></iframe>


It looks correctly on the desktop but on the iPad the iframe seems to open the full page of what it's linked to wish means the iframe thinks it's bigger on the iPad then it really is. I am going to run a HTML and CSS Validation to see what errors I get. Any help would be great. If you need all the code posted please let me know as I'd have to post the code in the post unable to upload attachments yet.
chris122380
New php-forum User
New php-forum User
 
Posts: 30
Joined: Mon Jun 25, 2012 12:41 pm

Re: iframe to large on Mobile Safari (iPad).

Postby chris122380 » Fri Aug 17, 2012 12:21 pm

Validation checks were ok with no errors associated with this problem. Still having the problem with Safari iOS iPad having the iframe render to long.

I have switched from HTML5 (As there where no HTML5 elements needed) to HTML 4.0 Transitional and CSS3. No validation errors and still have the width of the iframe problem on a iPad.

I am also unsure were to put
Code: Select all
-webkit-overflow-scrolling:touch
chris122380
New php-forum User
New php-forum User
 
Posts: 30
Joined: Mon Jun 25, 2012 12:41 pm

Re: iframe to large on Mobile Safari (iPad).

Postby chris122380 » Mon Aug 20, 2012 11:00 am

My ileft iframe is now showing a Horizontal scroll bar for a page that has no further content to the right. I still haven't been able to get the iframe to work correctly on the iPad as the width is still going full page instead of the width. I have removed unneeded tables and divs.

index.php
Code: Select all
<?php
session_start(); //start session and list variables as session variables
$_SESSION['pdf'] = 'pdf';

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en-us">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>Closeout System</title>
         
    <link href="style/style.css" rel="stylesheet" type="text/css">
   <style type="text/css">
   .h1_main {
      font-family: "Century Gothic";
      font-size: 40px;
      font-weight: bold;
      
   }
   </style>
</head>

<body>

<div id="body">





   <table style="width: 100%">
      <tr>
         <td><img alt="Manuals Access Logo" src="images/MA-Logo-Web.png" width="80" height="61"></td>
         <td class="h1_main">Closeout System</td>
      </tr>
   </table>

<br>

   <div id="menu">
           <?php include_once("menu_template.php"); ?>
      </div>
            
               
               <iframe name="ileft" id="ileft" frameborder="0"></iframe>
            
                        
               <iframe src="http://www.w3schools.com" id="info" name="info_frame" scrolling="no" frameBorder="0"></iframe>
               <img alt="" src="images/key.jpg" id="key" >               
               
               
                  <p id="docview">Document View</p>
                        
      
               <iframe name="pdf" frameborder="0" id="pdf"></iframe>
               
               
<div></div> <!-- Copyright bar at bottom of page  -->

</div> <!-- end of body div-->


</body>
</html>


style.css
Code: Select all
* {
    margin: 0px;
    padding: 0px;
   
}

html,body{
    height: 100%
}

body {
background-color:#7E93C3
}

#body {
   background-color: #FFD320;
   margin: 0px auto 0px auto;
   width: 1024px;
   height: 100%; /* 800px default */;
   margin: 0px auto 0px auto;
   position: relative;
   top: 0px;
   left: 0px;
   bottom: 0px;
}

h1 {
   text-align: center;
   font-size: 40px;
}


#menu {
   width: 200px;
   text-align: center;
}

#menu a {
   border: #666 1px solid;
   border-bottom:none;
   padding-top: 8px;
   padding-bottom: 1px;
   padding-left: 8px;
   padding-right: 8px;
   text-decoration:none;
}

#menu a:hover {
   background-color:orange;
   
}

myButtons {
   background-color: #036;
   color: #FFF;
}

myActiveButton {
   background-color: #BAE4FE;
   color: #000;
}

#bodyContainer {
   height: 664px;
   width: 513px;
   border: #666 1px solid;
   background-color:aqua;
}

#bodyContentContainer {
   padding:0px;
   left: 0px;
   bottom: 0px;
   right: 0px;
   
}

#ileft {
   position:absolute;
   height: 600px;   
}

#pdf {
   background-color: green;
   position: absolute;
   
   right: 0px;
   width: 505px;
   height: 375px;
   margin: 0px;
   top: 400px;
   
   
}

#docview {
   position:absolute;
   top: 368px;
   left: 518px;
}

#info {
   position: absolute;
   top: 165px;
   right: 25px;
   left: 535px;
   height: 200px;
   width: 300px;
      
   }
   
#key {
   position: absolute;
   width: 18%;
   right: 0px;
   top: 165px;
}
chris122380
New php-forum User
New php-forum User
 
Posts: 30
Joined: Mon Jun 25, 2012 12:41 pm

Re: iframe to large on Mobile Safari (iPad).

Postby nandha » Mon Nov 05, 2012 5:09 am

Hi,
will you able to fix this issue? I am facing the same issue.
Please let me know if you fixed this issue. Thank in advance.
Nandha
nandha
New php-forum User
New php-forum User
 
Posts: 1
Joined: Mon Nov 05, 2012 5:07 am

Re: iframe to large on Mobile Safari (iPad).

Postby seandisanti » Wed Nov 14, 2012 10:47 am

can use @media only screen css to format based on display size. here's a good link for usage and sizes for different devices. http://css-tricks.com/snippets/css/medi ... d-devices/ i've used that technique on several sites, but most often on wordpress sites to hide side bar content when viewed on mobile devices.
seandisanti
php-forum Fan User
php-forum Fan User
 
Posts: 679
Joined: Mon Oct 01, 2012 12:32 pm

robe herve leger cheapest Herve Leger on sale (44)

Postby galloway8 » Wed May 15, 2013 7:52 pm

Many businesses are not only depending on their physical offices in marketing whatever product they have available for the general public. With the introduction of the internet, there are many changes that took place in the business world.
The internet allows a particular organization to reach many prospective clients wherever they are. Even if you have one office, you can practically advertise your goods/services anywhere in the world.
Putting your business in the internet world is not an easy task. Don?t regard the internet as a medium for advertising your business because it is more than that. You have to maximize the use of the unique qualities of the web, and in this manner, you will be able to provide prospects and clients with a better experience.
Internet marketing, this are two simple words but when put together, it covers a lot of subject matters that needs considerable amount of attention. The basics of internet marketing includes researching the market, search engines, advertising (email), marketing, promotion (local) and marketing offline.
Let's start with researching the market. You have to identify first your market, and think of ways on how to reach those markets. You should be able to convey a [url=/]herve leger fragrance[/url] message with value, for your prospects and clients to get a better understanding of what you are trying to advertise.
The two most important words in market research are target and hit. An effective marketing research should be able to hit the identified target. Your target will depend largely on what your business can provide to clients. Examples are children aged 7-12; or it can be men and women.
Marketing research further involves primary and secondary research, combined research, quantitative and qualitative.
<br [url=/]herve leger style bandage dress[/url] />The next internet marketing basic is the search engine. This has two types, namely: directories search engine and the PPC (pay per click) engines. If you are to engage in internet marketing, the presence of a search engine is quite important. Although it can be quite expensive, most business can't possibly do without it because it is the most effective way to advertise the business.
Directories require a huge amount of patience for effective marketing. You have to wait for a couple of weeks before you actually appear on the site. Your site position can also change without [url=/]green herve leger dress[/url] further notice because this engines change their [url=/]herve leger white dress[/url] indexes and ranking rules every now and then.
PPC engines are more expensive but easier to utilize. You can obtain a much higher listing and fast and steady results.
Advertising is the next basic on the list. After you identify the desires and general wants of your target, you can also identify their interests. There are different publications which take up advertising; you can also make use of newsletter list advertising. [url=/]herve leger singapore[/url] It has three types: solo advertisement, classified ads, and top line ads.
Marketing through email usually leads to several problems, but despite this situation, it is quite effective because you can actually generate a response from three targets. You can make use of opt-in, newsletter, and UCE.
Email by opt-in is done by creating email addresses by which you send messages occasionally. Newsletter marketing on the other hand is similar to opt-in but it includes information like insights and articles. The UCE is also a form of advertising and [url=/]replica herve leger bandage dress[/url] is really effective, it also known as unsolicited commercial email.
The second to the last internet marketing basic is promotion. Make sure that you also promote in your local area, besides your first real clients will surely come from somewhere near your place. Since many businesses focus their attention to web audiences, they often forget to advertise locally. You can make use of press releases, magazines, newspapers, business guides, and many more.
Finally, marketing offline; classified ads are good if the publication itself focuses on your target market, otherwise you can do without it. Instead, you can correctly make use of print advertising, URLs, and movie slides.
Without advertisement, any business will fail. It is therefore imperative to have a good team that could handle all your business advertising, offline or online. Internet marketing requires a lot of thought, effort, and time. If you devote all these aspects towards proper advertising, all your efforts will be worthy once you see the business' success.

Related articles:


herve leger cheapest Herve Leger on sale (14)

herve leger wedding dress cheapest Herve Leger on

herve leger cheapest Herve Leger on sale \(41\)
galloway8
New php-forum User
New php-forum User
 
Posts: 127
Joined: Mon Jan 07, 2013 3:36 am


Return to HTML Basics

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.