473,625 Members | 2,717 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Not taking vertical space in strict mode, but is taking vertical space in quirks mode

Here's the relevant piece of code.

<div style="position :relative;heigh t:506;width:700 ; z-index:1;
background-image:url(image s/Mat-Tan.png);">
<div style="position :absolute;z-index:2; height:0; width:0;">
<img src="images/Frame-Brown-Land.png" alt="" />
</div>
<div style="position :absolute;top:1 00px; left:125px;">
<img src="images/poster1.jpg" alt="" />
</div>
</div>

In strict mode, anything that follows this appears below the output
(and the background image isn't displayed). In quirks mode, which I'd
prefer to avoid, the output is as I expected (the basic idea is to
simulate the appearance of a framed/matted poster). Any ideas what I'm
doing wrong with my css?

Oct 20 '06 #1
1 1512

do*******@gmail .com wrote:
<div style="position :relative;heigh t:506;width:700 ; z-index:1;
In strict mode, anything that follows this appears below the output
(and the background image isn't displayed). In quirks mode, which I'd
prefer to avoid, the output is as I expected (the basic idea is to
simulate the appearance of a framed/matted poster). Any ideas what I'm
doing wrong with my css?
Found it. Duh, I need to give UNITS on that.

Never mind...

Oct 20 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
2182
by: Spartanicus | last post by:
I've been thinking about using a custom "stricter" local HTML 4.01 Strict DTD for the purpose of local validation. That way I wouldn't have to change my doctype, my documents would still adhere to the public 4.01 Strict DTD, but I'd have the added advantage that I get warnings for example for unclosed paragraph tags when validating locally by mapping my local validator (ARV) to that local custom DTD. Any disadvantages in doing that, and...
4
16297
by: Neil Zanella | last post by:
Hello, Consider the height property in the code shown below... I am dissatisfied with the height propery. When I set it to 100% the table does not fill the entire vertical space available to the browser. On the other hand, I could set it to some large value like 780px but that would be more of a hack than a real solution (when I resize the browser window to large proportion I can
2
62431
by: Nathan Wallace | last post by:
When in quirks mode, IE seems to be able to display pages without any vertical scrollbar: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <style> body { overflow: hidden; }
8
6870
by: lkrubner | last post by:
Am I wrong, or do paragraphs have extra space on top in FireFox, when compared to Microsoft IE. The top of this page is an example: http://www.publicdomainsoftware.org/index.php?pageId=299 The text in the box at top looks like it has an extra 10 or 20 pixels of padding at the top, when FireFox is compared to IE. Why is that?
3
11314
by: jdlwright | last post by:
Hi, I need to place a DIV exactly over a textarea element, but I can't calculate the correct value that I should set style.width to, because offsetWidth and style.width are calculated differently under strict mode. Under strict mode, offsetWidth returns the width of an element plus it's padding and border (i.e. just the same as quirks mode). Whereas, under strict mode style.width doesn't include padding or border widths.
2
1695
by: TomB | last post by:
Take a look at these pages: http://deimos.curious.be/~dusk/test/index.html http://deimos.curious.be/~dusk/test/index2.html They are the exact same code except for the doctype, which isn't included in the index2.html file so it renders in "quirks" mode. However, the way it renders in "quirks" mode is (almost) exactly how I expected the page to render. I want the overflow scrollbar on the
18
7883
by: ~john | last post by:
Sorry if this is a dumb question buy my CSS is pretty bad... but how do I get text to center vertically within a div tag? Here's my code below... the text is displaying on the far top-right. I would like it far right centered vertically. #test { width: 100%; height: 55px; margin: 0 0 0 0;
13
1662
by: Bill | last post by:
Hi How can I have IE7 act correctly on that ? The rules make the link text go down when hovered. It works in FF , I had to add a hard space right after the LI tag to have OP9 work but I can't figure how to have IE7 work. Why? How can I have it work in all 3 browsers? http://nrap.selfip.com
40
5473
by: maya | last post by:
hi, how do I get text to vertical-align inside a div? http://www.mayacove.com/misc/home.html vertical-align should work, according to this: http://htmlhelp.com/reference/css/text/vertical-align.html
0
8253
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...
0
8189
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8497
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...
0
7182
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6116
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
5570
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
4089
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...
1
2621
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
1
1802
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.