Friday, November 20, 2009

Is there a absolute right work around for IE when using position in CSS?

It is very easy to use tables nad/or CSS to line up images on the left side of a screen. But when trying to line up images on the right side of the screen, neither will do it in IE. Basically, I have 6 images. They need to line up with no white space. The last two images need to line up on the right side of the screen and image 4 needs to stretch to connect the two groups of images giving the website a liquid feature. Tables will stretch the image IF you set the overall width. CSS would do this much better using absolute positioning yet IE ignores the "right" value.



Is there a absolute right work around for IE when using position in CSS?microsoft excel





Instead of position, use "float"



"float: right;" should do the trick



if 2 images need to be right, put them both in a div, and float the div to the right



%26lt;div style="width: 100%"%26gt;



%26lt;div style="float: right"%26gt;



%26lt;img src=1 /%26gt;



%26lt;img src=2 /%26gt;



%26lt;/div%26gt;



%26lt;div style="float: right"%26gt;



%26lt;img src=3 /%26gt;



%26lt;img src=4 /%26gt;



%26lt;/div%26gt;



%26lt;div style="float: right"%26gt;



%26lt;img src=5 /%26gt;



%26lt;img src=6 /%26gt;



%26lt;/div%26gt;



%26lt;br style="clear: both" /%26gt;



%26lt;/div%26gt;



you can't make an image "stretch", so I can't give you the solution, since I don't know what effect you're going for.

No comments:

Post a Comment

 
loan