473,667 Members | 2,577 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adjusting a picture to the size of a window

Hi,

I'm a newbie...I'm having trouble changing the size of an image when I
use different window sizes when loading the and resizing the browser window.

If anyone could help it would be appreciated.

Thanks

Victor

Jul 20 '05 #1
3 5976
Victor Louie wrote on 27 jun 2003 in comp.lang.javas cript:
I'm a newbie...I'm having trouble changing the size of an image when I
use different window sizes when loading the and resizing the browser
window.


<body>
<img src=".." style="width:10 0%;height:100%; ">
</body>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #2
rf wrote:
"Victor Louie" <vl******@hotma il.com> wrote in message
news:sD******** *************@n ews0.telusplane t.net...
Hi,

I'm a newbie...I'm having trouble changing the size of an image

Why do you want to change the size of an image?

when I
use different window sizes

When *you* use different window sizes? Don't understand.

when loading the and resizing the browser window.

Your browser window or mine. If you resize mine then you have lost me as a
viewer. Instantly.

Cheers
Richard.

I'm trying to resize a spacer image on the bottom on the left of my page
so that that it will stretch to the bottom the page (it's fixed at
181x119 for now) because I get this:

http://pector.homelinux.com/main/index2.html

when the content on the right goes further down that the menu on the left.

If the left side is longer than the content on the right side...then it
looks fine (http://pector.homelinux.com/main/)...which is what I'm
trying to get it to look like

If there is a better alternative to JavaScript could you let me
know...b/c I'm pretty sure PHP won't work (b/c I'm a lot better at that :)).

Hopefully this clears it up...its been a long night.

Thanks

Victor
Jul 20 '05 #3
rf

"Victor Louie" <vl******@hotma il.com> wrote in message
news:5n******** *************@n ews0.telusplane t.net...
rf wrote:
"Victor Louie" <vl******@hotma il.com> wrote in message
news:sD******** *************@n ews0.telusplane t.net...
Hi,

I'm a newbie...I'm having trouble changing the size of an image

Why do you want to change the size of an image?

when I
use different window sizes

When *you* use different window sizes? Don't understand.

when loading the and resizing the browser window.

Your browser window or mine. If you resize mine then you have lost me as a viewer. Instantly.

Cheers
Richard.

I'm trying to resize a spacer image on the bottom on the left of my page
so that that it will stretch to the bottom the page (it's fixed at
181x119 for now) because I get this:

http://pector.homelinux.com/main/index2.html

when the content on the right goes further down that the menu on the left.

If the left side is longer than the content on the right side...then it
looks fine (http://pector.homelinux.com/main/)...which is what I'm
trying to get it to look like

If there is a better alternative to JavaScript could you let me
know...b/c I'm pretty sure PHP won't work (b/c I'm a lot better at that

:)).
Hopefully this clears it up...its been a long night.


This has nothing to do with javascript, unless you are trying to apply a
bandaid to a flawed layout. It also has nothing at all to do with PHP. PHP
is server side.

You have run into the standard using tables for layout problem, compounded
by the use of row and column span.

Specifically: as the table grows vetically so do its cells. Your right hand
cell grows, where to we apportion that growth over the left hand cells. Over
all of them, of course. Your layout falls apart.

You have two choices:

a) Use CSS for layout, not tables. Tables are designed for laying out
tabular data, not web pages.

b) Put the entire left hand nav column in a seperate nested table. Your
outer table becomes a two by two table, rowspanned at the top. The left hand
cell contains your nav table, valigned top.

Cheers
Richard.
Jul 20 '05 #4

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

Similar topics

3
8337
by: jeff | last post by:
Hiya, Im currently in the process of developing a picture browser, I want it to run off a CD, basically I have 2 questions for the group. The first is how do I get the program to only view the contents of the CD, at the moment i have a drop down drive menu that allows me to select the drive, i want to be able to put the CD in and then have i view only the CD contents, Ive considered just entering in my code D:\ but what happens if the...
2
8937
by: Lyn | last post by:
I am trying to embed a picture into a Bound Object Frame (Me!Photograph) with the following code which is based on MS article http://support.microsoft.com/?id=158941: strPathname = "C:\photo.bmp" Me!Photograph.Class = "Paint.Picture" Me!Photograph.OLETypeAllowed = acOLEEmbedded Me!Photograph.SourceDoc = strPathname Me!Photograph.Action = acOLECreateEmbed
3
3260
by: Z D | last post by:
Hello, BACKGROUND: ============== I've created a Windows User Control that contains an Image Control (among other controls). The user control handles the picture resize event. Whenever the parent that holds my user control is resized, I resize my image so that it uses the maximum available space. Note: It takes about 2 seconds to regenerate the
5
2901
by: VJ | last post by:
Is there a any known easy way to fit web pages for a screen resolution. Can I do this programmatically? VJ
2
2056
by: jodleren | last post by:
Hi! I am making an option, which opens a small window with a picture in it and data about it. I just want a JS script, which will get the picture size, and then set the window accordingly? BR Sonnich
4
2647
by: Jsnova864 | last post by:
I'm trying to make make the background of the form a picture. So far I got this. Private Sub Form_Load() FrmStarship.WindowState = vbMaximized FrmStarship.Picture = LoadPicture(App.Path & "\Pics\MenuScreen1.bmp") 'How do I change the the size from here? End Sub The problem is that I can't get the picture to be as big as the window. At the site below, it says that the size attribute for Loadpicture() is only for cursor and icon files. I...
2
12727
Ali Rizwan
by: Ali Rizwan | last post by:
Hi all, Following Code will allow you to run any AVI file in a Picture Box. Comment and Rate it! API Declarations Const WS_CHILD = &H40000000 Private Declare Function mciSendString Lib "winmm.dll" Alias _ "mciSendStringA" (ByVal lpstrCommand As String, _
1
3799
oranoos3000
by: oranoos3000 | last post by:
hi would you please help me i have a online shopping center that i show pictures of the my product in home page. in the InterExplorer pictures is shown correctly but in Firefox browser is shown properties alt in img tag istead of picture . place of the pictures is saved in the database(my database is with mysql) and in home page i fetch properties of the product and address of place that pictures is located output of the code in the...
0
8365
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
8883
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
8788
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...
1
6203
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
5675
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
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2776
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
2013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1778
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.