Solved

Aligning images to edge of browser...

Posted on 1997-08-14
6
342 Views
Last Modified: 2012-08-13
I wonder if it's possible to allign an image in a table to the edge of the browser (both NN and MSIE). That is if you resize the browser window the image/picture will follow the bottem edge or whatever specified. Could this be done via tables?
0
Comment
Question by:tactica
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 1

Accepted Solution

by:
qed070297 earned 20 total points
ID: 1837783
Well, under <IMG ...> you can specify WIDTH=100% or HEIGHT=100%
to stretch an image to the browser window/frame size without
the use of tables.  Leaving off one of the WIDTH or HEIGHT will
only stretch to one ordinate while retaining a 1:1 aspect ratio.
You an also use other values other than 100% of course.

Inside of tables, it looks like at least Netscape gets very
confused.  It may be that unless there is something fixed that
the IMG tag is relative to, that using "%" doesn't work.
0
 

Author Comment

by:tactica
ID: 1837784
Sorry but that doesn't help me. Sorry I didn't explain myself quite good enough. Here is a sketch of how I want it:

Table:
+--------+--------+------------+ @
|########|########|    ########| @ <-- browser edge
|#image1#|#image2#|    #image3#| @
|########|########|    ########| @  if the borwser window then
+--------+--------+------------+ @  is resized 'image3' follows
                                 @  without getting streched.

0
 
LVL 1

Expert Comment

by:qed070297
ID: 1837785
I see what you are saying.  Using a small gif image, I was able
to come up with the following bit of HTML.

<left>
<table width=100%>
<tr><td>
<img src="whiteback.gif">
</td><td>
<img src="whiteback.gif">
</td><td width=100% align=right>
<img src="whiteback.gif" align=right>
</td></tr></table>
</left>

Is this what you are looking for?  (Obviously, you will have to
replace "whiteback.gif" with something else.)
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:tactica
ID: 1837786
Yes almost :)  It just needs to be done vertical instead. I've tried but I can't seem to get it working. Do you have a solution to that problem?

0
 
LVL 1

Expert Comment

by:qed070297
ID: 1837787
Same thing but vertical?  How about a structured table such as:

<table height=100%><tr valign=top><td>
<table><tr><td>
<img src="whiteback.gif">
</td></tr><tr><td>
<img src="whiteback.gif">
</td></tr></table>
</td></tr><tr height=100% valign=bottom><td>
<img src="whiteback.gif">
</td></tr></table>
0
 

Author Comment

by:tactica
ID: 1837788
Of course!! Thanks a lot for your help.

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
title attribute 5 33
Keyup listener getting fired on initial page load 1 53
object method as an event handler 8 77
Displaying Text in Columns in HTML 3 32
This article discusses how to create an extensible mechanism for linked drop downs.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question