#1 (permalink)  
Old 04-19-2007, 01:37 AM
Registered User
 
Join Date: Apr 2007
Posts: 1
image problem

I am new to web development, I am probably not applying this idea very soundly. I have an image i need to put that is to the right of a table. what i have done is this:

<div align="right"><img src="img/p231.jpg" width="150" height="150" alt="" border="0" align="right"></div>

<div align="left"><table border="0" width="560">
table stuff
</table></div>

Now.. if the user resizes the screen or the screen resolution they are using is smaller than 1024 x 768, that image moves under the table and looks bad. Any ideas how to fix this?

Thanks in advance,
Ryan Nichols
Reply With Quote

  #2 (permalink)  
Old 04-23-2007, 09:47 AM
curtiss's Avatar
Moderator
 
Join Date: May 2003
Posts: 1,445
Put both inside of a container div, and assign an explicit width to that container div as well.

It would look something like:
Code:
<div style="width: 710px; max-width: 711px; min-width: 709px; margin: auto; padding: 0;">

<div align="left"><table style="border: 0; width: 560px;">
table stuff
</table></div>

<div align="right"><img src="img/p231.jpg" style="text-align: right; width: 150px; height: 150px; border: 0;" alt="" /></div>

</div>
That should help. You also need to switch the table and the image, as I've done in the code above. You may need to play a little with the width of that container div, but you should be able to make it work.
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
framespacing="0" problem solved cssiscool Programming and Scripting 4 06-14-2007 08:27 AM
Firefox and image maps.. yuppicide Programming and Scripting 1 03-09-2007 10:00 PM
weird problem with FF 1.5.0.6 flashwood59 Programming and Scripting 0 09-11-2006 02:35 PM
controlling the size of an image with text over it bobs world Graphics and Flash 9 02-25-2006 12:26 PM
FireFox problem: How to make DIVs surround an image? rnilsson Programming and Scripting 1 03-10-2005 06:18 PM


All times are GMT -5. The time now is 07:48 AM.

 
Bitrix
Clicky Web Analytics
CloudContacts
Maxtango


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter