Dynadot โ€” .com Registration $8.99

Always aligns left

Spaceship Spaceship
Watch

Ferenzcy

Established Member
Impact
13
I am redoing my website and i am going to be using this css trick for fluid images

img {
display: block;
border: 0;
max-width: 100%;
height: auto;
}

It seems to work very well except the images always align to the left after i have added this to css. I have the container set to align center by default.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
This problem is coming because you set max-width to 100%.. Put it to 50%, it will set your image to the center ..
 
2
•••
frank00 is right! Try changing max-width to 50-60% and see the changes entirely.
 
1
•••
Dynadot โ€” .com Registration $8.99Dynadot โ€” .com Registration $8.99
Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back