473,808 Members | 2,882 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HTML and CSS for Curl applets embedded in object elements

8 New Member
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;h eight: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 3820
drhowarddrfine
7,435 Recognized Expert Expert
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 New Member
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
2642
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? Thanks, gsb
4
3304
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 be broken. -- Linux Home Automation Neil Cherry ncherry@comcast.net http://home.comcast.net/~ncherry/ (Text only) http://hcs.sourceforge.net/ (HCS II)
0
2036
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 frame on the open form after having made the edit? If I can, I'd like to launch the process on click of a button on the form. Any cut 'n paste code that'd kind-a-fit my needs would be appreciated. All suggestions are appreciated. I'll have to...
0
3022
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... regards Morten
1
1888
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 navigation button, so I need to reuse the same instance, but how can this be done? <body MS_POSITIONING="GridLayout"> <OBJECT id="VideoControl" classid="ClientSideAssembly_Video.dll#ClientSideAssembly_Video.VideoDisplay"
1
2519
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. The problem is this. Although Firefox recognise the quicktime object as a HTMLObjectElement, it does not give me access to it methods from within my object. I have created a seperate function and when I in that function type...
4
4897
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 class="formtext"> <input type="radio" class="inputRadio" id="dbStatus" name="dbStatus" value="1" onclick="changeDbStatus(1)" <%if dbStatus=1 then%checked
1
3951
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 because that screen section contains an OBJECT element (flash) that I want to refresh.
0
2200
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. ActiveSheet.OLEObjects.Add(Filename:="D:\country.xml", Link:=False, _ DisplayAsIcon:=True, IconFileName:="C:\WINDOWS\System32\msxml3.dll", _ IconIndex:=0, IconLabel:="D:\country.xml").Select
1
2093
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 any help would be appreciated. There are commands such as OLE1.Copy and OLE1.Move, but I'm not sure how to set them up. VB usually gives you that pop-up screen with suggestions as to what should come next, but nothing for these commands. Thanks in...
0
9721
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10114
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7651
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5548
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5686
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.