Sagewire Logo

Q U E R Y

2 Message(s) by 2 Author(s) originally posted in javascript java


From: John Dunne Date:   Monday, July 25, 2005
hey...
19 year old graphic designer here, totally unfamiliar with programming
content. working hard on an online portfolio at the moment but experiencing
some difficulties. I think JAVAscript could rescue me.

problem:
-set a gif file as a background image in a html document
-it fills the whole of my internet browser window on my 17" monitor yet,
when viewed on a smaller monitor, users have to use the ugly horizontal
scrollbar to view the whole document.
-surely there is a way of configuring a background image so that,
irrespective of the user's monitor size, it just fills the window.....

please help,
advice/recommendations really appreciated,
thanks very much,
john.


From: Jasen Betts Date:   Tuesday, August 02, 2005
wrote in message:
hey...
19 year old graphic designer here, totally unfamiliar with programming
content. working hard on an online portfolio at the moment but experiencing
some difficulties. I think JAVAscript could rescue me.
problem:
-set a gif file as a background image in a html document
-it fills the whole of my internet browser window on my 17" monitor yet,
when viewed on a smaller monitor, users have to use the ugly horizontal
scrollbar to view the whole document.
-surely there is a way of configuring a background image so that,
irrespective of the user's monitor size, it just fills the window.....
please help,
advice/recommendations really appreciated,
thanks very much,
john.



you do not need JAVAscript, try using z-index and a 100% sized image.

<html>
<head>
<title> elastic picture </title>
</head>
<body style="margin: 0px; padding: 0px;">
<div style="width: 100%; height: 100%; left: 0px; top: 0px; position: absolute; z-index: 0;">
<img src="image.jpg" style="width: 100%; height: 100%;">
</div>
<div style="z-index: 1; position: absolute;">
The actual page... :D
</div>
</body>
</html>

not my own code I googled for this.
--

Bye.
Jasen



Next Message: onBlur on a popup situation


Blogs related to Q U E R Y

Going Mobile
Anyone travelling this summer? Also: Weblogs: Implementation-independent interfaces, Tetris Easter Egg, and alt.web-browser.die.die.die Java Today: Sun to reveal Java revenue, Java Studio Creator 2 on OS X, and collaboration as mosh pit ...

Another thing about Java binary search routines
It occurred to me that maybe Sun thinks that typical Java programmers cannot handle bitwise operators. But the results of javap -c java.util.Arrays shows that, in the relevant cases, the Sun J2SE implementation actually does -(low + 1) ...

Sun as the Shepard of Java
As Sun continues to debate just how they will open-source Java and deal with things like ... It's not really giving up revenue by open-sourcing Java, and the more prevalent the language, the more Java gains a foot in the door to sell ...

HeapAnalyzer v1.4.2 for Java on Linux Released
open&S_TACT=105AGX59&S_CMP=GR&ca=dgr-jw30awheapanalyzer][a graphical tool for discovery of Java heap leaks]], is an update that fixes defects in the Java profiler parser. Through use of a heuristic search engine and analysis of heap ...

Java Articles - All you need would be here - Submit your articles too
This is one of most comitted web sites to Java knowledge. Add your Java articles any time, give feedbacks, and read their daily growing content, and contribute to the knowledge of Java. JUST DO IT. SHARE your Java :D.

Ebook 7: Foundations of Java for ABAP Programmers
My first post here.. thought Id bring something to the table & share knowledge.. Foundations of Java for ABAP Programmers http://giggle-ebook.blogspot. com/2006/09/ebook-7-foundations-of-java-for-abap.html Topic Replies: 0.


Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional