Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Aligning images to edge of browser...

Posted on 1997-08-14
6
Medium Priority
?
345 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 40 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
Industry Leaders: 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

722 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