473,946 Members | 2,734 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Full screen div

8 New Member
hi everybody, this is my first time posting something. And I'm sorry because my english is far from perfect.

I'm trying to make a fullscreen transparent div but I have some restrictions on the way to do it. My div should be inside another div. As the containig div isn't full screen I think the inside div can't be full screen. . . .

I try to achive this in several steps to reduce complexity. The first step was to make a transparent 100% width, 100% height div inside anotherone, this should be portable to IE6+ and Firefox. In firefox it works fine, but in IE6 is a mess, the contained div height is much less than 100% of the container div.

Can anybody help me to make this work on IE6?

Can anybody tell me if is posible to make the transparent div fullscreen inside the other div?

Here is the code:

Expand|Select|Wrap|Line Numbers
  1. <html>
  2.  
  3. </html>
  4. <body>
  5. <form>
  6.     <input type="text" size="20"/>
  7.     <input type="buttom" value="Enviar"/>
  8. </form>
  9.  
  10. <div style="position:relative; top: 0; left:0; background-color:#0000ff; border:1;">
  11.  
  12. <div style="position:absolute; top:0;left:0; height:100%; width:100%; background-color:#aaaaaa; filter: alpha(opacity=80, finishopacity=10; style=0);z-index:999;opacity:0.8">
  13.  
  14. </div>
  15.     <div style="position:relative; background-color:#ffffff; opacity:1; margin: 0 auto 0 auto; width:220; height:200; text-align:center; z-index:1000">
  16.         First trial
  17.     </div>
  18.  
  19.  
  20. </div>
  21.  
  22. </body>
Oct 7 '08 #1
6 11916
Markus
6,050 Recognized Expert Expert
Hey there, hdsk.

When posting code on the forums, be sure to use [code] tags. [code] .. code goes here [/code]. If you neglect to do so, you will be given a warning and possibly a temporary ban. Please read the Posting Guidelines on How To Ask A Question

Markus.
Oct 7 '08 #2
hdsk
8 New Member
Hey there, hdsk.

When posting code on the forums, be sure to use [code] tags. [code] .. code goes here [/code]. If you neglect to do so, you will be given a warning and possibly a temporary ban. Please read the Posting Guidelines on How To Ask A Question

Markus.
Thanks for the advice Markus, I didn't know that.
Oct 7 '08 #3
drhowarddrfine
7,435 Recognized Expert Expert
You will never get IE to attempt to perform like modern browsers without a proper doctype. See the article about doctypes under the Howto section at the top.
Oct 7 '08 #4
hdsk
8 New Member
You will never get IE to attempt to perform like modern browsers without a proper doctype. See the article about doctypes under the Howto section at the top.
Hi,

Thanks for your answer.

I try all the doctypes in the howto section and none of them work for me. Using them changes how the div looks. Their width and height seem to change but they doesn't make the right efect. In firefox with those doctypes I can't see the gray background. It seem all div be the same width/height and the top one hidding the others.

In IE almost same problem as before :-(.
Oct 7 '08 #5
David Laakso
397 Recognized Expert Contributor
Hi,

Thanks for your answer.

I try all the doctypes in the howto section and none of them work for me. Using them changes how the div looks. Their width and height seem to change but they doesn't make the right efect. In firefox with those doctypes I can't see the gray background. It seem all div be the same width/height and the top one hidding the others.

In IE almost same problem as before :-(.
Sorry. Don't think your construct will work. Even if the CSS was valid. Even without a doctype. Even with a doctype. Even with doctype and valid HTML and valid CSS.
Oct 7 '08 #6
drhowarddrfine
7,435 Recognized Expert Expert
I try all the doctypes in the howto section and none of them work for me. Using them changes how the div looks. Their width and height seem to change but they doesn't make the right efect.
Of course it does. The doctype is the set of rules you are telling the browser you are using. Change the doctype, change the rules. But you have to get all the browsers on the same set of rules and IE is the one that's in outer space.

Use the html 4.01 strict doctype, validate your html and css, fix the errors there, then see where we are.
Oct 7 '08 #7

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

Similar topics

2
4420
by: Larry R Harrison Jr | last post by:
I have pull-down menus in javascript and I have the code for opening a link in a new window. But I want it to open a full-sized window. I can't figure out the syntax. What I have so far: Menu5_5_1=new Array("'Lonely Church","javascript:window.open ('http://www.photo.net/photodb/photo?photo_id=2640310')","",0,20,300); That works fine, except I can't figure out how to modify it to make it open full-screen.
9
12331
by: pow67 | last post by:
Is there a javascript statement which can be incorporated in a hyperlink which will open a new page that fills the screen while leaving the page with the link open? Thanks in advance. CW
1
3672
by: Nick Weekes | last post by:
Hi all, Is there any javascript function/s that will tell me if the current browser window is in full screen mode or not? I don't want to resize the window, just size content based on full screen/not full screen. Cheers, Nick
3
1979
by: Pat Sheen | last post by:
Is there some setting in Access so when I get help it will display full screen and not part screen with my Access window. I've Googled and checked help but can't find anything. Thanks Pat
6
5630
by: Tony Liu | last post by:
Hi, when switched to the full screen mode in VS.NET IDE, is there any way to hide the main menu bar? Thanks Tony
6
7589
by: Nicky | last post by:
hi,all We are going to develop a program and when it is running, we need it full screen and also, user can not switch to other place before exit our program. I am thinking, we can make a window full screen, but how to avoid user switching to other program or windows? And also, there are many hot keys, how to capture or disable these things? Thanks
9
3122
by: Jensen bredal | last post by:
Is there any way i can view my web page in full screen mode? F11 still hhas the internet explorer tool bar. Many thanks in advance JB
0
2205
by: Franklin M. Gauer III | last post by:
Hi, We have an application running that uses FULL SCREEN ANCHORING in Windows Forms. The application runs fine on all of our desktops and some laptops. We are having problems with certain Dell laptops using an Nvidia Go graphics driver (multi screen). When the app goes full screen - .NET does not detect the right and bottom boundary of the screen - therefore all of the buttons etc. that are anchored to either the right and/or the...
9
2430
by: EreN | last post by:
Hi! Im new in this group so i dont know if that topic has been opened before.. I want to ask that how can i make my console program open in full screen mode? Thanx...
7
3136
by: MC felon | last post by:
i worked and compiled programs in code::blocks. These .exe's do not have full screen modes in them! how do i get them to work full screen?even properties of these exe's do not have full screen modes in them. (right click -properties). what do i do to enable full screen?
0
11549
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11140
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9872
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
8240
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
6095
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
6317
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4928
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
4523
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3524
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.