Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAlexandra Cianciara
2,465 PointsHTML and CSS image sizing and connecting to Wordpress
I have few questions re HTML and css:
Image resizing, do I need to resize images in CSS or before adding to CSS in Photoshop. I read somewhere that if I use large images and then resize with CSS, the loading time will be longer. What’s the best practice. If I need to resize them what are the best sizes for body and banners.
I’m building the site with html/ css but the site will be quite dynamic with a content updates regularly. I’d like to the connect to Wordpress. Is this advisable? I’m reading that I’d have to create my theme on Wordpress. But I’d like to know if anyone has done it.
Thank you
1 Answer
Jonny Noble
11,165 PointsHi Alexandra,
Wordpress would be the way to go if you need to update the content regularly. Wordpress does have a function that will resize your images to the dimensions you specify.
Read through the Wordpress codex. Loads of useful info on there. https://codex.wordpress.org/Theme_Development
Here’s the image link for the resize functions too https://developer.wordpress.org/reference/functions/add_image_size/
Alexandra Cianciara
2,465 PointsAlexandra Cianciara
2,465 PointsCould anyone help with my question? Thank you