473,401 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

clipping to viewport

I like to make a frame-alike layout without frames, that clips to the
viewport.
An image of the layout can be found here:

http://www.roderik.net/layout.png

Preferably I make it using CSS, but maybe some javascript is necessary.
What is the best to obtain the layout as in the image?

Thanks in advance,

Roderik

Jul 10 '06 #1
5 1694
To further the education of mankind, em******@gmail.com vouchsafed:
I like to make a frame-alike layout without frames, that clips to the
viewport.
An image of the layout can be found here:

http://www.roderik.net/layout.png

Preferably I make it using CSS, but maybe some javascript is necessary.
What is the best to obtain the layout as in the image?
That's basically a 2-column layout with padding at top of the columns and
the header section absolutely-positioned.

--
Neredbojias
Infinity has its limits.
Jul 11 '06 #2
"Neredbojias" <http://www.neredbojias.com/fliam.php?cat=alt.htmlwrote in
message news:Xn**********************************@208.49.8 0.251...
To further the education of mankind, em******@gmail.com vouchsafed:
>I like to make a frame-alike layout without frames, that clips to the
viewport.
An image of the layout can be found here:

http://www.roderik.net/layout.png

Preferably I make it using CSS, but maybe some javascript is necessary.
What is the best to obtain the layout as in the image?

That's basically a 2-column layout with padding at top of the columns and
the header section absolutely-positioned.
I think what you actually want is fixed position. This works beautifully in
Firefox, but not internet explorer. However, a number of people have
investigated hacks. I found this on google

http://www.howtocreate.co.uk/fixedPosition.html

Hope that helps,

Martin
Jul 11 '06 #3

Neredbojias wrote:
To further the education of mankind, em******@gmail.com vouchsafed:
I like to make a frame-alike layout without frames, that clips to the
viewport.
An image of the layout can be found here:

http://www.roderik.net/layout.png

Preferably I make it using CSS, but maybe some javascript is necessary.
What is the best to obtain the layout as in the image?

That's basically a 2-column layout with padding at top of the columns and
the header section absolutely-positioned.
How do you get the height right in that case (it should clip to the
viewport)?

Jul 11 '06 #4

<em******@gmail.comwrote in message
news:11*********************@35g2000cwc.googlegrou ps.com...
I like to make a frame-alike layout without frames, that clips to the
viewport.
This works, but needs script for IE. I think there may be a better way.

http://www.hpaa.com/css1/div_frame.html

Daibhidh
Jul 12 '06 #5
To further the education of mankind, "Roderik" <em******@gmail.com>
vouchsafed:
>
Neredbojias wrote:
>To further the education of mankind, em******@gmail.com vouchsafed:
I like to make a frame-alike layout without frames, that clips to
the viewport.
An image of the layout can be found here:

http://www.roderik.net/layout.png

Preferably I make it using CSS, but maybe some javascript is
necessary. What is the best to obtain the layout as in the image?

That's basically a 2-column layout with padding at top of the columns
and the header section absolutely-positioned.
How do you get the height right in that case (it should clip to the
viewport)?
Set html,body to 100% height and the lower (vertical) divs the same,
applying to them overflow-auto. As Martin Eyles pointed out, position-
fixed is preferred yet not supported in ie6 but the method I suggest does
work.

--
Neredbojias
Infinity has its limits.
Jul 12 '06 #6

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

Similar topics

1
by: John Hunter | last post by:
Does gd lib or gdmodule support clipping? I would like to set a clip rectangle and when I issue drawing commands (like im.polygon) have only the part of the polygon inside the clip rectangle...
14
by: Doug van Vianen | last post by:
Hi, I am trying to show a clipped part of a picture on a webpage and move it on the page and/or change the clipping to a different part of the picture. I show the picture in the body of the...
0
by: phil cunningham | last post by:
Does anyone know of a good library to handle Polygon clipping in C#. This would require clipping of shapes with FLOAT verteces and we need the capability of clipping one Polygon against another...
2
by: Pugi! | last post by:
I am currently experimenting a bit with clipping (with banners). 1. Is it possible to do more then one clipping on a image. For example: image of 400px x 80 px: var TELLER = 0; function...
9
by: Andy Baxter | last post by:
hello, I'm writing a panoramic image viewer in html / javascript. The idea is I have a div with two identical panoramic photographs embedded in it. The clipping on the div is set to make it a...
0
by: dongarbage | last post by:
Hi there, I have a panel that I'm trying to draw lines on based on mouse events. I'm using a Graphics object to do this. However, the region that the graphics object will draw lines in is...
6
by: 123shailesh | last post by:
Hello everyone, I need some help. I have been working on it for some time but havent been able to think of any solution. Even had thought of making do without it, even though it was a major part...
3
by: Joel Hedlund | last post by:
Hi! I've raised this issue on #pygtk and #gtk+ but with no luck. I haven't been able to solve this even with aid of google, the pygtk reference and the gtk C source, so pretty please help? ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
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,...
0
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...

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.