Solved

Aligning images to edge of browser...

Posted on 1997-08-14
6
343 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
WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

 

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

Independent Software Vendors: 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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

628 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