pehyuhan

Finally a decent looking homepage by copying a template with lots of inline styling because i am still so bad at bootstrap. Going to add in an image for every post with uploadcare.

phuze

Noooooo run away from inline styling haha

pehyuhan

phuze hahaaa why no inline-styling?

phuze

Coz it would be messy as heck as time goes by. Keep it DRY, put all the styling in a separate CSS file :)

pehyuhan

phuze Ok! I will put shift it into the css file after i settle the image upload. Can't get the image to show in a fixed width and length T_T.

phuze

Lol why not? You didn't set the img style?

pehyuhan

phuze Can crop in a certain ratio but how to auto scale to fit the div width without distorting the image?

pehyuhan

phuze hahaa nvm i found a decent solution already

phuze

Hmm. Usually I set the width to be of 100% and style the container holding the image instead. Are you like using a smaller image to stretch into a bigger div or?

phuze

Oh sweet. Share the solution in the next post :P

pehyuhan

phuze hahaaa i just set the width to 100% as well. I set the height as well initially and it distorts the image.

phuze

Great, great. Can't wait to see your creation :D