Hi I’m having a problem with my odes. I see some extra space above my menus. I try some margin: 0 padding: 0 but it seems it stilll not working here’s my site. skinwhitening101.weebly.com
Assign {display:block} to the image in the head of your page.
Thanks Men! You save my life. By the way I’m just a newbie here. Is it necessary to assign displa:block to every img to avoid extra space?
Not necessarily, it depends on where the image is used. But, if you have an image with an anchor around it, YES, it is a good idea. You can do this with the following CSS:
a > img {display:block;}
That will assign {display:block} to every image inside an anchor.
If you prefer to assign {display:block} to all images on a page, then just use
img {display:block;}
Again, the “best” choice depends on where the image is used.
PS: FWIW, I usually assign {display:block;} to most images.
Awesome! thank you so much. hey men what do you think about my footer? is it good or do I need some revisions with the structure or with the style?
The footer looks fine to me.
The loading time for the page is horrible. My desktop browser with a cable connection almost freezes for about 30 seconds while it loads resources from around the net. That is much too long for a page to load. You should warn visitors with mobile devices or slow connections to avoid your web page.
Yeah you are right. I’m not sure why but I think it’s my script. my jquery, videos and images. You think?
jQuery alone isn’t bad, but whatever jQuery scripts may be running could very well be part of the problem.
I did not try to examine the reasons for the slow loading time.
Typically, slow loading times occur when oversized images are loaded, when other outside resources such as poorly designed advertising media are loaded, and some sliders with more oversided images. The causes are many. Good luck reducing your loading time, though!
Personally, the loading time would discourage me from visiting your site no matter how nice it looks.
Cheers
Yes those images are much too big a file size.
This image for example is 320k and I would generally be looking at 30k or less for an image at the size rendered in that page.
Optimizing images is the first (and best) step in making a site quicker.
Hi there, I did some image optimization, reducing size and removing unused images from my files. Can you check it if there is a bit improvement? Thank you so much for your help men.
Yes you’ve reduced one of those images down from 320k down to 80k which is a big saving but you could make even more savings if you wanted.
The images are on a white background so don’t really need to be transparent and if you changed then to a jpg at 80% optimization the file size will come down to 16k. I’m betting that you won’t even be able to tell the difference in quality either unless you carefully compare side by side.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.