473,414 Members | 1,911 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,414 software developers and data experts.

Window size ramifications

JG
I notice when I resize my webpage it adjusts the line returns
so that all of the text is still shown. While this is great for a text only
webpage, it causes undesirable results for a page with photos
inserted at various places with text wrapping.
Is there any way to have the webpage clip everything upon resize
so that it does not show rather than the latter?
Nov 12 '07 #1
3 1624
rf

"JG" <NoMail@NoSpamwrote in message news:fh*********@news1.newsguy.com...
>I notice when I resize my webpage it adjusts the line returns
so that all of the text is still shown. While this is great for a text
only
webpage, it causes undesirable results for a page with photos
inserted at various places with text wrapping.
Is there any way to have the webpage clip everything upon resize
so that it does not show rather than the latter?
You mean you want to hide the content from your viewers?

--
Richard.
Nov 12 '07 #2
On 11/11/2007 5:39 PM, JG wrote:
I notice when I resize my webpage it adjusts the line returns
so that all of the text is still shown. While this is great for a text only
webpage, it causes undesirable results for a page with photos
inserted at various places with text wrapping.
Is there any way to have the webpage clip everything upon resize
so that it does not show rather than the latter?

Please don't do that! You don't know what size windows are being used
by visitors to your Web page. You don't know whether they are using a
full-screen browser window or a part-screen window (what Micro$oft calls
a "normal" window). You don't know what screen resolutions are being
used. You don't know if visitors have a 15-inch monitor, a 21-inch
monitor, or an iPhone.

Graphic content might have fixed heights and widths, but text content
should adapt to whatever window the visitor chooses to use.

--
David E. Ross
<http://www.rossde.com/>

Natural foods can be harmful: Look at all the
people who die of natural causes.
Nov 12 '07 #3
On 12 Nov, 01:39, "JG" <NoMail@NoSpamwrote:
I notice when I resize my webpage it adjusts the line returns
so that all of the text is still shown. While this is great for a text only
webpage, it causes undesirable results for a page with photos
inserted at various places with text wrapping.
Yes, this isn't desirable. The fix though isn't to clip things, or to
stop text flowing, it's to control _how_ things flow. In particular,
you probably have a number of "sections" of text and a number of
related images. Provided that each block remains nearby to the
relevant image, the page still "works". However treating all the text
as one very long block and flowing it in a single unit past all the
images certainly won't.

In the simplest way, just use containment. Place each "section" of
text (possibly many paragraphs) inside a separate <divand place the
<imgin there too.

Another way is to use floats. Place each <imginside a <div>
container (possibly with a line of caption text too) and float them.
The place the text inside a single sequence of <pelements and allow
it to flow round the images. To keep things synchronised, use <hr>
elements with the clear property set, interspersed with the <pas
needed. By appropriate use of clear and putting the <hrat the right
places between the <p>, you can synchronise images and text.
http://brainjar.com/css/positioning/ is a good background tutorial.

Nov 12 '07 #4

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

Similar topics

3
by: Simon | last post by:
Hi, I am a bit confused with zero based items and strncpy(...) assuming I have char str1 = "Hello world"; char str2; I now have str2 that should look something like
44
by: Carlos Andr?s | last post by:
Hi everybody. I've got a problem. I'd like to avoid opening a new window when you have pressed the shift key and you click in the left button of the mouse. I've tried the next solution, in the...
6
by: David Hayes | last post by:
juglesh <juglesh@nospamRadioKDUG.com> wrote in "Re: how to maximize the browser window that fits the monitor size?" (Saturday, January 01, 2005 3:12 AM): > > >I want to maximize the browser...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
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...
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
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...

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.