1 Replies - 744 Views - Last Post: 07 July 2013 - 08:39 PM

#1 Golossos   User is offline

  • D.I.C Head

Reputation: 13
  • View blog
  • Posts: 118
  • Joined: 29-June 13

Web page alignment

Posted 03 July 2013 - 04:26 PM

Why is it that some web pages in a site "shift" to the site a few pixels when a larger image is inserted? This mostly happens when I set the container div to have max width of some amount. All the other pages will have the same exact alignment, but that one page with the large (if that) image will be off slightly.
Is This A Good Question/Topic? 0
  • +

Replies To: Web page alignment

#2 BetaWar   User is offline

  • #include "soul.h"
  • member icon

Reputation: 1509
  • View blog
  • Posts: 8,273
  • Joined: 07-September 06

Re: Web page alignment

Posted 07 July 2013 - 08:39 PM

It is possible that the image is larger than the images on the other pages causing the div to go to its max-width even though the remainder of the design isn't made for that width. It is also possible that there is padding or margins in other containers causing problems (the image for example, or the container in which the div is housed).

Without seeing some code it would be very difficult to correctly guess the cause of the problem though.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1