Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About pretesh

  • Rank
  1. On the W3Schools website page 'How TO - Shrink Navigation Menu on Scroll' tutorial it shows how to use Javascript to shrink the nav-bar. The 'CompanyLogo' also shrinks but this is text not an actual logo. What kind of Javascript would I need for a shrinking logo that was for example a jpg image? Is this a difficult thing to do? Any help on this would be great as I want to do this for my own website design and I'm new to Javascript.
  2. When using box-sizing border-box on images do I have to use specific dimensions (e.g width: 100px, height: 200px) for it to work properly? I'm building a site with responsive images next to each other but separated by a border. It works fine on the left and right borders but the top and bottom borders are not contained within the image thus pushing other images next to it out of sync. This issue is really frustrating as I have googled to find a solution but found nothing, not even someone with the same problem. My image sizes are Width: 100% and height: auto. Is this not allowed fo
  • Create New...