Log in

View Full Version : Aligning Images with CSS??



allielopez
05-16-2007, 03:01 PM
Hi Everyone,

I was wondering if I could get some help on something. I am working on a new site:

http://southbeachgroup.com/allie2/chesterfield.html

Now on these pages I have that square slideshow and in an ideal world it would line up with that line of 5 thumbnails. I even counted the number of words so that it would align correctly.

On my Mac it looks perfect but my friend just checked it on her PC and it is totally out of alignment.

Is there any way I can use some sort of code or css style to make this happen?

I have heard about containers but I am not sure if that;s what I need or not.:confused:

Thanks for any help you can give me!!

jc_gmk
05-16-2007, 03:14 PM
Try using <div> tags rather than tables to make your layout.
You can then position images exactly where you want!

e.g.


<style type="text/css">
<!--
.style1 {
position: absolute;
top: 100px;
left: 50px:
}
-->
</style>

<body>

<div class="style1"><img src="yourimage.jpg" /></div>

</body>

Spiritvn
05-17-2007, 04:37 AM
Yep use div and float property. You can read more here:

http://www.dynamicdrive.com/forums/showthread.php?t=20832