473,396 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes and contribute your articles to a community of 473,396 developers and data experts.

HTML and CSS for Curl applets embedded in object elements

8
Over at developers.curl.com I have a blog post on an IE8 quirk which I hit while standardizing the html at my aule-browser.com website.

When I moved the height and width parameters from the object tag and into a CSS style for objects, the size of my embedded applet immediately collapsed to the upper-left corner in IE8.

It took some effort to discover that the order of the parameters was upsetting IE: in a moment of desperation I flipped width and height et voilà a full page applet.

Only now IE was throwing up an unnecessary vertical scrollbar to the right. Hmmm. I was finally reduced to setting the width at 100% (did not cause horizontal scrollbar) and the height to 99% - BUT with the height first and THEN the width:
<style type="text/css" media="screen">
html{margin:0;height:100%}
body {
margin:0;
padding:0;
height:100%;
background-color:#FFFFEE;
}
object {
height:99%;
width:100%;
}
</style>
The problem only arises if my HTML pages have a DOCTYPE set - but that was part of my standardization effort ( I am using the Curl web-content language from curl.com to markup texts in poetry, literature and philosophy and to add annotations, notes, glosses, scholia and other critical apparatus.)
Jun 6 '10 #1
2 3769
drhowarddrfine
7,435 Expert 4TB
The doctype is the set of rules you are telling the browser you are following when you created the page. Change the doctype, you changed the rules and, hence, the page changes. IE, specifically, will never attempt to perform like all the other far more modern browsers without a doctype.

The doctype is required on all modern web pages.
Jun 6 '10 #2
lcurlr
8
Since I won't go without DOCTYPE even on pages only used to embed an <object> I have had to find an answer for IE8 - and that has been to set the style for HTML to include
html{overflow: auto;
and to set the style for body with
body {
scroll="no";
overflow: hidden;
border-bottom-style:none; outline-width:0;
height:100%;

That meets my needs of a 100% <object> height without a bogus right-side vertical scrollbar.

Of course in testing on linux Ubuntu Firefox I found that I cannot tell a <div> to float right above an <hr> which already has a <span> aligned above it left - which is fine on any other browser I had tested (Win IE8, win and linux Chrome, Opera, linux Epiphany) ... and makes a nice top line on my pages ... so a cross-browser life goes ...
Jun 7 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: gsb | last post by:
Is it possible to change embedded object parameters via JavaScript on-the fly? Actually it is a Flash embedded object and I want to change the WMODE value on-the-fly. Is such a thing possible?...
4
by: Neil Cherry | last post by:
I've seen references to using <applets ... > and document.applets to access public Java functions from Javascript. Do I still use document.applets with <object ...>? BTW, the FAQS page seems to...
0
by: MLH | last post by:
Can I open an embedded object frame (OLE Class: WordPad) from an OPEN form, launching WordPad to edit the text contents, close WordPad & have the changed docment SHOW UP in the embedded object...
0
by: Morten Overgaard | last post by:
Hi Anybody knows how to save an "embedded object" from the clipboard to a file with the correct filename ( can it be extracted from the clipboard ??) And How do I do it vice versa... ...
1
by: Jim Hammond | last post by:
The embedded object gets instantiated once when the page is first loaded and then again every time the button is pressed. The user stays on this page after pressing the button because it is not a...
1
by: torbs | last post by:
I have an defined an object with a method called loadMovie that use a method - SetUrl- in an embedded quicktime object. It is embedded using the object tag, but I have also tried the embed tag. ...
4
by: chaz | last post by:
here is the html : <br> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="<%=LABEL_WIDTH%>" class="formtext"><%= HTEXT("Connection type:")%></td> <td...
1
by: alexbf | last post by:
Hello, I'm trying to refresh some portions of a webpage using code like this : document.getElementById('tdGauge').innerHTML = document.getElementById('tdGauge').innerHTML; I do that...
0
by: jkrajes | last post by:
Hi, I want to get the filename of the Embedded object which is in a Excel file using vb.net Excel object model. here is the macro that i recoreded while inserting the object in excel. ...
1
by: douglandmesser | last post by:
Hey all. I was wondering if there is a way to save an embedded object (OLE1) to the hard drive without clicking on it and doing it manually. I'm not too familiar with managing OLE objects in VB6, so...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.