Help needed with css issue for...

User 2000538 Photo


Registered User
1,392 posts

I'm having a problem with aligning my images. I'm using code that allows an enlarged image on hover and I have this working perfectly at
http://hobartkidz.com/parks.htm
but I can't get it the images to align left on this site http://www.test.daretodreamwebdesign.com/about-us.html

I suspect its a float problem and I've tried clearing and floating left etc but no luck.

Does anyone have any idea what I can add to the CSS to fix this?

Probably something really simple I'm missing.
I know you believe you understand what you think I said...but I am not sure you realize that what you heard is not exactly what I meant.


User 2000538 Photo


Registered User
1,392 posts

I've sort of got it working by having the image div outside the main one
I know you believe you understand what you think I said...but I am not sure you realize that what you heard is not exactly what I meant.


User 562592 Photo


Registered User
2,038 posts

Try not wrapping your images in a div and let them align naturally using just the img tag. Then you can use <li>classes for your hover effect. Try that.
The philosopher has not done philosophy until he has acted upon the mere conviction of his idea; for proof of the theory is in the act, not the idea.

My Web Development Company: http://www.innovatewebdevelopment.com (Created with Coffee Cup Software).

My Personal Website: http://www.EricSEnglish.com

User 463058 Photo


Ambassador
1,086 posts

If you want the images on the left, then the following is based on what you had before you moved the images outside the main div...

You had this styling:
#content img {
display:inline;
float:right;
margin:0 0 15px 15px;
}


You could either try changing that to this:
#content img {
display:block;
margin:0 0 15px 15px;
}


Or you can add a new rule:
#content .thumbnail img {
display:block;
float:none;
margin: ? ? ? ?; /* set to whatever the margins should be */
}
User 2000538 Photo


Registered User
1,392 posts

Thanks Cary,

the second option might work better as I still need the front page image to float right, its just the thumbnail in the gallery that I need on the left.
I know you believe you understand what you think I said...but I am not sure you realize that what you heard is not exactly what I meant.



Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.